Project

General

Profile

« Previous | Next » 

Revision 32904

Added by Marek Horst over 9 years ago

#1017 introducing PMC extracted metadata schema

View differences:

modules/icm-iis-schemas/trunk/src/main/resources/eu/dnetlib/iis/ingest/pmc/metadata/ReferenceMetadata.avdl
1
@namespace("eu.dnetlib.iis.ingest.pmc.metadata.schemas")
2
protocol IIS{
3

  
4
    import idl "ReferenceBasicMetadata.avdl";
5

  
6
    record ReferenceMetadata {
7
        ReferenceBasicMetadata basicMetadata;
8
//      reference position in bibliography, starting with '1'
9
        union { null , int } position = null;
10
//      raw citation string held here just in case - maybe we will be able to use it
11
//      instead of basicMetadata if the latter one turns out to be of a low quality
12
        union { null , string } text = null;
13
    }
14

  
15
}
modules/icm-iis-schemas/trunk/src/main/resources/eu/dnetlib/iis/ingest/pmc/metadata/ReferenceBasicMetadata.avdl
1
@namespace("eu.dnetlib.iis.ingest.pmc.metadata.schemas")
2
protocol IIS{
3

  
4
    record Range {
5
        union { null , string } start = null;
6
        union { null , string } end = null;
7
    }
8
    
9
    record ReferenceBasicMetadata {
10
        union { null , string } title = null;
11
//      author names (a single string corresponds to a single author)
12
        union { null , array<string> } authors = null;
13
        union { null , Range } pages = null;
14
//      the name of a journal, a book or anything that the article comes from
15
        union { null , string } source = null;
16
        union { null , string } volume = null;
17
        union { null , string } year = null;
18
        union { null , string } issue = null;
19
        map<string> externalIds;
20
    }
21

  
22
}
modules/icm-iis-schemas/trunk/src/main/resources/eu/dnetlib/iis/ingest/pmc/metadata/ExtractedDocumentMetadata.avdl
1
@namespace("eu.dnetlib.iis.ingest.pmc.metadata.schemas")
2
protocol IIS{
3

  
4
	import idl "ReferenceBasicMetadata.avdl";
5
	import idl "ReferenceMetadata.avdl";
6
    
7
    record ExtractedDocumentMetadata {
8
//      OpenAIRE identifier of the document
9
        string id;
10
//      Pubmed identifier of the document
11
        union { null , string } pmid = null;
12
//		pubmed entity type        
13
        string entityType;
14
//      name of journal in which the article is published
15
        union { null , string } journal = null;
16
//      references extracted from pfd document
17
        union { null , array<ReferenceMetadata> } references = null;
18
//      page range in which the article is published
19
        union { null , Range } pages = null;
20
    }
21

  
22
}

Also available in: Unified diff