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

Re: Bug in rdf-raptor?

From: Nicholas Humfrey <nicholas.humfrey@bbc.co.uk>
Date: Tue, 06 Apr 2010 16:01:08 +0100
To: Arto Bendiken <arto.bendiken@gmail.com>
CC: <public-rdf-ruby@w3.org>
Message-ID: <C7E10B44.2629B%nicholas.humfrey@bbc.co.uk>
> Looking at the RDF/XML file at
> http://www.bbc.co.uk/programmes/b00rmssw.rdf, it seems that all its
> resource descriptions are given with relative URLs and there is no
> explicit base URI defined. So, if Raptor should parse that file
> without an effective base URI, you'd probably get subject URLs like
> the ones you saw.
> 
> Therefore this is likely a bug in RDF::Raptor in that the gem
> certainly ought to be passing in the input URL to Raptor as the
> default base URI.
> 
> I'll fix this later today and release a new version of the gem, but in
> the meantime the workaround is trivial enough - just define an
> explicit base URI as follows and everything should work fine:
> 
>     RDF::Reader.open(url =
> 'http://www.bbc.co.uk/programmes/b00rmssw.rdf', :base_uri => url)

Yeah, that works.

Thanks,

nick.


http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
					
Received on Tuesday, 6 April 2010 15:01:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 6 April 2010 15:01:39 GMT