Re: Bug in rdf-raptor?

> 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 UTC