aboutsummaryrefslogtreecommitdiffstats
path: root/schemas.lv2/xsd.ttl
blob: 75426368536004c5c146a03df2fc6582ff10ad80 (plain)
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.w3.org/2001/XMLSchema#>
	a owl:Ontology ;
	rdfs:comment "XML Schema Datatypes" .

xsd:ID
	a rdfs:Datatype ;
	owl:onDatatype xsd:NCName .

xsd:IDREF
	a rdfs:Datatype ;
	owl:onDatatype xsd:NCName .

xsd:ENTITY
	a rdfs:Datatype ;
	owl:onDatatype xsd:NCName .

xsd:NCName
	a rdfs:Datatype ;
	owl:onDatatype xsd:Name .

xsd:NMTOKEN
	a rdfs:Datatype ;
	owl:onDatatype xsd:token .

xsd:Name
	a rdfs:Datatype ;
	owl:onDatatype xsd:token .

xsd:totalDigits
	a rdf:Property ,
		owl:DatatypeProperty ;
	rdfs:range xsd:positiveInteger ;
	rdfs:label "total digits" ;
	rdfs:comment "The maximum number of decimal digits required to represent a value." .

xsd:fractionDigits
	a rdf:Property ,
		owl:DatatypeProperty ;
	rdfs:range xsd:nonNegativeInteger ;
	rdfs:label "fraction digits" ;
	rdfs:comment "The total number of digits to the right of the decimal point required to represent a value." .

xsd:pattern
	a rdf:Property ,
		owl:DatatypeProperty ;
	rdfs:label "pattern" ;
	rdfs:comment "A regular expression that matches complete valid literals." .

xsd:maxInclusive
	a rdf:Property ,
		owl:DatatypeProperty ;
	rdfs:label "max inclusive" ;
	rdfs:comment "The inclusive upper bound of an ordered datatype." .

xsd:maxExclusive
	a rdf:Property ,
		owl:DatatypeProperty ;
	rdfs:label "max exclusive" ;
	rdfs:comment "The exclusive upper bound of an ordered datatype." .

xsd:minInclusive
	a rdf:Property ,
		owl:DatatypeProperty ;
	rdfs:label "min inclusive" ;
	rdfs:comment "The inclusive lower bound of an ordered datatype." .

xsd:minExclusive
	a rdf:Property ,
		owl:DatatypeProperty ;
	rdfs:label "min exclusive" ;
	rdfs:comment "The exclusive lower bound of an ordered datatype." .

xsd:QName
	a rdfs:Datatype ;
	rdfs:label "XML qualified name" .

xsd:anyURI
	a rdfs:Datatype ;
	rdfs:label "URI reference" .

xsd:base64Binary
	a rdfs:Datatype ;
	rdfs:label "base64 binary" ;
	rdfs:comment "Base64-encoded arbitrary binary data." ;
	owl:withRestrictions (
		[
			xsd:pattern "(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?"
		]
	) .

xsd:boolean
	a rdfs:Datatype ;
	rdfs:label "boolean" ;
	owl:withRestrictions (
		[
			xsd:pattern "(true|false)"
		]
	) .

xsd:byte
	a rdfs:Datatype ;
	rdfs:label "byte" ;
	owl:onDatatype xsd:short ;
	owl:withRestrictions (
		[
			xsd:maxInclusive 127
		] [
			xsd:minInclusive -128
		]
	) .

xsd:date
	a rdfs:Datatype ;
	rdfs:label "date" ;
	owl:withRestrictions (
		[
			xsd:pattern "-?[0-9][0-9][0-9][0-9]([0-9]*)?-(0[1-9]|1[0-2])-([0-3][0-9])([+-]([0-1][0-9]|2[0-3]):[0-5][0-9])?"
		]
	) .

xsd:dateTime
	a rdfs:Datatype ;
	rdfs:label "date time" .

xsd:decimal
	a rdfs:Datatype ;
	rdfs:label "decimal" ;
	rdfs:comment "A subset of the real numbers, which can be represented by decimal numerals." ;
	owl:withRestrictions (
		[
			xsd:pattern "[+-]?[0-9]*\\.?[0-9]*"
		]
	) .

xsd:double
	a rdfs:Datatype ;
	rdfs:label "double" ;
	rdfs:comment "IEEE double-precision 64-bit floating point." ;
	owl:withRestrictions (
		[
			xsd:pattern "[+-]?[0-9]*\\.?[0-9]*([eE][-+]?[0-9]+)"
		]
	) .

xsd:duration
	a rdfs:Datatype ;
	rdfs:label "duration" .

xsd:float
	a rdfs:Datatype ;
	rdfs:label "float" ;
	rdfs:comment "IEEE single-precision 32-bit floating point." ;
	owl:onDatatype xsd:double .

xsd:gDay
	a rdfs:Datatype .

xsd:gMonth
	a rdfs:Datatype .

xsd:gMonthDay
	a rdfs:Datatype .

