Project

General

Profile

« Previous | Next » 

Revision 53322

restructured module and remove pom, as we do not need anymore to change the vocabulary URL dynamically. We'll always use api.openaire.eu/vocabularies

View differences:

modules/dnet-openaire-schema/trunk/target/schema/latest
1
link 1.0
2 0

  
modules/dnet-openaire-schema/trunk/target/schema/0.1/oaf-person-0.1.xsd
1
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://namespace.openaire.eu/oaf"
2
  targetNamespace="http://namespace.openaire.eu/oaf" elementFormDefault="unqualified">
3

  
4
  <xs:annotation>
5
    <xs:documentation>This schema describes elements and properties of OpenAIRE+ entities of type
6
      person</xs:documentation>
7
  </xs:annotation>
8

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

  
11
  <xs:element name="person">
12
    <xs:complexType>
13
      <xs:choice maxOccurs="unbounded">
14
        <xs:element name="firstname" type="xs:string"/>
15
        <xs:element name="secondnames" type="xs:string"/>
16
        <xs:element name="fullname" type="xs:string"/>
17
        <xs:element name="fax" type="xs:string"/>
18
        <xs:element name="email" type="xs:string"/>
19
        <xs:element name="phone" type="xs:string"/>
20
        <xs:element name="nationality" type="optionalClassedSchemedElement"/>
21
        <xs:element name="originalId" type="xs:string" maxOccurs="unbounded"/>
22
        <xs:element name="collectedfrom" type="namedIdElement" maxOccurs="unbounded"> <xs:annotation>
23
          <xs:documentation>Identifier and name of the datasource from which this person has
24
            been collected from.</xs:documentation>
25
        </xs:annotation></xs:element>
26
        <xs:element name="pid" type="optionalClassedSchemedElement"/>
27
        <xs:element name="datainfo" type="datainfoType"/>
28
        <xs:element name="rels" type="relsType">
29
          <xs:annotation>
30
            <xs:documentation>Relationships to other entities.</xs:documentation>
31
          </xs:annotation>
32
        </xs:element>
33
        <xs:element name="children">
34
          <xs:complexType mixed="true"/>
35
        </xs:element>
36
      </xs:choice>
37
    </xs:complexType>
38
  </xs:element>
39
</xs:schema>
modules/dnet-openaire-schema/trunk/target/schema/0.1/oaf-project-0.1.xsd
1
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://namespace.openaire.eu/oaf"
2
  targetNamespace="http://namespace.openaire.eu/oaf" elementFormDefault="unqualified">
3

  
4
  <xs:annotation>
5
    <xs:documentation>This schema describes elements and properties of OpenAIRE+ entities of type
6
      project</xs:documentation>
7
  </xs:annotation>
8

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

  
11
  <xs:element name="project">
12
    <xs:complexType>
13
      <xs:choice maxOccurs="unbounded">
14
        <xs:element name="code" type="xs:string">
15
          <xs:annotation>
16
            <xs:documentation>Project code. In case of EC funded project, it contains the grant
17
              agreement identifier.</xs:documentation>
18
          </xs:annotation>
19
        </xs:element>
20
        <xs:element name="acronym" type="xs:string"/>
21
        <xs:element name="title" type="xs:string"/>
22
        <xs:element name="startdate" type="xs:string"/>
23
        <xs:element name="enddate" type="xs:string"/>
24
        <xs:element name="callidentifier" type="xs:string"/>
25
        <xs:element name="ecsc39" type="xs:boolean">
26
          <xs:annotation>
27
            <xs:documentation>True if the project has the special clause 39.</xs:documentation>
28
          </xs:annotation>
29
        </xs:element>
30
        <xs:element name="contracttype" type="optionalClassedSchemedElement"/>
31

  
32
        <xs:element name="fundingtree" type="fundingTreeType">
33
          <xs:annotation>
34
            <xs:documentation>The funding tree contains information about the funding of this
