Skip to content

koujikozaki/GPS2LOD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overvew

This is the repository to publish data collected through [GPS trajectory linked data project](<http:https://iswc2016.semanticweb.org/pages/attending/applications.html) in ISWC2016, Kobe.

The overview is discussed in the following paper;

  • GPS Trajectory Linked Open Data based on Open POI Information
    -Through an Experiment in ISWC2016-
    Kouji Kozaki, Teruaki Yokoyama and Yoshiaki Fukami
    Download paper (preprint)

License

クリエイティブ・コモンズ・ライセンス
This work is licensed under a Creative Commons Attribution 4.0 International License.
The license holder is 「GPS trajectory linked data project」

SPARQL Endpoint

http:https://lod.hozo.jp/repositories/GPS2LOD

RDF data model

Prefix

gtl: <http:https://lodosaka.jp/iswc2016gtl-exp/data/> .
gtl-prop: <http:https://lodosaka.jp/iswc2016gtl-exp/prop#> .
gtl-class: <http:https://lodosaka.jp/iswc2016gtl-exp/class#> .
rdf: <http:https://www.w3.org/1999/02/22-rdf-syntax-ns#> .
rdfs: <http:https://www.w3.org/2000/01/rdf-schema#> .
xsd: <http:https://www.w3.org/2001/XMLSchema#> .
geo: <http:https://www.w3.org/2003/01/geo/wgs84_pos#> .

Properties

(a) POI class

property name range explanation
rdfs:label Literal Name of the POI
geo:lat xsd:float Latitude of the POI
geo:lon xsd:float Longitude of the POI
gtl-prop:source Literal Literal Information of source (open data) of the POI
rdfs:seeAlso IRI Links to the related resource of the POI
(Links to DBpedia Japanese and/or Wikidata)

(b) StayPOI class

property name range explanation
gtl-prop:user Literal User name (ID)
rdfs:label Literal Name of the POI which the user stay
gtl-prop:poi IRI The POI information (reference to the POI resource)
gtl-prop:date yyyy-mm-dd The date which the user enter the POI
gtl:time xsd:int The time (hour) which the user enter the POI(0-23)
gtl-prop:start xsd:dateTime The date and time which the user enter the POI
gtl-prop:end xsd:dateTime The date and time which the user leave the POI
gtl-prop:next IRI The next stay information by the user

Exampled data

(a) POI information

gtl:poi-43
  rdf:type  gtl-class:POI;
  rdfs:label  "神戸国際会議場" ;
  geo:lat  "34.666234"^^xsd:float ;
  geo:lon  "135.21301"^^xsd:float ;
  rdfs:seeAlso  <http:https://www.wikidata.org/entity/Q11589835> ;
  gtl-prop:source  "ロケ地" ;
  gtl-prop:source  "Wikidata" ;
  gtl-prop:source  "観光施設情報" .

(b) GPS trajectory

gtl:user1-7
  rdf:type  gtl-class:StayPOI ;
  gtl-prop:user  "user1" ;
  rdfs:label  "神戸国際会議場" ;
  gtl-prop:poi  gtl:poi-43 ;
  gtl-prop:date  "2016-10-17" ;
  gtl-prop:time  "12"^^xsd:int  ;
  gtl-prop:start  "2016-10-17T12:14:18Z"^^xsd:dateTime ;
  gtl-prop:end  "2016-10-17T12:22:28Z"^^xsd:dateTime ;
  gtl-prop:next  gtl:user1-8 .

Examples of visualizations of POIs where participants visited

The number of days which a user visited each POI  

http:https://lodosaka.jp/iswc2016gtl-exp/dp/apps2a/

The number of users who visited each POI  

http:https://lodosaka.jp/iswc2016gtl-exp/dp/apps2b/

Sample queries

(a) Obtain all trajectory information of user1

PREFIX gtl-prop: <http:https://lodosaka.jp/iswc2016gtl-exp/prop#>
PREFIX rdfs: <http:https://www.w3.org/2000/01/rdf-schema#>
PREFIX geo: < http:https://www.w3.org/2003/01/geo/wgs84_pos#>

SELECT DISTINCT * where {
?s  gtl-prop:user  "user1";
    rdfs:label   ?label;
    gtl-prop:poi   ?poi;
    gtl-prop:date  ?d;
    gtl-prop:start ?st;
    gtl-prop:end   ?ed;
    gtl-prop:next  ?g.
?poi geo:lat   ?lat;
    geo:lon   ?long.
}ORDER BY ?st.

(b) ranking the number of uses who visited each POI

PREFIX gtl-prop: <http:https://lodosaka.jp/iswc2016gtl-exp/prop#>
PREFIX rdfs: <http:https://www.w3.org/2000/01/rdf-schema#>
PREFIX geo: < http:https://www.w3.org/2003/01/geo/wgs84_pos#>

SELECT DISTINCT ?label ?lat ?long
     (count(distinct ?u)AS ?c) where {
?s   gtl-prop:user ?u;
     rdfs:label    ?label;
     gtl-prop:poi  ?poi.  	
?poi geo:lat  ?lat;
     geo:lon  ?long.
}GROUP BY ?label ?lat ?long
ORDER BY DESC (?c)

(c) Obtain users who visited both of "生田神社" and "UCCコーヒー博物館"

PREFIX gtl-prop: <http:https://lodosaka.jp/iswc2016gtl-exp/prop#>
PREFIX rdfs: <http:https://www.w3.org/2000/01/rdf-schema#>

SELECT DISTINCT ?u where {
?s1  gtl-prop:user ?u;
     rdfs:label  "生田神社".  
?s2  gtl-prop:user ?u;
     rdfs:label  "UCCコーヒー博物館".  }

(d) Obtain POIs where user1 visited after 18 pm.

PREFIX gtl-prop: <http:https://lodosaka.jp/iswc2016gtl-exp/prop#>
PREFIX rdfs: <http:https://www.w3.org/2000/01/rdf-schema#>

SELECT DISTINCT ?poi ?label where {
?s   gtl-prop:user "user1";
gtl-prop:poi ?poi;
    gtl-prop:time ?t.
FILTER(?t >= 18)
    ?poi rdfs:label ?label.  }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages