W3C home > Mailing lists > Public > www-rdf-interest@w3.org > January 2004

Getting RDF data into HTML

From: Cameron McCormack <cam-www-rdf-interest@aka.mcc.id.au>
Date: Mon, 5 Jan 2004 13:28:54 +1100
To: www-rdf-interest@w3.org
Message-ID: <20040105022854.GB17737@blue.lan>

Hi everyone.  I've been lurking for a couple of months while my interest
in RDF has been swelling.

I have some RDF which describes TV shows and films I have seen and short
reviews or thoughts about them.  This is the file of reviews


and this is the RDF schema for my review namespace


.  Firstly, some questions about how my RDF.

1. Is it OK that I have chosen URIs to identify my re:Movie and
re:Episode objects?  For example, for a movie I'll use the imdb.com URL
for that movie, and for an episode I might use the geos.tv page.  Or
should I be using URIs that are under my control?  What if, in the
future, it is decided that a different URI is the accepted standard for
identifying movies and TV episodes?

2. Am I right in thinking that the URIs I used to identify the re:Movies
and re:Episodes do not necessarily have to have any information at them
if dereferenced, and that it is a good idea to have the re:webpage
properties as I do?

Now, I'd like to make a web page that lists the shows I've seen in
reverse chronological order.  I found myself the Redland Perl modules
and wrote a script which does that.  You can see the script at


(the executable script is at


).  I find it terribly verbose to look up information.  For example, if
I have a show in $show and I want to find its title, I have to do

  my $titleStatement = new RDF::Redland::Statement($show, $DCTitle, undef);
  my $title = ($model->find_statements($titleStatement))[0]->object()->as_string();

Similarly for all the other properties I want to retrieve.  I realise
that if there was a query language here where the variables could be
filled in with a single function call, then it would be a step in the
right direction.

The other problem though is that of generating the XHTML.  I feel like
there should be something akin to XSLT for generic XML data that can let
me declaratively transform RDF data into XHTML.  Does such a thing exist?

Can anyone provide any other hints on how they have turned RDF data into



Cameron McCormack
|  Web: http://mcc.id.au/
|  ICQ: 26955922
Received on Sunday, 4 January 2004 21:33:46 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:07:49 UTC