Does Stardog support creating custom datatypes, something like extending BaseDatatype in Jena?
You can define new
rdfs:Datatype instances and extend existing built-in datatypes using OWL 2 datatype restrictions. But there isn't support to extend datatypes at the code level (there is a datatype extension mechanisms for schema reasoning but that has limited impact). Is the goal here toot have datatype-specific validation rules?
That was the idea. Something like Unified Code for Units of Measure https://ci.mines-stetienne.fr/lindt/v2/custom_datatypes.html
We don't currently have a way to define custom datatypes like this. The best one can do is implementing UDFs like
compareUnits, etc. I guess validation might be done via SHACL using regex too but that might be too cumbersome.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.