35
              project. For EC funded projects the tree has the following form: Scientific Area --
36
              Funding Stream -- Funder. For UK funded projects the tree has the following form:
37
              Funder -- Funding Stream. </xs:documentation>
38
          </xs:annotation>
39
        </xs:element>
40
        <xs:element name="websiteurl" type="xs:string"/>
41
        <xs:element name="keywords" type="xs:string"/>
42
        <xs:element name="duration" type="xs:string"/>
43

  
44
        <xs:element name="originalId" type="xs:string"/>
45
        <xs:element name="collectedfrom" type="namedIdElement">
46
          <xs:annotation>
47
            <xs:documentation>Identifier and name of the datasource from which this project has been
48
              collected from.</xs:documentation>
49
          </xs:annotation>
50
        </xs:element>
51
        <xs:element name="pid" type="xs:string"/>
52
        <xs:element name="datainfo" type="datainfoType"/>
53
        <xs:element name="rels" type="relsType">
54
          <xs:annotation>
55
            <xs:documentation>Relationships to other entities.</xs:documentation>
56
          </xs:annotation>
57
        </xs:element>
58
        <xs:element name="children">
59
          <xs:complexType mixed="true"/>
60
        </xs:element>
61
      </xs:choice>
62
    </xs:complexType>
63
  </xs:element>
64

  
65
  <!-- to be removed, and replaced by ContextType -->
66
  <xs:complexType name="fundingTreeType">
67
    <xs:choice maxOccurs="unbounded">
68
      <xs:element name="funding_level_2" type="fundingType" minOccurs="0" maxOccurs="unbounded">
69
        <xs:annotation>
70
          <xs:documentation>Leaf of the funding tree for FP7 projects. This element does not exist
71
            for WT funded projects.</xs:documentation>
72
        </xs:annotation>
73
      </xs:element>
74
      <!-- WT hierarchy starts from funding_level_1, not 2 -->
75
      <xs:element name="funding_level_1" type="fundingType" minOccurs="0" maxOccurs="unbounded">
76
        <xs:annotation>
77
          <xs:documentation>Leaf of the funding tree for WT projects.</xs:documentation>
78
        </xs:annotation>
79
      </xs:element>
80
    </xs:choice>
81
  </xs:complexType>
82

  
83
  <xs:complexType name="fundingType">
84
    <xs:sequence>
85
      <xs:element name="id" type="xs:string"/>
86
      <xs:element name="description" type="xs:string"/>
87
      <xs:element name="name" type="xs:string"/>
88
      <xs:element name="parent" type="fundingParentType">
89
        <xs:annotation>
90
          <xs:documentation>Parent funding. If the current funding is a Scientific Area, then the
91
            parent is a Funding Stream. If the current funding is a Funding Stream, then the parent
92
            is the Funder. </xs:documentation>
93
        </xs:annotation>
94
      </xs:element>
95
      <xs:element name="class" type="xs:string"/>
96
    </xs:sequence>
97
  </xs:complexType>
98

  
99
  <xs:complexType name="fundingParentType">
100
    <xs:choice minOccurs="0">
101
      <xs:element name="funding_level_1" type="fundingType"/>
102
      <xs:element name="funding_level_0" type="fundingType"/>
103
    </xs:choice>
104
  </xs:complexType>
105

  
106
</xs:schema>
modules/dnet-openaire-schema/trunk/target/schema/0.1/oaf-org-0.1.xsd
1
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://namespace.openaire.eu/oaf"
2
  targetNamespace="http://namespace.openaire.eu/oaf" elementFormDefault="unqualified">
3

  
4
  <xs:annotation>
5
    <xs:documentation>This schema describes elements and properties of OpenAIRE+ entities of type
6
      organisation</xs:documentation>
7
  </xs:annotation>
8

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

  
11
  <xs:element name="organization">
12
    <xs:complexType>
13
      <xs:choice maxOccurs="unbounded">
