diff options
author | David Robillard <d@drobilla.net> | 2021-03-11 14:47:36 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-03-12 22:36:14 -0500 |
commit | b37402500176b328a6a5752df2a170538cc9594c (patch) | |
tree | 123b86f123177f805edd631cc05beb0fc131dd38 | |
parent | 50f531462274bb6c395ff1b63cf7c1016d7bb088 (diff) | |
download | lv2-b37402500176b328a6a5752df2a170538cc9594c.tar.xz |
Use matching datatypes for fixed-size bounds in xsd.ttl
This avoids the need to do any datatype conversion for handling bounds. In
particular, it avoids troublesome range issues, like the maximum
xsd:unsignedLong being too large to fit in an xsd:long, which is likely what an
implementation without bigint support uses to represent xsd:integer.
So, avoid all of that by simply using the exact datatype in bounds for that
datatype, which makes more sense anyway.
-rw-r--r-- | schemas.lv2/xsd.ttl | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/schemas.lv2/xsd.ttl b/schemas.lv2/xsd.ttl index 007d84e..cb98363 100644 --- a/schemas.lv2/xsd.ttl +++ b/schemas.lv2/xsd.ttl @@ -44,9 +44,9 @@ xsd:byte owl:onDatatype xsd:short ; owl:withRestrictions ( [ - xsd:maxInclusive 127 + xsd:maxInclusive "127"^^xsd:byte ] [ - xsd:minInclusive -128 + xsd:minInclusive "-128"^^xsd:byte ] ) . @@ -141,9 +141,9 @@ xsd:int owl:onDatatype xsd:long ; owl:withRestrictions ( [ - xsd:maxInclusive 2147483647 + xsd:maxInclusive "2147483647"^^xsd:int ] [ - xsd:minInclusive -2147483648 + xsd:minInclusive "-2147483648"^^xsd:int ] ) . @@ -175,9 +175,9 @@ xsd:long owl:onDatatype xsd:integer ; owl:withRestrictions ( [ - xsd:maxInclusive 9223372036854775807 + xsd:maxInclusive "9223372036854775807"^^xsd:long ] [ - xsd:minInclusive -9223372036854775808 + xsd:minInclusive "-9223372036854775808"^^xsd:long ] ) . @@ -269,9 +269,9 @@ xsd:short owl:onDatatype xsd:int ; owl:withRestrictions ( [ - xsd:maxInclusive 32767 + xsd:maxInclusive "32767"^^xsd:short ] [ - xsd:minInclusive -32768 + xsd:minInclusive "-32768"^^xsd:short ] ) . @@ -303,7 +303,7 @@ xsd:unsignedByte owl:onDatatype xsd:unsignedShort ; owl:withRestrictions ( [ - xsd:maxInclusive 255 + xsd:maxInclusive "255"^^xsd:unsignedByte ] ) . @@ -313,7 +313,7 @@ xsd:unsignedInt owl:onDatatype xsd:unsignedLong ; owl:withRestrictions ( [ - xsd:maxInclusive 4294967295 + xsd:maxInclusive "4294967295"^^xsd:unsignedInt ] ) . @@ -323,7 +323,7 @@ xsd:unsignedLong owl:onDatatype xsd:nonNegativeInteger ; owl:withRestrictions ( [ - xsd:maxInclusive 18446744073709551615 + xsd:maxInclusive "18446744073709551615"^^xsd:unsignedLong ] ) . @@ -333,7 +333,7 @@ xsd:unsignedShort owl:onDatatype xsd:unsignedInt ; owl:withRestrictions ( [ - xsd:maxInclusive 65535 + xsd:maxInclusive "65535"^^xsd:unsignedShort ] ) . |