[OGDev] RDF improvements (was: What are people working on?)

Kake L Pugh kake at earth.li
Wed Apr 4 21:35:32 BST 2007


We were talking about RDF on #openguides today, and perigrin pointed
out that the node RDF for a node that's a category really should have
a link to the RDF version of the list of all nodes in that category.

In order to facilitate this, and other RDF improvements, I've moved
the stuff that generates a node's RDF from RDF.pm to node_rdf.tt; this
has just been committed to svn.

I hope this doesn't upset the plans of anyone else who was working on
RDF output; it shouldn't make things harder for you, rather, it should
make things a lot easier.  If it doesn't, let me know, and I'll help
you sort it out.

A side bonus of this is that I also changed our home-grown and rather
inadequate character-escaping to use the encode_entities_numeric stuff
in HTML::Entities, which does it properly.  With any luck we should
now be free from invalid XML, in the node view at least.  It needs to
be done for the index view as well though.

Re perigrin's request, I added something that looks about right to the
Vegan Guide to Oxford:

<rdfs:seeAlso rdf:resource="http://the.earth.li/~kake/cgi-bin/openguides/vegan-oxford.cgi?action=index;index_type=category;index_value=Restaurants;format=rdf" />

But Disco isn't picking it up properly for some reason.  Could the RDF
experts have a look at

http://the.earth.li/~kake/cgi-bin/openguides/vegan-oxford.cgi?id=Category_Restaurants;format=rdf

and see if it looks right to you?  Also if you could take a look at the RDF
on the other pages on that site, and see if I managed to break anything
while switching to the new node_rdf.tt?  All the tests pass, but I'm aware
we don't have tests for everything.

Kake




More information about the OpenGuides-Dev mailing list