14
        <xs:element name="legalname" type="xs:string"/>
15
        <xs:element name="legalshortname" type="xs:string"/>
16
        <xs:element name="logourl" type="xs:string"/>
17
        <xs:element name="originalId" type="xs:string"/>
18
        <xs:element name="websiteurl" type="xs:string"/>
19
        <xs:element name="country" type="optionalClassedSchemedElement"/>
20
        <xs:element name="ecenterprise" type="xs:string">
21
          <xs:annotation>
22
            <xs:documentation>Tells if this organisation is an enteprise. Value comes from CORDA
23
              (Enterprise) </xs:documentation>
24
          </xs:annotation>
25
        </xs:element>
26
        <xs:element name="echighereducation" type="xs:string">
27
          <xs:annotation>
28
            <xs:documentation>Tells if this organisation is in the higher education. Value comes
29
              from CORDA (HigherEducation). </xs:documentation>
30
          </xs:annotation>
31
        </xs:element>
32
        <!-- We might want to remove this field since it seems to be a duplicate of ecinternationalorganizationeurinterests -->
33
        <xs:element name="ecinternationalorganization" type="xs:string">
34
          <xs:annotation>
35
            <xs:documentation>Tells if this organisation is international. Value comes from CORDA
36
              (InternationalOrgEurInterest). </xs:documentation>
37
          </xs:annotation>
38
        </xs:element>
39
        <xs:element name="ecinternationalorganizationeurinterests" type="xs:string">
40
          <xs:annotation>
41
            <xs:documentation>Value comes from CORDA (InternationalOrgEurInterest).
42
            </xs:documentation>
43
          </xs:annotation>
44
        </xs:element>
45
        <xs:element name="eclegalbody" type="xs:string">
46
          <xs:annotation>
47
            <xs:documentation>Tells if this organisation is a legal body. Value comes from CORDA
48
              (PublicBody). </xs:documentation>
49
          </xs:annotation>
50
        </xs:element>
51
        <xs:element name="eclegalperson" type="xs:string">
52
          <xs:annotation>
53
            <xs:documentation>Tells if this organisation is a legal person. Value comes from CORDA
54
              (LegalPerson). </xs:documentation>
55
          </xs:annotation>
56
        </xs:element>
57
        <xs:element name="ecnonprofit" type="xs:string">
58
          <xs:annotation>
59
            <xs:documentation>Tells if this organisation is non-profit. Value comes from CORDA
60
              (NonProfit). </xs:documentation>
61
          </xs:annotation>
62
        </xs:element>
63
        <xs:element name="ecnutscode" type="xs:string">
64
          <xs:annotation>
65
            <xs:documentation>Value comes from CORDA. </xs:documentation>
66
          </xs:annotation>
67
        </xs:element>
68
        <xs:element name="ecresearchorganization" type="xs:string">
69
          <xs:annotation>
70
            <xs:documentation>Tells if this organisation is a research organisation. Value comes
71
              from CORDA (ResearchOrganisation). </xs:documentation>
72
          </xs:annotation>
73
        </xs:element>
74
        <xs:element name="ecsmevalidated" type="xs:string">
75
          <xs:annotation>
76
            <xs:documentation>Value comes from CORDA (SMEValidated). </xs:documentation>
77
          </xs:annotation>
78
        </xs:element>
79
        <xs:element name="collectedfrom" type="namedIdElement">
80
          <xs:annotation>
81
            <xs:documentation>Identifier and name of the datasource from which this organization has
82
              been collected from.</xs:documentation>
83
          </xs:annotation>
84
        </xs:element>
85
        <xs:element name="pid">
86
          <xs:complexType mixed="true"/>
87
        </xs:element>
88
        <xs:element name="datainfo" type="datainfoType"/>
89
        <xs:element name="rels" type="relsType">
90
          <xs:annotation>
91
            <xs:documentation>Relationships to other entities.</xs:documentation>
92
          </xs:annotation>
