Ivan’s private site

April 27, 2008

Setting up and RDFa file with Apache (second)

Filed under: Code,Semantic Web,Work Related — Ivan Herman @ 0:58
Tags: , ,

A few weeks ago I wrote a short post on how I set up an RDFa file with apache. As commented there by masaka (and I also received some private comments), that setup had the disadvantage that if a client had an accept header that referred both to HTML and to RDF, then it went wrong. Essentially, the server picked whichever was first in the .htaccess file.

So I had to revise (and ask advise from those who understand how Apache works). Here is how SW-FAQ is now set up. It is a little bit more complicated and requires the “.var” facilities to be switched on in Apache. In the same directory where I store the SW-FAQ.html file, I also store a SW-FAQ.var file (called a “type map file”). It looks as follows:

URI: SW-FAQ

URI: SW-FAQ.html
Content-Type: text/html

URI: SW-FAQ.rdf
Content-Type: application/rdf+xml; qs=0.5

the .htaccess file in the same directory is now simpler; it just says:

RewriteEngine On
RewriteBase /2001/sw/
RewriteRule SW-FAQ.rdf /2007/08/pyRdfa/extract?uri=http://www.w3.org/2001/sw/SW-FAQ.html [L]

The .var file switches in Apache’s content negotiation mechanism. The media type determines which version is returned, and this takes into account the “quality” parameter of the HTTP accept header, too. The .htaccess file would then just direct the server to run the RDFa distiller and return the result when RDF is required. This seems to work better…

(It was TimBL who pushed me to do the changes this time, and the basic structure comes from him, actually…)

April 24, 2008

Semantic Web W3C Track at WWW2008

Filed under: Semantic Web,Work Related — Ivan Herman @ 3:51
Tags: , , , , ,

Yesterday I chaired a Semantic Web session at the W3C Track at WWW2008. Nice turnout (about 100 people), and I had to cut the discussions to keep within schedule, which is always a good sign…

Three presentations, fairly different from one another. Tom Heath and Chris Bizer made a presentation (co-authored with Tim Berners-Lee) on the Linking Open Data project. Real good stuff. Maybe the most impressive part was when Chris flipped through the figures on the “current” status of the linked dataset, starting from a year ago at WWW2007 up to April 2008. And the fact that, actually, we essentially lost track of how many triplets are out there; there are simply too many of those! I also did not know that Tom worked on Revyu by automatically adding information coming from DPBedia to an entry. I really hope that the coming year will see lots of user applications that rely on this huge amount of public RDF data out there…

Raphaël Troncy made a presentation on managing multimedia content on the Semantic Web. The situation today is really a maze with all kinds of standards, semi-standards, etc, on how to describe, annotate, reason about, say, video. Lots of work ahead, both in the Semantic Web area and in others. Think of the fact that we still do not have a generally accepted URI to describe something like an area in an image, or a specific point in time in a video. (There was, actually, a short discussion after the presentation on how some of the current URI schemes fit, or not fit, general Web Architecture…)

Huajun Chen gave an overview on what is happening in the Semantic Web area in China. In two words: a lot. Some of the technologies developed in China are now well-known all around, some of them less. We should realize that there are more Semantic Web related blogs and subscribers to local mailing lists than anywhere else… I think one of the challenges is to bind the various SW communities beyond the boundaries of languages, where Chinese is probably the largest “local” community. I do not have any magic bullet here, but presentations like Huajun’s are important to have…

April 1, 2008

Data Portability Rock ‘n Roll

Filed under: Semantic Web,Work Related — Ivan Herman @ 11:20

John has already praised this video in his blog but, well, if you have missed his blog: look at Danny (Ringo) Ayers’ video on data portability, foaf, rdf, etc. It is worth it!

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 2,317 other followers