@prefix eg: .
@prefix rdf: .
@prefix xsd: .
eg:betweenBAndD
a rdfs:Datatype ;
rdfs:label "between B and D" ;
owl:onDatatype xsd:string ;
owl:withRestrictions (
[
xsd:maxInclusive "D"
]
[
xsd:minExclusive "B"
]
) .
eg:s
rdf:value "Cat"^^eg:betweenBAndD .