1
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
|
2
|
<xs:annotation>
|
3
|
<xs:documentation>Standard part of any Resource Profile</xs:documentation>
|
4
|
</xs:annotation>
|
5
|
<xs:element name="RESOURCE_PROFILE">
|
6
|
<xs:complexType>
|
7
|
<xs:sequence>
|
8
|
<xs:element name="HEADER" type="HEADERType"/>
|
9
|
<xs:element name="BODY" type="BODYType"/>
|
10
|
</xs:sequence>
|
11
|
</xs:complexType>
|
12
|
</xs:element>
|
13
|
<xs:complexType name="HEADERType">
|
14
|
<xs:all>
|
15
|
<xs:element name="RESOURCE_IDENTIFIER" type="RESOURCE_IDENTIFIERType"/>
|
16
|
<xs:element name="RESOURCE_TYPE" type="RESOURCE_TYPEType"/>
|
17
|
<xs:element name="RESOURCE_KIND" type="RESOURCE_KINDType"/>
|
18
|
<xs:element name="RESOURCE_URI" type="RESOURCE_URIType"/>
|
19
|
<xs:element name="DATE_OF_CREATION" type="DATEType"/>
|
20
|
</xs:all>
|
21
|
</xs:complexType>
|
22
|
<xs:complexType name="BODYType">
|
23
|
<xs:sequence>
|
24
|
<xs:element name="CONFIGURATION" type="CONFIGURATIONType"/>
|
25
|
<xs:element name="STATUS" type="STATUSType"/>
|
26
|
<xs:element ref="SECURITY_PARAMETERS"/>
|
27
|
</xs:sequence>
|
28
|
</xs:complexType>
|
29
|
<xs:complexType name="RESOURCE_IDENTIFIERType">
|
30
|
<xs:attribute name="value" type="xs:string" use="required"/>
|
31
|
</xs:complexType>
|
32
|
<xs:complexType name="RESOURCE_TYPEType">
|
33
|
<xs:attribute name="value" use="required">
|
34
|
<xs:simpleType>
|
35
|
<xs:restriction base="xs:string">
|
36
|
<xs:enumeration value="VocabularyDSResourceType"/>
|
37
|
</xs:restriction>
|
38
|
</xs:simpleType>
|
39
|
</xs:attribute>
|
40
|
</xs:complexType>
|
41
|
<xs:complexType name="RESOURCE_KINDType">
|
42
|
<xs:attribute name="value" use="required">
|
43
|
<xs:simpleType>
|
44
|
<xs:restriction base="xs:string">
|
45
|
<xs:enumeration value="VocabularyDSResources"/>
|
46
|
</xs:restriction>
|
47
|
</xs:simpleType>
|
48
|
</xs:attribute>
|
49
|
</xs:complexType>
|
50
|
<xs:complexType name="RESOURCE_URIType">
|
51
|
<xs:attribute name="value" type="xs:string" use="required"/>
|
52
|
</xs:complexType>
|
53
|
<xs:complexType name="DATEType">
|
54
|
<xs:attribute name="value" type="xs:dateTime" use="required"/>
|
55
|
</xs:complexType>
|
56
|
<xs:annotation>
|
57
|
<xs:documentation>Customisable part of any Resource Profile</xs:documentation>
|
58
|
</xs:annotation>
|
59
|
<xs:complexType name="CONFIGURATIONType">
|
60
|
<xs:sequence>
|
61
|
<xs:element ref="VOCABULARY_NAME" />
|
62
|
<xs:element ref="VOCABULARY_DESCRIPTION"/>
|
63
|
<xs:element name="TERMS" type="VOCABULARYTERMType"/>
|
64
|
</xs:sequence>
|
65
|
</xs:complexType>
|
66
|
<xs:complexType name="VOCABULARYTERMType">
|
67
|
<xs:sequence>
|
68
|
<xs:element name="TERM" type="TERMType" maxOccurs="unbounded" minOccurs="0"/>
|
69
|
</xs:sequence>
|
70
|
</xs:complexType>
|
71
|
<xs:complexType name="TERMType">
|
72
|
<xs:sequence>
|
73
|
<xs:element name="SYNONYMS">
|
74
|
<xs:complexType>
|
75
|
<xs:sequence>
|
76
|
<xs:element name="SYNONYM" type="SYNONYMType" minOccurs="0" maxOccurs="unbounded"/>
|
77
|
</xs:sequence>
|
78
|
</xs:complexType>
|
79
|
</xs:element>
|
80
|
</xs:sequence>
|
81
|
<xs:attribute name="encoding" type="xs:string" use="required"/>
|
82
|
<xs:attribute name="english_name" type="xs:string" use="required"/>
|
83
|
<xs:attribute name="native_name" type="xs:string" use="required"/>
|
84
|
<xs:attribute name="code" type="xs:string" use="optional"/>
|
85
|
</xs:complexType>
|
86
|
<xs:complexType name="SYNONYMType">
|
87
|
<xs:attribute name="encoding" type="xs:string" use="required"/>
|
88
|
<xs:attribute name="term" type="xs:string" use="required"/>
|
89
|
</xs:complexType>
|
90
|
<xs:complexType name="STATUSType">
|
91
|
<xs:all>
|
92
|
<xs:element name="LAST_UPDATE" type="DATEType"/>
|
93
|
</xs:all>
|
94
|
</xs:complexType>
|
95
|
<xs:element name="VOCABULARY_NAME">
|
96
|
<xs:complexType>
|
97
|
<xs:simpleContent>
|
98
|
<xs:extension base="xs:string">
|
99
|
<xs:attribute name="code" type="xs:string" use="optional"></xs:attribute>
|
100
|
</xs:extension>
|
101
|
</xs:simpleContent>
|
102
|
</xs:complexType>
|
103
|
</xs:element>
|
104
|
<xs:element name="VOCABULARY_DESCRIPTION" type="xs:string"/>
|
105
|
<xs:element name="SECURITY_PARAMETERS" type="xs:string"/>
|
106
|
</xs:schema>
|