Project

General

Profile

1
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified"
2
  xmlns="http://namespace.openaire.eu/oaf" targetNamespace="http://namespace.openaire.eu/oaf">
3

    
4
  <xs:annotation>
5
    <xs:documentation>This schema describes elements and properties of OpenAIRE+ entities of type
6
      result, namely: publications and datasets.</xs:documentation>
7
  </xs:annotation>
8

    
9
  <xs:include schemaLocation="oaf-common-0.1.xsd"/>
10

    
11
  <xs:element name="result">
12
    <xs:complexType>
13
      <xs:choice maxOccurs="unbounded">
14
        <xs:element name="subject" type="optionalClassedSchemedElement" maxOccurs="unbounded"/>
15
        <xs:element name="title" type="classedSchemedElement"/>
16
        <xs:element name="dateofacceptance" type="xs:string"/>
17
        <xs:element name="publisher" type="xs:string"/>
18
        <xs:element name="resulttype" type="classedSchemedElement">
19
          <xs:annotation>
20
            <xs:documentation>Tells if this record is about a publication or a
21
              dataset.</xs:documentation>
22
          </xs:annotation>
23
        </xs:element>
24
        <xs:element name="language" type="optionalClassedSchemedElement">
25
          <xs:annotation>
26
            <xs:documentation>Language in ISO 639-2></xs:documentation>
27
          </xs:annotation>
28
        </xs:element>
29
        <xs:element name="journal" type="journalType"/>
30
        <xs:element name="description" type="xs:string" maxOccurs="unbounded"/>
31
        <xs:element name="source" type="xs:string">
32
          <xs:annotation>
33
            <xs:documentation>The semantics of this field is inherited from dc:source in Dublin
34
              Core.</xs:documentation>
35
          </xs:annotation>
36
        </xs:element>
37
        <xs:element name="relevantdate" type="optionalClassedSchemedElement"/>
38
        <xs:element name="embargoenddate" type="xs:string"/>
39
        <xs:element name="storagedate" type="xs:string"/>
40
        <xs:element name="fulltext" type="xs:string"/>
41
        <xs:element name="resourcetype" type="optionalClassedSchemedElement">
42
          <xs:annotation>
43
            <xs:documentation>Type of the resource, for example: article, thesis,
44
              etc.</xs:documentation>
45
          </xs:annotation>
46
        </xs:element>
47
        <xs:element name="device" type="xs:string"/>
48
        <xs:element name="size" type="xs:string"/>
49
        <xs:element name="format" type="xs:string"/>
50
        <xs:element name="version" type="xs:string"/>
51
        <xs:element name="lastmetadataupdate" type="xs:string"/>
52
        <xs:element name="metadataversionnumber" type="xs:string"/>
53
        <xs:element name="originalId" type="xs:string" maxOccurs="unbounded"/>
54
        <xs:element name="collectedfrom" type="namedIdElement" maxOccurs="unbounded">
55
          <xs:annotation>
56
            <xs:documentation>Identifier and name of the datasource from which this result has been
57
              collected from (e.g., "OpenDOAR").</xs:documentation>
58
          </xs:annotation>
59
        </xs:element>
60
        <xs:element name="pid" type="optionalClassedSchemedElement"/>
61
        <xs:element name="bestlicense" type="classedSchemedElement">
62
          <xs:annotation>
63
            <xs:documentation>The best license available for this result among the available
64
              licenses of its children elements. Available values are 12 Months Embargo, 6 Months
65
              Embargo, Closed Access, Embargo, Open Access, Other, Restricted,
66
              UNKNOWN.</xs:documentation>
67
          </xs:annotation>
68
        </xs:element>
69
        <xs:element name="context" type="contextType">
70
          <xs:annotation>
71
            <xs:documentation>Contextual information for the publication or dataset. Examples are:
72
              research project and funding.</xs:documentation>
73
          </xs:annotation>
74
        </xs:element>
75
        <xs:element name="datainfo" type="datainfoType"/>
76
        <xs:element name="rels" type="relsType">
77
          <xs:annotation>
78
            <xs:documentation>Relationships to other entities.</xs:documentation>
79
          </xs:annotation>
80
        </xs:element>
81
        <xs:element name="children" type="resultChildrenType"/>
82
      </xs:choice>
83
    </xs:complexType>
84
  </xs:element>
85

    
86
  <xs:complexType name="journalType">
87
    <xs:simpleContent>
88
      <xs:extension base="xs:string">
89
        <xs:attribute name="eissn" use="optional"/>
