diff options
Diffstat (limited to 'schemas.lv2/xsd.ttl')
-rw-r--r-- | schemas.lv2/xsd.ttl | 253 |
1 files changed, 72 insertions, 181 deletions
diff --git a/schemas.lv2/xsd.ttl b/schemas.lv2/xsd.ttl index 54d3ad8..38bae58 100644 --- a/schemas.lv2/xsd.ttl +++ b/schemas.lv2/xsd.ttl @@ -8,51 +8,14 @@ xsd: rdfs:comment "XML Schema Datatypes" . xsd:anySimpleType - a rdfs:Datatype . - -xsd:ENTITY - a rdfs:Datatype ; - owl:onDatatype xsd:NCName . - -xsd:ID - a rdfs:Datatype ; - owl:onDatatype xsd:NCName . - -xsd:IDREF 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:QName - a rdfs:Datatype ; - rdfs:label "XML qualified name" ; - owl:onDatatype xsd:anySimpleType ; - owl:withRestrictions ( - [ - xsd:whiteSpace "collapse" - ] - ) . + rdfs:comment "The base class of any primitive XSD dataype." ; + rdfs:label "any simple type" . xsd:anyURI a rdfs:Datatype ; - rdfs:label "URI reference" ; - owl:onDatatype xsd:anySimpleType ; - owl:withRestrictions ( - [ - xsd:whiteSpace "collapse" - ] - ) . + rdfs:label "any URI" ; + owl:onDatatype xsd:anySimpleType . xsd:base64Binary a rdfs:Datatype ; @@ -61,9 +24,7 @@ xsd:base64Binary owl:onDatatype xsd:anySimpleType ; owl:withRestrictions ( [ - xsd:pattern "(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?" - ] [ - xsd:whiteSpace "collapse" + xsd:pattern "(([A-Za-z0-9+/] *[A-Za-z0-9+/] *[A-Za-z0-9+/] *[A-Za-z0-9+/] *)*(([A-Za-z0-9+/] *[A-Za-z0-9+/] *[A-Za-z0-9+/] *[A-Za-z0-9+/])|([A-Za-z0-9+/] *[A-Za-z0-9+/] *[AEIMQUYcgkosw048] *=)|([A-Za-z0-9+/] *[AQgw] *= *=)))?" ] ) . @@ -73,9 +34,7 @@ xsd:boolean owl:onDatatype xsd:anySimpleType ; owl:withRestrictions ( [ - xsd:pattern "(true|false)" - ] [ - xsd:whiteSpace "collapse" + xsd:pattern "(true|false|0|1)" ] ) . @@ -85,9 +44,10 @@ xsd:byte owl:onDatatype xsd:short ; owl:withRestrictions ( [ - xsd:minInclusive -128 - ] [ - xsd:maxInclusive 127 + xsd:maxInclusive "127"^^xsd:byte + ] + [ + xsd:minInclusive "-128"^^xsd:byte ] ) . @@ -97,9 +57,7 @@ xsd:date owl:onDatatype xsd:anySimpleType ; owl:withRestrictions ( [ - xsd:pattern "-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?" - ] [ - xsd:whiteSpace "collapse" + xsd:pattern "-?[0-9][0-9][0-9][0-9][0-9]*-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])(Z|[-+][0-2][0-9]:[0-5][0-9])?" ] ) . @@ -109,9 +67,7 @@ xsd:dateTime owl:onDatatype xsd:anySimpleType ; owl:withRestrictions ( [ - xsd:pattern "-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?" - ] [ - xsd:whiteSpace "collapse" + xsd:pattern "-?[0-9][0-9][0-9][0-9][0-9]*-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([0-1][0-9])|(2[0-4])):[0-5][0-9]:[0-5][0-9](.[0-9]+)?(Z|[-+][0-2][0-9]:[0-5][0-9])?" ] ) . @@ -122,9 +78,7 @@ xsd:decimal owl:onDatatype xsd:anySimpleType ; owl:withRestrictions ( [ - xsd:pattern "[+-]?[0-9]*\\.?[0-9]*" - ] [ - xsd:whiteSpace "collapse" + xsd:pattern "-?INF|NaN|[+-]?(([0-9]+[.]?[0-9]*)|([0-9]*[.]?[0-9]+))([eE][-+]?[0-9]+)?" ] ) . @@ -135,9 +89,7 @@ xsd:double owl:onDatatype xsd:anySimpleType ; owl:withRestrictions ( [ - xsd:pattern "[+-]?[0-9]*\\.?[0-9]*([eE][-+]?[0-9]+)?" - ] [ - xsd:whiteSpace "collapse" + xsd:pattern "-?INF|NaN|[+-]?(([0-9]+[.]?[0-9]*)|([0-9]*[.]?[0-9]+))([eE][-+]?[0-9]+)?" ] ) . @@ -147,6 +99,9 @@ xsd:duration owl:onDatatype xsd:anySimpleType ; owl:withRestrictions ( [ + xsd:pattern "-?P([0-9]+Y)?([0-9]+M)?([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+(\\.[0-9]+)?S)?)?" + ] + [ xsd:whiteSpace "collapse" ] ) . @@ -158,64 +113,20 @@ xsd:float owl:onDatatype xsd:anySimpleType ; owl:withRestrictions ( [ - xsd:pattern "[+-]?[0-9]*\\.?[0-9]*([eE][-+]?[0-9]+)?" - ] [ + xsd:pattern "-?INF|NaN|[+-]?(([0-9]+[.]?[0-9]*)|([0-9]*[.]?[0-9]+))([eE][-+]?[0-9]+)?" + ] + [ xsd:whiteSpace "collapse" ] ) . xsd:fractionDigits a rdf:Property , - owl:DatatypeProperty ; + owl:DatatypeProperty ; rdfs:comment "The total number of digits to the right of the decimal point required to represent a value." ; rdfs:label "fraction digits" ; rdfs:range xsd:nonNegativeInteger . -xsd:gDay - a rdfs:Datatype ; - owl:onDatatype xsd:anySimpleType ; - owl:withRestrictions ( - [ - xsd:whiteSpace "collapse" - ] - ) . - -xsd:gMonth - a rdfs:Datatype ; - owl:onDatatype xsd:anySimpleType ; - owl:withRestrictions ( - [ - xsd:whiteSpace "collapse" - ] - ) . - -xsd:gMonthDay - a rdfs:Datatype ; - owl:onDatatype xsd:anySimpleType ; - owl:withRestrictions ( - [ - xsd:whiteSpace "collapse" - ] - ) . - -xsd:gYear - a rdfs:Datatype ; - owl:onDatatype xsd:anySimpleType ; - owl:withRestrictions ( - [ - xsd:whiteSpace "collapse" - ] - ) . - -xsd:gYearMonth - a rdfs:Datatype ; - owl:onDatatype xsd:anySimpleType ; - owl:withRestrictions ( - [ - xsd:whiteSpace "collapse" - ] - ) . - xsd:hexBinary a rdfs:Datatype ; rdfs:comment "Hex-encoded arbitrary binary data." ; @@ -223,9 +134,7 @@ xsd:hexBinary owl:onDatatype xsd:anySimpleType ; owl:withRestrictions ( [ - xsd:pattern "[0-9A-F]*" - ] [ - xsd:whiteSpace "collapse" + xsd:pattern "([0-9A-Fa-f][0-9A-Fa-f])*" ] ) . @@ -235,9 +144,10 @@ xsd:int owl:onDatatype xsd:long ; owl:withRestrictions ( [ - xsd:minInclusive -2147483648 - ] [ - xsd:maxInclusive 2147483647 + xsd:maxInclusive "2147483647"^^xsd:int + ] + [ + xsd:minInclusive "-2147483648"^^xsd:int ] ) . @@ -248,7 +158,8 @@ xsd:integer owl:withRestrictions ( [ xsd:pattern "[-+]?[0-9]+" - ] [ + ] + [ xsd:fractionDigits 0 ] ) . @@ -259,7 +170,7 @@ xsd:language owl:onDatatype xsd:token ; owl:withRestrictions ( [ - xsd:pattern "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*" + xsd:pattern "[a-zA-Z][a-zA-Z]?[a-zA-Z]?[a-zA-Z]?[a-zA-Z]?[a-zA-Z]?[a-zA-Z]?[a-zA-Z]?(-[a-zA-Z0-9][a-zA-Z0-9]?[a-zA-Z0-9]?[a-zA-Z0-9]?[a-zA-Z0-9]?[a-zA-Z0-9]?[a-zA-Z0-9]?[a-zA-Z0-9]?)*" ] ) . @@ -269,33 +180,34 @@ xsd:long owl:onDatatype xsd:integer ; owl:withRestrictions ( [ - xsd:minInclusive -9223372036854775808 - ] [ - xsd:maxInclusive 9223372036854775807 + xsd:maxInclusive "9223372036854775807"^^xsd:long + ] + [ + xsd:minInclusive "-9223372036854775808"^^xsd:long ] ) . xsd:maxExclusive a rdf:Property , - owl:DatatypeProperty ; + owl:DatatypeProperty ; rdfs:comment "The exclusive upper bound of an ordered datatype." ; rdfs:label "max exclusive" . xsd:maxInclusive a rdf:Property , - owl:DatatypeProperty ; + owl:DatatypeProperty ; rdfs:comment "The inclusive upper bound of an ordered datatype." ; rdfs:label "max inclusive" . xsd:minExclusive a rdf:Property , - owl:DatatypeProperty ; + owl:DatatypeProperty ; rdfs:comment "The exclusive lower bound of an ordered datatype." ; rdfs:label "min exclusive" . xsd:minInclusive a rdf:Property , - owl:DatatypeProperty ; + owl:DatatypeProperty ; rdfs:comment "The inclusive lower bound of an ordered datatype." ; rdfs:label "min inclusive" . @@ -315,8 +227,9 @@ xsd:nonNegativeInteger owl:onDatatype xsd:integer ; owl:withRestrictions ( [ - xsd:pattern "[0-9]*" - ] [ + xsd:pattern "[+]?[0-9]+" + ] + [ xsd:minInclusive 0 ] ) . @@ -328,7 +241,8 @@ xsd:nonPositiveInteger owl:withRestrictions ( [ xsd:pattern "(0|-[0-9]+)" - ] [ + ] + [ xsd:maxInclusive 0 ] ) . @@ -337,42 +251,23 @@ xsd:normalizedString a rdfs:Datatype ; rdfs:comment "The set of strings that do not contain the carriage return (#xD), line feed (#xA) nor tab (#x9) characters." ; rdfs:label "normalized string" ; - owl:onDatatype xsd:string ; - owl:withRestrictions ( - [ - xsd:whiteSpace "replace" - ] - ) . + owl:onDatatype xsd:string . xsd:pattern a rdf:Property , - owl:DatatypeProperty ; + owl:DatatypeProperty ; rdfs:comment "A regular expression that matches complete valid literals." ; rdfs:label "pattern" . -xsd:whiteSpace - a rdf:Property , - owl:DatatypeProperty ; - rdfs:comment "A string that describes whitespace normalization for a string type." ; - rdfs:label "white space" ; - rdfs:range [ - a rdfs:Datatype ; - owl:onDatatype xsd:string ; - owl:withRestrictions ( - [ - xsd:pattern "(preserve|replace|collapse)" - ] - ) - ] . - xsd:positiveInteger a rdfs:Datatype ; rdfs:label "positive integer" ; owl:onDatatype xsd:nonNegativeInteger ; owl:withRestrictions ( [ - xsd:pattern "[+]?[0-9]+" - ] [ + xsd:pattern "[+]?[0-9]*[1-9]+[0-9]*" + ] + [ xsd:minInclusive 1 ] ) . @@ -383,9 +278,10 @@ xsd:short owl:onDatatype xsd:int ; owl:withRestrictions ( [ - xsd:minInclusive -32768 - ] [ - xsd:maxInclusive 32767 + xsd:maxInclusive "32767"^^xsd:short + ] + [ + xsd:minInclusive "-32768"^^xsd:short ] ) . @@ -393,12 +289,7 @@ xsd:string a rdfs:Datatype ; rdfs:comment "A character string." ; rdfs:label "string" ; - owl:onDatatype xsd:anySimpleType ; - owl:withRestrictions ( - [ - xsd:whiteSpace "preserve" - ] - ) . + owl:onDatatype xsd:anySimpleType . xsd:time a rdfs:Datatype ; @@ -406,9 +297,7 @@ xsd:time owl:onDatatype xsd:anySimpleType ; owl:withRestrictions ( [ - xsd:pattern "[1-2][0-9]:[0-5][0-9]:[0-5][0-9].[0-9][0-9][0-9]" - ] [ - xsd:whiteSpace "collapse" + xsd:pattern "(([0-1][0-9])|(2[0-4])):[0-5][0-9]:[0-5][0-9](.[0-9]+)?(Z|[-+][0-2][0-9]:[0-5][0-9])?" ] ) . @@ -416,19 +305,7 @@ xsd:token a rdfs:Datatype ; 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." ; rdfs:label "token" ; - owl:onDatatype xsd:normalizedString ; - owl:withRestrictions ( - [ - xsd:whiteSpace "collapse" - ] - ) . - -xsd:totalDigits - a rdf:Property , - owl:DatatypeProperty ; - rdfs:comment "The maximum number of decimal digits required to represent a value." ; - rdfs:label "total digits" ; - rdfs:range xsd:positiveInteger . + owl:onDatatype xsd:normalizedString . xsd:unsignedByte a rdfs:Datatype ; @@ -436,7 +313,7 @@ xsd:unsignedByte owl:onDatatype xsd:unsignedShort ; owl:withRestrictions ( [ - xsd:maxInclusive 255 + xsd:maxInclusive "255"^^xsd:unsignedByte ] ) . @@ -446,7 +323,7 @@ xsd:unsignedInt owl:onDatatype xsd:unsignedLong ; owl:withRestrictions ( [ - xsd:maxInclusive 4294967295 + xsd:maxInclusive "4294967295"^^xsd:unsignedInt ] ) . @@ -456,7 +333,7 @@ xsd:unsignedLong owl:onDatatype xsd:nonNegativeInteger ; owl:withRestrictions ( [ - xsd:maxInclusive 18446744073709551615 + xsd:maxInclusive "18446744073709551615"^^xsd:unsignedLong ] ) . @@ -466,7 +343,21 @@ xsd:unsignedShort owl:onDatatype xsd:unsignedInt ; owl:withRestrictions ( [ - xsd:maxInclusive 65535 + xsd:maxInclusive "65535"^^xsd:unsignedShort ] ) . +xsd:whiteSpace + a rdf:Property , + owl:DatatypeProperty ; + rdfs:comment "A string that describes whitespace normalization for a string type." ; + rdfs:label "white space" ; + rdfs:range [ + a rdfs:Datatype ; + owl:onDatatype xsd:string ; + owl:withRestrictions ( + [ + xsd:pattern "(preserve|replace|collapse)" + ] + ) + ] . |