-
Notifications
You must be signed in to change notification settings - Fork 3
/
xtriples.rng
108 lines (108 loc) · 4.9 KB
/
xtriples.rng
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
<grammar xmlns="http://relaxng.org/ns/structure/1.0" ns="" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<start>
<element name="xtriples">
<element name="configuration">
<element name="vocabularies">
<oneOrMore>
<element name="vocabulary">
<attribute name="name">
<data type="NCName"/>
</attribute>
<attribute name="uri">
<data type="anyURI"/>
</attribute>
</element>
</oneOrMore>
</element>
<element name="triples">
<oneOrMore>
<element name="statement">
<optional>
<element name="condition">
<text/>
</element>
</optional>
<element name="subject">
<optional>
<attribute name="prefix">
<data type="NCName"/>
</attribute>
</optional>
<optional>
<attribute name="type">
<choice>
<value type="string">bnode</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="resource">
<data type="anyURI"/>
</attribute>
</optional>
<text/>
</element>
<element name="predicate">
<attribute name="prefix">
<data type="NCName"/>
</attribute>
<optional>
<attribute name="resource">
<data type="anyURI"/>
</attribute>
</optional>
<data type="NCName"/>
</element>
<element name="object">
<optional>
<attribute name="datatype">
<data type="NCName"/>
</attribute>
</optional>
<optional>
<attribute name="lang">
<data type="NCName"/>
</attribute>
</optional>
<optional>
<attribute name="prefix">
<data type="NCName"/>
</attribute>
</optional>
<optional>
<attribute name="resource">
<data type="anyURI"/>
</attribute>
</optional>
<attribute name="type">
<choice>
<value type="string">bnode</value>
<value type="string">uri</value>
<value type="string">literal</value>
</choice>
</attribute>
<text/>
</element>
</element>
</oneOrMore>
</element>
</element>
<element name="collection">
<optional>
<attribute name="uri">
<data type="anyURI"/>
</attribute>
</optional>
<oneOrMore>
<element name="resource">
<optional>
<attribute name="uri">
<data type="anyURI"/>
</attribute>
</optional>
</element>
</oneOrMore>
</element>
</element>
</start>
</grammar>