xsd:gYear
	a rdfs:Datatype .

xsd:gYearMonth
	a rdfs:Datatype .

xsd:hexBinary
	a rdfs:Datatype ;
	rdfs:label "hex binary" ;
	rdfs:comment "Hex-encoded arbitrary binary data." ;
	owl:withRestrictions (
		[
			xsd:pattern "[0-9A-F]*"
		]
	) .

xsd:int
	a rdfs:Datatype ;
	rdfs:label "int" ;
	owl:onDatatype xsd:long ;
	owl:withRestrictions (
		[
			xsd:maxInclusive 2147483647
		] [
			xsd:minInclusive -2147483648
		]
	) .

xsd:integer
	a rdfs:Datatype ;
	rdfs:label "integer" ;
	owl:onDatatype xsd:decimal ;
	owl:withRestrictions (
		[
			xsd:pattern "[-+]?[0-9]+"
		] [
			xsd:fractionDigits 0
		]
	) .

xsd:language
	a rdfs:Datatype ;
	rdfs:label "language" ;
	owl:onDatatype xsd:token ;
	owl:withRestrictions (
		[
			xsd:pattern "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
		]
	) .

xsd:long
	a rdfs:Datatype ;
	rdfs:label "long" ;
	owl:onDatatype xsd:integer ;
	owl:withRestrictions (
		[
			xsd:maxInclusive 9223372036854775807
		] [
			xsd:minInclusive -9223372036854775808
		]
	) .

xsd:negativeInteger
	a rdfs:Datatype ;
	rdfs:label "negative integer" ;
	owl:onDatatype xsd:nonPositiveInteger ;
	owl:withRestrictions (
		[
			xsd:maxInclusive -1
		]
	) .

xsd:nonNegativeInteger
	a rdfs:Datatype ;
	rdfs:label "non-negative integer" ;
	owl:onDatatype xsd:integer ;
	owl:withRestrictions (
		[
			xsd:pattern "[0-9]*"
		] [
			xsd:minInclusive 0
		]
	) .

xsd:nonPositiveInteger
	a rdfs:Datatype ;
	rdfs:label "non-positive integer" ;
	owl:onDatatype xsd:integer ;
	owl:withRestrictions (
		[
			xsd:pattern "(0|-[0-9]+)"
		] [
			xsd:maxInclusive 0
		]
	) .

xsd:normalizedString
	a rdfs:Datatype ;
	rdfs:label "normalized string" ;
	owl:onDatatype xsd:string ;
	rdfs:comment "The set of strings that do not contain the carriage return (#xD), line feed (#xA) nor tab (#x9) characters." .

xsd:positiveInteger
	a rdfs:Datatype ;
	rdfs:label "positive integer" ;
	owl:onDatatype xsd:nonNegativeInteger ;
	owl:withRestrictions (
		[
			xsd:pattern "[+]?[0-9]+"
		] [
			xsd:minInclusive 1
		]
	) .

xsd:short
	a rdfs:Datatype ;
	rdfs:label "short" ;
	owl:onDatatype xsd:int ;
	owl:withRestrictions (
		[
			xsd:maxInclusive 32767
		] [
			xsd:minInclusive -32768
		]
	) .

xsd:string
	a rdfs:Datatype ;
	rdfs:label "string" ;
	rdfs:comment "A character string." .

xsd:time
	a rdfs:Datatype ;
	rdfs:label "time" ;
	owl:withRestrictions (
		[
			xsd:pattern "[1-2][0-9]:[0-5][0-9]:[0-5][0-9].[0-9][0-9][0-9]"
		]
	) .

xsd:token
	a rdfs:Datatype ;
	rdfs:label "token" ;
	owl:onDatatype xsd:normalizedString ;
	rdfs:comment "The set of strings that do not contain the carriage return (#xD), line feed (#xA) nor tab (#x9) characters, that have no leading or trailing spaces (#x20) and that have no internal sequences of two or more spaces." .

xsd:unsignedByte
	a rdfs:Datatype ;
	rdfs:label "unsigned byte" ;
	owl:onDatatype xsd:unsignedShort ;
	owl:withRestrictions (
		[
			xsd:maxInclusive 255
		]
	) .

xsd:unsignedInt
	a rdfs:Datatype ;
	rdfs:label "unsigned int" ;
	owl:onDatatype xsd:unsignedLong ;
	owl:withRestrictions (
		[
			xsd:maxInclusive 4294967295
		]
	) .

xsd:unsignedLong
	a rdfs:Datatype ;
	rdfs:label "unsigned long" ;
	owl:onDatatype xsd:nonNegativeInteger ;
	owl:withRestrictions (
		[
			xsd:maxInclusive 18446744073709551615
		]
	) .

xsd:unsignedShort
	a rdfs:Datatype ;
	rdfs:label "unsigned short" ;
	owl:onDatatype xsd:unsignedInt ;
	owl:withRestrictions (
		[
			xsd:maxInclusive 65535
		]
	) .