W3C home > Mailing lists > Public > public-lod@w3.org > September 2011

Re: Geo location with dataset, microdata and RDFa

From: Sarven Capadisli <info@csarven.ca>
Date: Thu, 08 Sep 2011 14:01:37 +0100
To: Karl Dubost <karl@la-grange.net>
Cc: "public-lod@w3.org community" <public-lod@w3.org>
Message-ID: <1315486897.2035.47.camel@csarven-laptop>
On Thu, 2011-09-08 at 14:07 +0200, Karl Dubost wrote:
> # Using RDFa (not implemented in browsers)
> 
> 
> <ul xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" id="places-rdfa">
>     <li><span
>         about="http://www.dbpedia.org/resource/Montreal" 
>         geo:lat_long="45.5,-73.666667">Montréal</span>, Canada</li>
>     <li><span 
>         about="http://www.dbpedia.org/resource/Paris"
>         geo:lat_long="48.856578,2.351828">Paris</span>, France</li>
> </ul>
> 
> * Issue: Latitude and Longitude not separated 
>   (have to parse them with regex in JS)
> * Issue: xmlns with <!doctype html>  
> 
> 
> # Question
> 
> On RDFa vocabulary, I would really like a solution with geo:lat and geo:long, Ideas?

Am I overlooking something obvious here? There is lat, long properties
in wgs84 vocab. So,

<span about="http://dbpedia.org/resource/Montreal">
    <span property="geo:lat"
          content="45.5"
          datatype="xsd:float"></span>
    <span property="geo:lat"
          content="-73.666667"
          datatype="xsd:float"></span>
    Montreal
</span>

Tabbed for readability. You might need to get rid of whitespace.

-Sarven
Received on Thursday, 8 September 2011 13:02:21 UTC

This archive was generated by hypermail 2.3.1 : Sunday, 31 March 2013 14:24:35 UTC