Hidden "auto" datatype
I want a template for max--min ranges.
<http://norsok.no/rdl/A> rdf:type owl:Class ; rdfs:subClassOf [ rdf:type owl:Restriction ; owl:onProperty lci:datumValue ; owl:allValuesFrom [ rdf:type rdfs:Datatype ; owl:onDatatype xsd:integer ; owl:withRestrictions ( [ xsd:minExclusive 0 ] [ xsd:maxExclusive 10 ] ) ] ] .
Notice that "xsd:integer" is given as the datatype within which the 0--10 range is selected. We could have other types too, e.g. xsd:decimal or dates. It would be good to avoid making one template per datatype. We don't want "min-max template for xsd:integer", but rather one that can take the datatype as a parameter.
Observation: This probably rules out OTTR columns with "auto" type, since with "auto" there is no way to get hold of the datatype identified by the tabOTTR interpretation rule for each row of data. Would it be possible to get around this in some way?
(I don't have anything specific to propose, but the issue looks interesting somehow. Perhaps there's a case for introducing magic variables. As a (weak) analogy: in Tarql, you can use the ROWNUM variable in your sparql construct queries, which is very useful.)