Skip to content

Geolocalization features

Jean-Marc Vanel edited this page Dec 16, 2017 · 3 revisions

Table of Contents

Input data with GPS

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

Computing path length

Getting path length statistics

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.
    } }
}

Getting geographical maps

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.  } }