This repository has been 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 pathrdf.xsd
113 lines (113 loc) · 4.25 KB
/
rdf.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dcat="http://www.w3.org/ns/dcat#" targetNamespace="http://www.w3.org/1999/02/22-rdf-syntax-ns#" elementFormDefault="qualified" attributeFormDefault="qualified">
<xs:annotation>
<xs:documentation xml:lang="en">
RDF XML Schema (relevant parts for DCAT-AP)
XML Schema for http://www.w3.org/1999/02/22-rdf-syntax-ns# namespace
</xs:documentation>
</xs:annotation>
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
<xs:import namespace="http://www.w3.org/ns/dcat#" schemaLocation="dcat.xsd"/>
<!-- rdf:plainLiteral -->
<xs:complexType name="PlainLiteral">
<xs:annotation>
<xs:documentation xml:lang="en">
The Resource Description Framework [RDF] is defined to have an extensible system of typed literals, based on XML Schema datatypes [XSD], and also to have plain literals. In the RDF specification, plain literals differ from typed literals in that plain literals have no datatype and can optionally have a language tag, indicating the natural language of the content.
</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="xml:lang" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<!-- rdf:typedLiteral -->
<xs:complexType name="TypedLiteral">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="rdf:datatype"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<!-- rdf:TypedLiteral dateTime -->
<xs:simpleType name="dateOrDateTime">
<xs:union memberTypes="xs:date xs:dateTime"/>
</xs:simpleType>
<xs:complexType name="DateTimeLiteral">
<xs:simpleContent>
<xs:extension base="xs:dateTime">
<xs:attribute ref="rdf:datatype" fixed="http://www.w3.org/2001/XMLSchema#dateTime"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="DateLiteral">
<xs:simpleContent>
<xs:extension base="xs:date">
<xs:attribute ref="rdf:datatype" fixed="http://www.w3.org/2001/XMLSchema#date"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="DateOrDateTimeLiteral">
<xs:simpleContent>
<xs:extension base="rdf:dateOrDateTime">
<xs:attribute name="datatype">
<xs:simpleType>
<xs:restriction base="xs:anyURI">
<xs:enumeration value="http://www.w3.org/2001/XMLSchema#date"/>
<xs:enumeration value="http://www.w3.org/2001/XMLSchema#dateTime"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<!-- rdf:Statement -->
<xs:complexType name="Statement">
<xs:sequence>
<xs:element name="Statement" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="subject" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:attribute ref="rdf:resource" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="predicate" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:attribute ref="rdf:resource" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="object" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="rdf:datatype"/>
<xs:attribute ref="rdf:resource"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute ref="rdf:about"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<!-- rdf:Resource-->
<xs:complexType name="Resource">
<xs:attribute ref="rdf:resource" use="required"/>
</xs:complexType>
<!-- CatalogRoot -->
<xs:complexType name="CatalogRoot">
<xs:choice>
<xs:element ref="dcat:Catalog"/>
</xs:choice>
</xs:complexType>
<!-- individual elements -->
<xs:element name="type" type="rdf:Resource"/>
<xs:attribute name="about" type="xs:anyURI"/>
<xs:attribute name="resource" type="xs:anyURI"/>
<xs:attribute name="datatype" type="xs:anyURI"/>
<xs:attribute name="nodeID" type="xs:NCName"/>
<xs:element name="RDF" type="rdf:CatalogRoot"/>
</xs:schema>