geo object or data property ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

geo object or data property ?

rmitanch
Hi,
I would like to describe a geo property, named location, and describing one Point (WGS84 coordinate system), but I have no idea how to do that

typically, the RDF data would be something like
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
  <geo:Point>
    <geo:lat>55.701</geo:lat>
    <geo:long>12.552</geo:long>
  </geo:Point>
</rdf:RDF>

What is the best way to describe such data for MyIndividual.location ? Should I use blank nodes for that ?

Thanks
Richard
Reply | Threaded
Open this post in threaded view
|

Re: geo object or data property ?

rmitanch
Hi again,

Wow, very proud after reading all posts of this forum to have found myself the answer (Thanks to all Jiba's high quality replies) :

I created the individual as a blank node(using graph = default_world.as_rdflib_graph()) at the rdf level, assigning  the rdf:type of the geo:Point class, and the geo:long and geo:lat data properties, using graph.add(...), rdflib.URIRef(...) and rdflib.Literal(...)

it works!

Richard