90
        <xs:attribute name="issn" use="optional"/>
91
        <xs:attribute name="lissn" use="optional"/>
92
      </xs:extension>
93
    </xs:simpleContent>
94
  </xs:complexType>
95

    
96
  <xs:complexType name="contextType">
97
    <xs:annotation>
98
      <xs:documentation>Contextual information of the entity. Examples are: research project and
99
        funding. </xs:documentation>
100
    </xs:annotation>
101
    <xs:complexContent>
102
      <xs:extension base="labeledIdElement">
103
        <xs:sequence maxOccurs="unbounded">
104
          <xs:element name="category" type="categoryType"/>
105
        </xs:sequence>
106
        <xs:attribute name="type" use="required"/>
107
      </xs:extension>
108
    </xs:complexContent>
109
  </xs:complexType>
110

    
111
  <xs:complexType name="categoryType">
112
    <xs:complexContent>
113
      <xs:extension base="labeledIdElement">
114
        <xs:sequence maxOccurs="unbounded">
115
          <xs:element name="concept" type="conceptType"/>
116
        </xs:sequence>
117
        <xs:attribute name="claim" type="xs:boolean"/>
118
      </xs:extension>
119
    </xs:complexContent>
120
  </xs:complexType>
121

    
122
  <xs:complexType name="conceptType">
123
    <xs:complexContent>
124
      <xs:extension base="labeledIdElement">
125
        <xs:sequence maxOccurs="unbounded" minOccurs="0">
126
          <xs:element name="concept" type="conceptType"/>
127
        </xs:sequence>
128
        <xs:attribute name="claim" type="xs:boolean"/>
129
      </xs:extension>
130
    </xs:complexContent>
131
  </xs:complexType>
132

    
133
  <xs:complexType name="resultChildrenType">
134
    <xs:choice maxOccurs="unbounded">
135
      <xs:element name="result" type="childrenResult" minOccurs="0" maxOccurs="unbounded"/>
136
      <xs:element name="instance" type="instanceType" minOccurs="0" maxOccurs="unbounded">
137
        <xs:annotation>
138
          <xs:documentation>Actual digital representation of the publication or
139
            dataset.</xs:documentation>
140
        </xs:annotation>
141
      </xs:element>
142
      <xs:sequence maxOccurs="unbounded">
143
        <xs:element name="externalreference" type="externalreferenceType"/>
144
      </xs:sequence>
145
    </xs:choice>
146
  </xs:complexType>
147

    
148
  <xs:complexType name="childrenResult">
149
    <xs:choice maxOccurs="unbounded">
150
      <xs:element name="title" type="classedSchemedElement" maxOccurs="unbounded"/>
151
      <xs:element name="dateofacceptance" type="xs:string"/>
152
      <xs:element name="publisher" type="xs:string"/>
153
      <xs:element name="resulttype" type="classedSchemedElement"/>
154
    </xs:choice>
155
    <xs:attribute name="objidentifier" use="required"/>
156
  </xs:complexType>
157

    
158
  <xs:complexType name="instanceType">
159
    <xs:choice maxOccurs="unbounded">
160
      <xs:element name="licence" type="classedSchemedElement">
161
        <xs:annotation>
162
          <xs:documentation>License to access this actual manifestation of the publication or
163
            dataset. Available values are: 12 Months Embargo, 6 Months
164
            Embargo, Closed Access, Embargo, Open Access, Other, Restricted,
165
            UNKNOWN.. When several instances
166
            are available for the same publication, the opener license is selected as the bestlicese
167
            field in element result.</xs:documentation>
168
        </xs:annotation>
169
      </xs:element>
170
      <xs:element name="instancetype" type="classedSchemedElement"/>
171
      <xs:element name="hostedby" type="namedIdElement" maxOccurs="1">
172
        <xs:annotation>
173
          <xs:documentation>Organisation hosting this file.</xs:documentation>
174
        </xs:annotation>
175
      </xs:element>
176
      <xs:element name="webresource" type="webresourceType" minOccurs="1" maxOccurs="unbounded"/>
177
    </xs:choice>
178
    <xs:attribute name="id" use="required"/>
179
  </xs:complexType>
180

    
181
  <xs:complexType name="webresourceType">
182
    <xs:sequence>
183
      <xs:element name="url" type="xs:anyURI" minOccurs="1" maxOccurs="1"/>
184
    </xs:sequence>
185
  </xs:complexType>
186

    
187
</xs:schema>
(8-8/8)