W3C home > Mailing lists > Public > public-rdf-ruby@w3.org > June 2010

Re: Writing Namespaces in RDF.rb

From: John Fieber <jrf@ursamaris.org>
Date: Tue, 8 Jun 2010 06:27:12 -0700
Message-Id: <01F16ABA-6125-4550-8FB1-25CAE44F1211@ursamaris.org>
To: Ben Lavender <blavender@gmail.com>
Cc: Gregg Kellogg <gregg@kellogg-assoc.com>, Mark Windholtz <windholtz@gmail.com>, "public-rdf-ruby@w3.org" <public-rdf-ruby@w3.org>

On Jun 8, 2010, at 5:47 AM, Ben Lavender <blavender@gmail.com> wrote:

> This is actually a problem with rdf-raptor, not rdf-rdfxml.  I imagine
> Mark is using require 'linkeddata'.

Be aware that namespaces are NOT a part of the RDF data model. As for  
any serialization that has some sort of notion of namespaces,  
production any particular namespaces use you desire to use must be  
conveyed to the serializer out of band of the RDF data.

Raptor has APIs to communicat this yo the serializer but the rdf- 
raptor gem makes no use of it at present.

It should be reasonable to set namespaces in raptor based on the  
vocabularies registered with RDF.rb, but do keep in mind that any XML  
application that depends on a particular namespaces prefix is  
fundamentally broken.

(Personally, I think RDF/XML is a disaster for the teaching and  
understanding of RDF, but that is a different topic entirely.)

Received on Tuesday, 8 June 2010 13:28:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:02:14 UTC