This repository was archived by the owner on Jul 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathskos.xsd
48 lines (48 loc) · 1.87 KB
/
skos.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dct="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" targetNamespace="http://www.w3.org/2004/02/skos/core#" elementFormDefault="qualified" attributeFormDefault="qualified">
<xs:annotation>
<xs:documentation xml:lang="en">
SKOS XML Schema
http://www.w3.org/2004/02/skos/core#
</xs:documentation>
</xs:annotation>
<xs:import namespace="http://purl.org/dc/terms/" schemaLocation="dcterms.xsd"/>
<xs:import namespace="http://www.w3.org/1999/02/22-rdf-syntax-ns#" schemaLocation="rdf.xsd"/>
<!-- skos:ConceptScheme-->
<xs:complexType name="ConceptScheme">
<xs:sequence>
<xs:element name="ConceptScheme">
<xs:complexType>
<xs:sequence>
<!-- mandatory properties for skos:ConceptScheme-->
<xs:element ref="dct:title" minOccurs="1"/>
<!-- recommended properties for skos:ConceptScheme-->
</xs:sequence>
<xs:attribute ref="rdf:about"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<!-- skos:Concept-->
<xs:complexType name="Concept">
<xs:sequence>
<xs:element name="Concept">
<xs:complexType>
<xs:sequence>
<xs:element ref="rdf:type" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="skos:prefLabel" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="inScheme" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:attribute ref="rdf:resource" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute ref="rdf:about"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<!-- individual elements-->
<xs:element name="notation" type="rdf:TypedLiteral"/>
<xs:element name="prefLabel" type="rdf:PlainLiteral"/>
</xs:schema>