sempr-tk / sempr

SEMPR - Semantic Environment Mapping, Processing and Reasoning
BSD 3-Clause "New" or "Revised" License
7 stars 1 forks source link

SpatialReference inherits SemanticEntity #70

Closed niniemann closed 3 years ago

niniemann commented 4 years ago

At some point I needed a semantic description of the spatial reference frames that are present in sempr; knowledge about the parent of a LocalCS, to be precise.

To achieve this I changed SpatialReference to inherit SemanticEntity instead of Entity. That way I could easily register the parent_ member of LocalCS as a property to be exported as an RDF triple. I also added a property for the (semantic) type of the object (--> "\<sempr:LocalCS>") using a static const std::string variable -- which feels a bit hacky.

niniemann commented 3 years ago

More than stale. (Development proceeded in an internal git)