Revision 58637
Added by Alessia Bardi about 3 years ago
oaf-common-1.0.xsd | ||
---|---|---|
19 | 19 |
<xs:simpleType name="stringOrEmptyType"> |
20 | 20 |
<xs:union memberTypes="emptyType xs:string"/> |
21 | 21 |
</xs:simpleType> |
22 |
|
|
23 |
<xs:complexType mixed="true" name="inferenceExtendedStringType"> |
|
24 |
<xs:annotation> |
|
25 |
<xs:documentation>XML elements of this type are simple strings, but in cases where their |
|
26 |
values have been inferred by Openaire inference algorithms, the elements features |
|
27 |
some attributes describing the inference algorithm. This way it is easy to |
|
28 |
understand if a value comes from the originally imported data or if it has been |
|
29 |
added later for enrichment. </xs:documentation> |
|
30 |
</xs:annotation> |
|
31 |
<xs:simpleContent> |
|
32 |
<xs:extension base="xs:string"> |
|
33 |
<xs:attributeGroup ref="optionalInferenceAttrGroup"/> |
|
34 |
</xs:extension> |
|
35 |
</xs:simpleContent> |
|
36 |
</xs:complexType> |
|
37 |
|
|
38 |
<xs:complexType mixed="true" name="inferenceExtendedBooleanType"> |
|
39 |
<xs:annotation> |
|
40 |
<xs:documentation>XML elements of this type are simple booleans, but in cases where |
|
41 |
their values have been inferred by Openaire inference algorithms, the elements |
|
42 |
features some attributes describing the inference algorithm. This way it is easy to |
|
43 |
understand if a value comes from the originally imported data or if it has been |
|
44 |
added later for enrichment. </xs:documentation> |
|
45 |
</xs:annotation> |
|
46 |
<xs:simpleContent> |
|
47 |
<xs:extension base="xs:boolean"> |
|
48 |
<xs:attributeGroup ref="optionalInferenceAttrGroup"/> |
|
49 |
</xs:extension> |
|
50 |
</xs:simpleContent> |
|
51 |
</xs:complexType> |
|
52 |
|
|
53 |
<xs:attributeGroup name="optionalInferenceAttrGroup"> |
|
22 |
|
|
23 |
<xs:attributeGroup name="dataInfoAttributeGroup"> |
|
54 | 24 |
<xs:attribute name="inferred" use="optional" type="xs:boolean"> |
55 | 25 |
<xs:annotation> |
56 | 26 |
<xs:documentation>True if this information has been inferred by the automatic |
57 | 27 |
inference algorithms run by OpenAIRE. </xs:documentation> |
58 | 28 |
</xs:annotation> |
59 | 29 |
</xs:attribute> |
60 |
<xs:attribute name="inferenceprovenance" use="optional" type="xs:string"> |
|
61 |
<xs:annotation> |
|
62 |
<xs:documentation>Which algorithm inferred the current property. </xs:documentation> |
|
63 |
</xs:annotation> |
|
64 |
</xs:attribute> |
|
65 | 30 |
<xs:attribute name="trust" use="optional" type="xs:string"> |
66 | 31 |
<xs:annotation> |
67 | 32 |
<xs:documentation>Value of trust of this information in the range [0,1]. More the |
68 | 33 |
value, more trustworthy is the information. </xs:documentation> |
69 | 34 |
</xs:annotation> |
70 | 35 |
</xs:attribute> |
36 |
<xs:attribute name="inferenceprovenance" use="optional" type="xs:string"> |
|
37 |
<xs:annotation> |
|
38 |
<xs:documentation>Which algorithm inferred the current property. </xs:documentation> |
|
39 |
</xs:annotation> |
|
40 |
</xs:attribute> |
|
41 |
<xs:attributeGroup ref="qualifierAttributeGroup"></xs:attributeGroup> |
|
71 | 42 |
</xs:attributeGroup> |
72 |
|
|
73 |
<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// --> |
|
74 |
|
|
75 |
<xs:complexType mixed="true" name="controlledElementType"> |
|
43 |
|
|
44 |
<xs:attributeGroup name="qualifierAttributeGroup"> |
|
45 |
<xs:attribute name="classid" use="required" type="xs:string"/> |
|
46 |
<xs:attribute name="classname" use="required" type="xs:string"/> |
|
47 |
<xs:attribute name="schemeid" use="required" type="xs:string"/> |
|
48 |
<xs:attribute name="schemename" use="required" type="xs:string"/> |
|
49 |
</xs:attributeGroup> |
|
50 |
|
|
51 |
<xs:complexType name="fieldType"> |
|
76 | 52 |
<xs:simpleContent> |
77 | 53 |
<xs:extension base="xs:string"> |
78 |
<xs:attribute name="code" use="required" type="xs:string"/> |
|
79 |
<xs:attributeGroup ref="optionalInferenceAttrGroup"/> |
|
54 |
<xs:attributeGroup ref="dataInfoAttributeGroup"/> |
|
80 | 55 |
</xs:extension> |
81 | 56 |
</xs:simpleContent> |
82 | 57 |
</xs:complexType> |
83 |
|
|
84 |
<!-- |
|
85 |
<xs:complexType mixed="true" name="optionalControlledElementType"> |
|
86 |
<xs:attribute name="code" use="optional" type="xs:string"/> |
|
87 |
<xs:attributeGroup ref="optionalInferenceAttrGroup"/> |
|
58 |
|
|
59 |
<xs:complexType name="qualifierType"> |
|
60 |
<xs:attributeGroup ref="qualifierAttributeGroup"/> |
|
88 | 61 |
</xs:complexType> |
89 |
--> |
|
90 |
|
|
91 |
<xs:complexType name="namedIdElementType"> |
|
92 |
<xs:attribute name="id" use="required"/> |
|
93 |
<xs:attribute name="name" use="required"/> |
|
94 |
<xs:attributeGroup ref="optionalInferenceAttrGroup"/> |
|
62 |
|
|
63 |
<xs:complexType name="dataInfoType"> |
|
64 |
<xs:attributeGroup ref="dataInfoAttributeGroup"/> |
|
95 | 65 |
</xs:complexType> |
96 |
|
|
66 |
|
|
67 |
<xs:complexType name="structuredPropertyElementType"> |
|
68 |
<xs:simpleContent> |
|
69 |
<xs:extension base="xs:string"> |
|
70 |
<xs:attributeGroup ref="qualifierAttributeGroup"/> |
|
71 |
<xs:attributeGroup ref="dataInfoAttributeGroup"/> |
|
72 |
</xs:extension> |
|
73 |
</xs:simpleContent> |
|
74 |
</xs:complexType> |
|
75 |
|
|
97 | 76 |
<xs:complexType name="labeledIdElementType"> |
98 | 77 |
<xs:attribute name="id" use="required"/> |
99 | 78 |
<xs:attribute name="label" use="required"/> |
100 |
<xs:attributeGroup ref="optionalInferenceAttrGroup"/> |
|
101 | 79 |
</xs:complexType> |
102 |
|
|
103 |
<xs:complexType name="typedElementType"> |
|
104 |
<xs:simpleContent> |
|
105 |
<xs:extension base="xs:string"> |
|
106 |
<xs:attribute name="type" use="required"/> |
|
107 |
<xs:attributeGroup ref="optionalInferenceAttrGroup"/> |
|
80 |
|
|
81 |
<!-- <oaf:context id="egi" label="EGI" type="community"> |
|
82 |
<oaf:category id="egi::virtual" label="EGI virtual organizations"> |
|
83 |
<oaf:concept id="egi::virtual::2" label="alice"/> |
|
84 |
</oaf:category> |
|
85 |
</oaf:context> |
|
86 |
<oaf:community id="{@id}" label="{@label}"> |
|
87 |
<xsl:apply-templates/> |
|
88 |
</oaf:community> |
|
89 |
--> |
|
90 |
<xs:complexType name="contextType"> |
|
91 |
<xs:complexContent> |
|
92 |
<xs:extension base="labeledIdElementType"> |
|
93 |
<xs:sequence maxOccurs="unbounded"> |
|
94 |
<xs:element name="category" type="categoryType"/> |
|
95 |
</xs:sequence> |
|
96 |
<xs:attributeGroup ref="dataInfoAttributeGroup"/> |
|
108 | 97 |
</xs:extension> |
109 |
</xs:simpleContent> |
|
110 |
|
|
98 |
</xs:complexContent> |
|
111 | 99 |
</xs:complexType> |
100 |
|
|
101 |
<xs:complexType name="categoryType"> |
|
102 |
<xs:complexContent> |
|
103 |
<xs:extension base="labeledIdElementType"> |
|
104 |
<xs:sequence minOccurs="0" maxOccurs="unbounded"> |
|
105 |
<xs:element name="concept" type="conceptType"/> |
|
106 |
</xs:sequence> |
|
107 |
</xs:extension> |
|
108 |
</xs:complexContent> |
|
109 |
</xs:complexType> |
|
110 |
|
|
111 |
<xs:complexType name="conceptType"> |
|
112 |
<xs:complexContent> |
|
113 |
<xs:extension base="labeledIdElementType"> |
|
114 |
<xs:sequence maxOccurs="unbounded" minOccurs="0"> |
|
115 |
<xs:element name="concept" type="conceptType"/> |
|
116 |
</xs:sequence> |
|
117 |
</xs:extension> |
|
118 |
</xs:complexContent> |
|
119 |
</xs:complexType> |
|
120 |
|
|
121 |
<xs:complexType name="namedIdElementType"> |
|
122 |
<xs:attribute name="id" use="required"/> |
|
123 |
<xs:attribute name="name" use="required"/> |
|
124 |
<xs:attributeGroup ref="dataInfoAttributeGroup"/> |
|
125 |
</xs:complexType> |
|
112 | 126 |
|
113 |
|
|
114 | 127 |
<xs:complexType name="relsType"> |
115 | 128 |
<xs:annotation> |
116 | 129 |
<xs:documentation>Relationships to other entities.</xs:documentation> |
... | ... | |
127 | 140 |
<xs:element name="title" type="xs:string"/> |
128 | 141 |
<xs:element name="websiteurl"/> |
129 | 142 |
<xs:choice> |
130 |
<xs:group ref="relPersonGroup"/> |
|
131 | 143 |
<xs:group ref="relDataSourceGroup"/> |
132 | 144 |
<xs:group ref="relResultGroup"/> |
133 | 145 |
<xs:group ref="relProjectGroup"/> |
... | ... | |
136 | 148 |
</xs:choice> |
137 | 149 |
</xs:choice> |
138 | 150 |
</xs:sequence> |
139 |
<xs:attributeGroup ref="optionalInferenceAttrGroup"/> |
|
140 |
<xs:attribute name="provenanceaction" type="xs:string"/> |
|
151 |
<xs:attributeGroup ref="dataInfoAttributeGroup"/> |
|
141 | 152 |
</xs:complexType> |
142 | 153 |
|
143 |
|
|
144 |
<xs:group name="relPersonGroup"> |
|
145 |
<xs:sequence> |
|
146 |
<xs:choice minOccurs="0" maxOccurs="unbounded"> |
|
147 |
<xs:element name="ranking" type="xs:integer"/> |
|
148 |
<xs:element name="fullname" type="xs:string"/> |
|
149 |
<xs:element name="fax" type="xs:string"/> |
|
150 |
<xs:element name="email" type="xs:string"/> |
|
151 |
<xs:element name="phone" type="xs:string"/> |
|
152 |
</xs:choice> |
|
153 |
</xs:sequence> |
|
154 |
</xs:group> |
|
155 |
|
|
156 | 154 |
<xs:group name="relDataSourceGroup"> |
157 | 155 |
<xs:sequence> |
158 | 156 |
<xs:choice minOccurs="0" maxOccurs="unbounded"> |
159 | 157 |
<xs:element name="officialname" type="xs:string"/> |
160 |
<xs:element name="datasourcetype" type="controlledElementType"/>
|
|
158 |
<xs:element name="datasourcetype" type="qualifierType"/>
|
|
161 | 159 |
</xs:choice> |
162 | 160 |
</xs:sequence> |
163 | 161 |
</xs:group> |
... | ... | |
165 | 163 |
<xs:group name="relResultGroup"> |
166 | 164 |
<xs:sequence> |
167 | 165 |
<xs:choice minOccurs="0" maxOccurs="unbounded"> |
166 |
<xs:element name="collectedfrom" type="namedIdElementType"/> |
|
167 |
<xs:element name="url" type="xs:string"/> |
|
168 |
<xs:element name="pid" type="structuredPropertyElementType"/> |
|
168 | 169 |
<xs:element name="dateofacceptance" type="xs:string"/> |
169 | 170 |
<xs:element name="publisher" type="xs:string"/> |
170 | 171 |
<xs:element name="resulttype" type="xs:string"> |
... | ... | |
212 | 213 |
<xs:group name="fundingGroup"> |
213 | 214 |
<xs:sequence> |
214 | 215 |
<xs:choice minOccurs="0" maxOccurs="unbounded"> |
215 |
<xs:element name="contracttype" type="controlledElementType"/>
|
|
216 |
<xs:element name="contracttype" type="qualifierType"/>
|
|
216 | 217 |
<xs:element name="funding" type="fundingFlatType"/> |
217 | 218 |
</xs:choice> |
218 | 219 |
</xs:sequence> |
... | ... | |
223 | 224 |
<xs:choice minOccurs="0" maxOccurs="unbounded"> |
224 | 225 |
<xs:element name="legalname" type="xs:string"/> |
225 | 226 |
<xs:element name="legalshortname" type="xs:string"/> |
226 |
<xs:element name="country" type="controlledElementType"/>
|
|
227 |
<xs:element name="country" type="xs:string"/>
|
|
227 | 228 |
</xs:choice> |
228 | 229 |
</xs:sequence> |
229 | 230 |
</xs:group> |
... | ... | |
233 | 234 |
<xs:annotation> |
234 | 235 |
<xs:documentation>Information about the related entity. <p>The semantics of the |
235 | 236 |
relationships is expressed by the attributes class and scheme. </p> |
236 |
<!-- <p>See the following ontology for the available relationships: $ontologyURL$</p>--> |
|
237 |
<p>Allowed relationships are: <table> |
|
238 |
<tr><th>Entity types</th><th>Name of relationships</th><th>Inverse |
|
239 |
of</th><th>Simmetric</th></tr> |
|
240 |
<tr><td>Project -- |
|
241 |
Person</td><td>hasContact</td><td>isContact</td><td>no</td></tr> |
|
242 |
<tr><td>Project -- |
|
243 |
Result</td><td>produces</td><td>isProducedBy</td><td>no</td></tr> |
|
244 |
<tr><td>Project -- |
|
245 |
Organization</td><td>hasParticipant</td><td>isParticipant</td><td>no</td></tr> |
|
246 |
<tr><td>Person -- |
|
247 |
Project</td><td>isContact</td><td>hasContact</td><td>no</td></tr> |
|
248 |
<tr><td>Person -- |
|
249 |
Result</td><td>isAuthorOf</td><td>hasAuthor</td><td>no</td></tr> |
|
250 |
<tr><td>Person -- |
|
251 |
Person</td><td>isCoauthorOf</td><td>--</td><td>yes</td></tr> |
|
252 |
<tr><td>Result -- |
|
253 |
Person</td><td>hasAuthor</td><td>isAuthorOf</td><td>no</td></tr> |
|
254 |
<tr><td>Result -- |
|
255 |
Project</td><td>isProducedBy</td><td>produces</td><td>no</td></tr> |
|
256 |
<tr><td>Result -- |
|
257 |
Result</td><td>isRelatedTo</td><td>--</td><td>yes</td></tr> |
|
258 |
<tr><td>Result -- |
|
259 |
Result</td><td>hasAmongTopNSimilarDocuments</td><td>isAmongTopNSimilarDocuments</td><td>no</td></tr> |
|
260 |
<tr><td>Result -- |
|
261 |
Result</td><td>isAmongTopNSimilarDocuments</td><td>hasAmongTopNSimilarDocuments</td><td>no</td></tr> |
|
262 |
<tr><td>Organization -- |
|
263 |
Datasource</td><td>isProvidedBy</td><td>provides</td><td>no</td></tr> |
|
264 |
<tr><td>Organization -- |
|
265 |
Project</td><td>isParticpant</td><td>hasParticipant</td><td>no</td></tr> |
|
266 |
<tr><td>Datasource -- |
|
267 |
Organization</td><td>provides</td><td>isProvidedBy</td><td>no</td></tr> |
|
268 |
</table></p> |
|
269 | 237 |
</xs:documentation> |
270 | 238 |
</xs:annotation> |
271 | 239 |
<xs:simpleContent> |
... | ... | |
318 | 286 |
<xs:element name="sitename" type="xs:string" minOccurs="0" maxOccurs="1"/> |
319 | 287 |
<!--<xs:element name="label" type="xs:string" minOccurs="0" maxOccurs="1"/>--> |
320 | 288 |
<xs:element name="url" type="xs:string" minOccurs="0" maxOccurs="1"/> |
321 |
<xs:element name="qualifier" type="controlledElementType" minOccurs="0" maxOccurs="1"/>
|
|
289 |
<xs:element name="qualifier" type="qualifierType" minOccurs="0" maxOccurs="1"/>
|
|
322 | 290 |
<xs:element name="refidentifier" type="xs:string" minOccurs="0" maxOccurs="1"/> |
323 | 291 |
</xs:sequence> |
324 |
<xs:attributeGroup ref="optionalInferenceAttrGroup"/>
|
|
292 |
<xs:attributeGroup ref="dataInfoAttributeGroup"/>
|
|
325 | 293 |
</xs:complexType> |
326 | 294 |
|
327 | 295 |
|
296 |
<!-- REMOVE FROM HERE TO THE END --> |
|
297 |
|
|
328 | 298 |
</xs:schema> |
Also available in: Unified diff
implemented changes described in changeset for 1.0