93
        </xs:element>
94
        <xs:element name="children">
95
          <xs:complexType mixed="true"/>
96
        </xs:element>
97
      </xs:choice>
98
    </xs:complexType>
99
  </xs:element>
100

  
101
</xs:schema>
modules/dnet-openaire-schema/trunk/target/schema/0.1/oaf-common-0.1.xsd
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified"
3
  xmlns="http://namespace.openaire.eu/oaf" targetNamespace="http://namespace.openaire.eu/oaf">
4

  
5
  <xs:annotation>
6
    <xs:documentation>This schema defines common types that can be re-used.</xs:documentation>
7
  </xs:annotation>
8

  
9
  <xs:complexType mixed="true" name="classedSchemedElement">
10
    <xs:attributeGroup ref="classSchemeAttrGroup"/>
11
  </xs:complexType>
12

  
13
  <xs:attributeGroup name="classSchemeAttrGroup">
14
    <xs:attribute name="classid" use="required" type="xs:string">
15
      <xs:annotation>
16
        <xs:documentation>Identifier of the value in classname with respect to the controlled
17
          vocabulary with id = schemeid.</xs:documentation>
18
      </xs:annotation>
19
    </xs:attribute>
20
    <xs:attribute name="classname" use="required" type="xs:string">
21
      <xs:annotation>
22
        <xs:documentation>A value from the controlled vocabulary identified by
23
          schemeid.</xs:documentation>
24
      </xs:annotation>
25
    </xs:attribute>
26
    <xs:attribute name="schemeid" use="required" type="xs:string">
27
      <xs:annotation>
28
        <xs:documentation>Identifier of the controlled vocabulary with name
29
          schemename.</xs:documentation>
30
      </xs:annotation>
31
    </xs:attribute>
32
    <xs:attribute name="schemename" use="required" type="xs:string">
33
      <xs:annotation>
34
        <xs:documentation>Name of the controlled vocabulary.</xs:documentation>
35
      </xs:annotation>
36
    </xs:attribute>
37
  </xs:attributeGroup>
38

  
39
  <xs:complexType mixed="true" name="optionalClassedSchemedElement">
40
    <xs:attributeGroup ref="optionalClassSchemeAttrGroup"/>
41
  </xs:complexType>
42

  
43
  <xs:attributeGroup name="optionalClassSchemeAttrGroup">
44
    <xs:attribute name="classid" use="optional" type="xs:string">
45
      <xs:annotation>
46
        <xs:documentation>Identifier of the value in classname with respect to the controlled
47
          vocabulary with id = schemeid.</xs:documentation>
48
      </xs:annotation>
49
    </xs:attribute>
50
    <xs:attribute name="classname" use="optional" type="xs:string">
51
      <xs:annotation>
52
        <xs:documentation>A value from the controlled vocabulary identified by
53
          schemeid.</xs:documentation>
54
      </xs:annotation>
55
    </xs:attribute>
56
    <xs:attribute name="schemeid" use="optional" type="xs:string">
57
      <xs:annotation>
58
        <xs:documentation>Identifier of the controlled vocabulary with name
59
          schemename.</xs:documentation>
60
      </xs:annotation>
61
    </xs:attribute>
62
    <xs:attribute name="schemename" use="optional" type="xs:string">
63
      <xs:annotation>
64
        <xs:documentation>Name of the controlled vocabulary.</xs:documentation>
65
      </xs:annotation>
66
    </xs:attribute>
67
  </xs:attributeGroup>
68

  
69
  <xs:complexType name="namedIdElement">
70
    <xs:attribute name="id" use="required"/>
71
    <xs:attribute name="name" use="required"/>
72
  </xs:complexType>
73

  
74
  <xs:complexType name="labeledIdElement">
75
    <xs:attribute name="id" use="required"/>
76
    <xs:attribute name="label" use="required"/>
77
  </xs:complexType>
78

  
79
  <xs:complexType name="datainfoType">
