Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a de-facto standard datatype for 3d vectors in Semantic Web languages(RDF/Owl/etc.)

I need to represent a typical physics vector (such as a position or velocity) in a semantic language (RDF, OWL, JSON-LD, etc.). Being a compound data type, it is typically recommended that this be modeled as a blank node with 3 xsd:float properties on it. However, the behavior of this is very unnatural for my application, because the vector is really being treated as a data type (rather than an object) at every other step of the process. They never behave like an object in any way (except for the purposes of being modeled as a blank node with 3 properties)

It seems like this should not be a new problem, so I'm curious if there is a de facto data type which represents this. I'm expecting it to be a string of numbers, separated by spaces, commas, or some other delimiter like "10.0 20.0 30.0"^^my:VectorType, because that seems like it would be the most natural way to represent this data.

I can make my own datatype, and specify the mapping from literals to values myself, but it seems like this should be such a common desire that there might be a consensus on the datatype to use.

like image 765
Cort Ammon Avatar asked Jan 17 '26 23:01

Cort Ammon


1 Answers

There is no standard way of doing so. In OWL I recommend using an indexer for this. You can find an example of OWL indexer here: https://sourceforge.net/p/meloproject/code/ci/master/tree/OWL/examples/indexer.owl

like image 93
Igor Toujilov Avatar answered Jan 19 '26 19:01

Igor Toujilov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!