|
|
|
|
Re: [Ontology v0.6] IntrinsicCoordinate & GeometricCoordinate vs GeoSPARQL [message #3608 is a reply to message #3601] |
Wed, 30 April 2025 11:51  |
Mathias Vanden Auweele
Messages: 40 Registered: February 2025 Location: Brussels
|
Member |
|
|
So there are several ways to do this. I'm going to focus on the geometric coordinate. But the same can be done for the screen coordinates.
Currently, this would be a data sample using the current ontology:
bnd:_gps01 a rtm:GeometricPositioningSystem ;
rdfs:label "EPSG:25832 - ETRS89 / UTM zone 32N"@en ;
railml3:hasCrsDefinition "EPSG:25832" ;
time:hasBeginning bnd:_timeinstant_2000-01-01 ;
time:hasEnd bnd:_timeinstant_9999-01-01 .
bnd:_spotlocation_1 a rtm:SpotLocation
rtm:onNetElement bnd:_netelement_1 ;
rtm:hasApplicationDirection "reverse" ;
rtm:hasIntrinsicCoordinate 0.1 ;
rtm:hasGeometricCoordinate bnd:_geometric_coordinate_1 .
bnd:_coordinate_1 a rtm:GeometricCoordinate ;
rtm:hasXCoordinate 111111 ;
rtm:hasYCoordinate 222222 ;
rtm:hasZCoordinate 333333 ;
rtm:refersToPositioningSystem bnd:_gps01 .
If we define in the ontology:
rtm:SpotLocation rdf:type owl:Class ;
rdfs:subClassOf [...], gsp:Feature
[...] .
rtm:hasGeometricCoordinate rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf gsp:hasGeometry, [...] ;
[...] .
(and remove the rtm.GeometricCoordinate)
We can use geosparql in our knowledge graph like this:
bnd:_spotlocation_1 a rtm:SpotLocation
rtm:onNetElement bnd:_netelement_1 ;
rtm:hasApplicationDirection "reverse" ;
rtm:hasIntrinsicCoordinate 0.1 ;
rtm:hasGeometricCoordinate bnd:_geometric_coordinate_1 .
bnd:_geometric_coordinate_1 a gsp:Geometry ;
gsp:hasSerialization "<http://www.opengis.net/def/crs/EPSG/0/25832> POINT(111111, 222222, 333333)^^geo:wktLiteral";
But it also opens up all the properties related to geosparql that would enhance the information available on the coordinate, such as defining SpatialAccuracy.
The advantages:
- integration with standardized and industry state of the art ontology
- geometric functions are immediately available to work with the coordinates in most SPARQL implementations
- geosparql geometries are by standard implemented in viewers such as Yasgui https://yasgui.triply.cc/
- less ontology to maintain
Mathias Vanden Auweele
Railway data freelancer
https://matdata.eu
Brussels, Belgium
|
|
|