Massimiliano Condotta: in my research group we are talking about our ideas regarding metadata and spatial information.
TGN records (place names) has relations with other record
of the Thesaurus. These relations are for example because two cities are part
of the same country 8rome is related to venice because they are in Italy).
My question is: does exist a relation that consider the distance between places (Venezia is related to Padova because they are far less than 50km and is not related to Rome) or other spatial features?
Hi Massimiliano!
Computing distances with GraphDB is quite simple, you can see an example at http://vocab.getty.edu/queries#Places_Nearby_Each_Other.
The following naive query tries to compute the distance between the two places that you mention:
select * { ?x skos:inScheme tgn:; rdfs:label "Venezia"; foaf:focus [wgs:lat ?x_lat; wgs:long ?x_long]; gvp:parentString ?x_parents. ?y skos:inScheme tgn:; rdfs:label "Padova"; foaf:focus [wgs:lat ?y_lat; wgs:long ?y_long]; gvp:parentString ?y_parents. bind (ontogeo:distance(?x_lat, ?x_long, ?y_lat, ?y_long) as ?dist)}