I have updated the RDF library in the XUL tutorial. I changed the way that datasources are loaded to make more sense. I also added functions to parse RDF from a string, and to serialize a datasource back to a string again. I also added more examples.
You can now do fun things like output your bookmarks as RDF: