Re: Geo location with dataset, microdata and RDFa

On Thu, 2011-09-08 at 14:01 +0100, Sarven Capadisli wrote:
> 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

Better yet:

<li about="http://dbpedia.org/resource/Montreal">
    <span property="geo:lat"
...


-Sarven

Received on Thursday, 8 September 2011 13:08:15 UTC