80
    <xs:annotation>
81
      <xs:documentation>Information about the provenance of this record.</xs:documentation>
82
    </xs:annotation>
83
    <xs:choice maxOccurs="unbounded">
84
      <xs:element name="inferred" type="xs:boolean">
85
        <xs:annotation>
86
          <xs:documentation>True if this information has been inferred by the automatic inference
87
            algorithms run by OpenAIRE.</xs:documentation>
88
        </xs:annotation>
89
      </xs:element>
90
      <xs:element name="deletedbyinference" type="xs:boolean">
91
        <xs:annotation>
92
          <xs:documentation>True if this information has been deleted by the automatic inference
93
            algorithms run by OpenAIRE.</xs:documentation>
94
        </xs:annotation>
95
      </xs:element>
96
      <xs:element name="trust" type="xs:string">
97
        <xs:annotation>
98
          <xs:documentation>Value of trust of this information. Typically a value in the range
99
            [0,1]. More the value, more trustwirthy is the infromation.</xs:documentation>
100
        </xs:annotation>
101
      </xs:element>
102
      <xs:element name="inferenceprovenance" type="xs:string"/>
103
      <xs:element name="provenanceaction" type="classedSchemedElement"/>
104
    </xs:choice>
105
  </xs:complexType>
106

  
107
  <xs:complexType name="relsType">
108
    <xs:annotation>
109
      <xs:documentation>Relationships to other entities.</xs:documentation>
110
    </xs:annotation>
111
    <xs:sequence maxOccurs="unbounded" minOccurs="0">
112
      <xs:element name="rel" type="relType" minOccurs="0"/>
113
    </xs:sequence>
114
  </xs:complexType>
115

  
116
  <xs:complexType name="relType">
117
    <xs:annotation>
118
      <xs:documentation>A relationship to another entity</xs:documentation>
119
    </xs:annotation>
120
    <xs:choice maxOccurs="unbounded">
121
      <xs:element name="to" type="relToType"/>
122
      <xs:element name="ranking" type="xs:integer" minOccurs="0"/>
123
      <xs:element name="fullname" type="xs:string" minOccurs="0"/>
124
      <xs:element name="title" type="optionalClassedSchemedElement" minOccurs="0"/>
125
      <xs:element name="dateofacceptance" type="xs:string" minOccurs="0"/>
126
      <xs:element name="publisher" type="xs:string" minOccurs="0"/>
127
      <xs:element name="resulttype" type="classedSchemedElement" minOccurs="0">
128
        <xs:annotation>
129
          <xs:documentation>Type of the related result. Valid only if the related entity is a
130
            result. Allowed values: dataset, publication.</xs:documentation>
131
        </xs:annotation>
132
      </xs:element>
133

  
134
      <!-- elements for organisations, some are also valid for datsources and projects -->
135
      <xs:element name="officialname" type="xs:string" minOccurs="0"/>
136
      <xs:element name="participantnumber" type="xs:string" minOccurs="0"/>
137
      <xs:element name="websiteurl" type="xs:string" minOccurs="0"/>
138
      <xs:element name="code" type="xs:string" minOccurs="0"/>
139
      <xs:element name="acronym" type="xs:string" minOccurs="0"/>
140
      <xs:element name="contracttype" type="optionalClassedSchemedElement" minOccurs="0">
141
        <xs:annotation>
142
          <xs:documentation>Type of the contract. Allowed values: Article 171 of the Treaty,
143
            CIP-Eco-Innovation - CIP-Thematic Network, Collaborative project, Combination of CP
144
            &amp; CSA, Coordination and support action, Network of Excellence, Research for the
145
            benefit of specific groups, Support for frontier research (ERC), Support for training
146
            and career development of researchers (Marie Curie) </xs:documentation>
147
        </xs:annotation>
148
      </xs:element>
149
      <xs:element name="funding" type="fundingFlatType" minOccurs="0"/>
150
      <!-- elements for datasources -->
