On the cross-fertilization of geospatial and semantic web technology

Mixing RDF/A with GeoRSS

RDF/A is a syntax for layering RDF information on any XML document, via attributes. GeoRSS is a syntax for annotating geographical information in RSS feeds. In the past, I’ve showed examples using RDF/A.

Today I saw James Fee blogging about GeoRSS. I thought it will be interesting to try to mix GeoRSS and RDF/A.


While GeoRSS is designed for RSS feeds, I think it can also be used to annotate regular HTML contents.

Let’s say I publish the following information in HTML:
[code lang=""]
Harry is an employee of Image Matters LLC. The headquarters of Image Matters LLC is located in the historic downtown of Leesburg, VA (39.109219, -77.557868).
[/code]

Now I used both RDF/A and GeoRSS syntax to add explicit semantic information about my work place.

[code lang="HTML"]
Harry is an employee of

xhref=”http://imagem.cc” mce_href=”http://imagem.cc”>Image Matters LLC.

The headquarters of Image Matters LLC is located in the historic downtown of Leesburg, VA (
39.109219, -77.557868
).
[/code]

Using a RDF/A parser, I should be able to extract the following RDF statements from the about HTML:
[code lang="HTML"]
foaf:workplaceHomepage .
georss:point “39.109219, -77.557868″^^rdf:XMLLiteral
[/code]

Statement 1 says http://harry.hchen1.com (a URI that denotes Harry Chen) has workplace homepage http://imagem.cc (a URI of a workplace). Statement 2 says the workplace of Harry (i.e., http://imagem.cc) has georss:point “39.109219, -77.557868″.

Sharing is Good. These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • YahooMyWeb
  • Reddit
  • co.mments
  • Furl
  • Ma.gnolia
  • NewsVine
  • Simpy
  • bodytext
  • E-mail this story to a friend!
  • Facebook
  • Google
  • StumbleUpon
  • Technorati
  • TwitThis

4 Comments

  1. There is an RDF page on the GeoRSS site.

    If you want to discuss RDF and GeoRSS, you’ll find some like-minded people on the GeoRSS list.

    Comment by Allan Doyle — June 8, 2006 @ 4:49 pm

  2. [...] Mixing GeoRSS and RDF by Harry Chen  [...]

    Pingback by GIS for Archaeology and CRM » Introduction to GeoRSS — June 9, 2006 @ 12:55 pm

  3. [...] The Geospatial Semantic Weblog has a quick howto on mixing RDF/A with GeoRSS in a webpage. [...]

    Pingback by GeoRSS blog » — June 18, 2006 @ 7:28 pm

  4. Apologies for leaving this comment here instead of on the GeoRSS blog, but their captcha generation code is broken[1] and thus I am leaving the comment on this related blog post here in the hopes that they will (a) see it, and (b) perhaps fix their captcha problem as well. -Tantek

    ajturner, geo does not require duplicating the data, but I can certainly understand one could easily come to that conclusion given the only inline example in the specification that uses abbr. Thanks for pointing that out. There is an example of a simple geo without any data duplication on the hCard examples page: GEO, but I realize that is not nearly obvious enough. I have fixed the geo examples section itself to show both types of examples.

    Thanks,

    Tantek

    [1]
    Their captcha challenge page merely displays the alt text “captcha_img” rather than the image. If you try downloading the image, you find it is an invalid PNG. If you change the extension on the PNG to .TXT, then you find the following:

    <br />
    <b>Fatal error</b>: Call to undefined function: imagecreate() in <b>/home/apache/www.georss.org/blog/wp-content/plugins/SK2/sk2_captcha_graphic.php</b> on line <b>23</b><br />

    Comment by Tantek — June 18, 2006 @ 10:38 pm

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>