[redland-dev] Serializer namespace issues
Dave Beckett
dave.beckett at bristol.ac.uk
Wed Jul 20 13:40:42 BST 2005
On Wed, 2005-07-20 at 11:05 +0100, Kieron Taylor wrote:
> I am finding that the RDF I parse is being mangled somewhat when I
> change and serialize it again.
>
> Firstly, I am having some namespaces in my URIs overwritten. I suspect
> this is because of the baseuri setting given when we create the
> parser/serializer objects. I am not clear on the purpose of the baseuri
> variable, could someone explain it for me?
>
> Secondly, when I have a triple that points to a resource, Redland seems
> to be stripping off the namespace part and leaving only the schema I was
> referring to. This is particularly bad because RDF parsers/renderers
> such as IsaViz assign another namespace to them instead, which is
> invariably wrong. Why is this happening?
>
> To illustrate, the resource I create is something like:
> http://myurl.com/schema.rdfs#Class
>
> but when serialized it appears in the file as:
> schema.rdfs#Class
Is this with the 'rdfxml' serializer or the 'rdfxml-abbrev'. If the
latter, I wouldn't be surprised as I found it has some problems in the
transformations it makes to try to make a pretty result. The former
should be correct although uglier/larger.
Dave
More information about the redland-dev
mailing list