151
      <xs:element name="legalname" type="xs:string" minOccurs="0"/>
152
      <xs:element name="datasourcetype" type="optionalClassedSchemedElement" minOccurs="0">
153
        <xs:annotation>
154
          <xs:documentation>Type of datasource. Allowed values are: aggregator::datarepository,
155
            aggregator::pubsrepository::institutional, aggregator::pubsrepository::journals,
156
            aggregator::pubsrepository::unknown, crissystem, datarepository::unknown,
157
            entityregistry, infospace, pubsrepository::institutional, pubsrepository::journal,
158
            pubsrepository::mock, pubsrepository::thematic, pubsrepository::unknown, scholarly
159
            commnication infrastructure, websource </xs:documentation>
160
        </xs:annotation>
161
      </xs:element>
162
      <xs:element name="datasourcetypeui" type="optionalClassedSchemedElement" minOccurs="0"/>
163
      <xs:element name="legalshortname" type="xs:string" minOccurs="0"/>
164
      <xs:element name="country" type="optionalClassedSchemedElement" minOccurs="0">
165
        <xs:annotation>
166
          <xs:documentation> The classid attribute contains the ISO 3166-1 alpha-2 code of the
167
            country. The classname attribute contains the english name of the country.
168
          </xs:documentation>
169
        </xs:annotation>
170
      </xs:element>
171
      <!-- elements for projects -->
172
      <xs:element name="fax" type="xs:string" minOccurs="0"/>
173
      <xs:element name="email" type="xs:string" minOccurs="0"/>
174
      <xs:element name="phone" type="xs:string" minOccurs="0"/>
175
    </xs:choice>
176
    <xs:attribute name="inferenceprovenance"/>
177
    <xs:attribute name="inferred" use="required" type="xs:boolean"/>
178
    <xs:attribute name="provenanceaction" type="xs:string"/>
179
    <xs:attribute name="trust" type="xs:string">
180
      <xs:annotation>
181
        <xs:documentation>Value of trust of this information. Typically a value in the range [0,1].
182
          More the value, more trustwirthy is the infromation.</xs:documentation>
183
      </xs:annotation>
184
    </xs:attribute>
185
  </xs:complexType>
186

  
187
  <xs:complexType name="relToType">
188
    <xs:annotation>
189
      <xs:documentation>Type of the related entity.</xs:documentation>
190
    </xs:annotation>
191
    <xs:simpleContent>
192
      <xs:extension base="xs:string">
193
        <xs:attribute name="class" use="required" type="xs:string"><xs:annotation>
194
          <xs:documentation>The semantics of the relationship between this entity and the entity whose id is in the value of this element.</xs:documentation>
195
        </xs:annotation></xs:attribute>
196
        <xs:attribute name="scheme" use="required" type="xs:string"/>
197
        <xs:attribute name="type" use="required" type="xs:string">
198
          <xs:annotation>
199
            <xs:documentation>The type of the related entity: project, organisation, datasource,
200
              result, person.</xs:documentation>
201
          </xs:annotation>
202
        </xs:attribute>
203
      </xs:extension>
204
    </xs:simpleContent>
205
  </xs:complexType>
206

  
207
  <xs:complexType name="fundingFlatType">
208
    <xs:sequence>
209
      <xs:element name="funding_level_0" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
210
      <xs:element name="funding_level_1" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
211
      <xs:element name="funding_level_2" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
212
    </xs:sequence>
213
  </xs:complexType>
214

  
215
  <xs:complexType name="externalreferenceType">
216
    <xs:sequence>
217
      <xs:element name="sitename" type="xs:string"/>
218
      <xs:element name="label" type="xs:string"/>
219
      <xs:element name="qualifier" type="optionalClassedSchemedElement"/>
220
      <xs:element name="refidentifier" type="xs:string"/>
221
    </xs:sequence>
222
  </xs:complexType>
223

  
224
</xs:schema>
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff