-
Notifications
You must be signed in to change notification settings - Fork 23
Geolocalization features
Jean-Marc Vanel edited this page Dec 16, 2017
·
3 revisions
When there are geo:long
and / or geo:lat
in a form, the values are filled in real time from GPS device.
Example:
http://localhost:9000/create?uri=nature%3AObservation
- display RDF data as table : http://localhost:9000/page?feature=geoloc:stats ( this loads the statistics into SF according to ontologies
geoloc:
andvehman:
( see http://prefix.cc ) - getting statistics with SPARQL: the table button in /tools page allows to see a table from the SPARQL results) Example query:
PREFIX geoloc: <http://deductions.github.io/geoloc.owl.ttl#>
PREFIX vehman: <http://deductions.github.io/vehicule-management.owl.ttl.owl.ttl#>
CONSTRUCT {
?TravelStatistic a geoloc:TravelStatistic ;
geoloc:begin ?begin ; # xsd.dateTime
geoloc:end ?end ; # xsd.dateTime
geoloc:distance ?dist ; # xsd.float
geoloc:mobile ?MOBILE .
?MOBILE vehman:internalNumber ?NUM.
}
WHERE {
{ GRAPH ?GR {
?TravelStatistic a geoloc:TravelStatistic ;
geoloc:begin ?begin ; # xsd.dateTime
geoloc:end ?end ; # xsd.dateTime
geoloc:distance ?dist ; # xsd.float
geoloc:mobile ?MOBILE .
} }
UNION {
GRAPH ?GR1 {
?MOBILE a geoloc:Mobile.
} }
UNION {
GRAPH ?GR2 {
?MOBILE vehman:vehicle ?VEHICULE.
?VEHICULE vehman:internalNumber ?NUM.
} }
}
When there are geo:long and / or geo:lat triples in data, the subject URI's are shown on the geographical maps view: use the Map button in /tools page . Example query:
Prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
CONSTRUCT {
?sub geo:long ?LON .
?sub geo:lat ?LAT .
?sub rdfs:label ?LAB.}
WHERE {GRAPH ?GRAPH {
?sub geo:long ?LON .
?sub geo:lat ?LAT .
?sub rdfs:label ?LAB. } }