[redland-dev] Serializer namespace issues
sritimoh
sritimoh at utt.fr
Wed Jul 20 16:10:56 BST 2005
> This is a potted version of what the rdfxml serializer produced:
>
> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
> <rdf:Description rdf:nodeID="r1120484797r341954">
> <ns0:type xmlns:ns0="http://www.w3.org/2000/01/rdf-schema#"
> rdf:resource="chemschema.rdfs#Calculated"/>
> </rdf:Description>
> </rdf:RDF>
>
> In the program I asked it to add a triple of the form:
>
> <bnode> <http://www.w3.org/2000/01/rdf-schema#type>
> <http://green.chem.soton.ac.uk/rdf/chemschema.rdfs#Calculated>
>
> Predicates maintain their namespaces correctly, but resources do not. In
> this case http://green.chem.soton.ac.uk/rdf/ has been cut off and not
> re-inserted in the ns0="http:...." form.
>
> RE: Dave's mention of RDFXML-abbrev, I didn't even know that existed. Is
> it any good or mega-beta?
I've used the rdfxml-abbrev serializer I got somthing like this:
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:List rdf:about="http://myworkspace/test#TNClasses">
<ns0:isDefinedBy xmlns:ns0="http://www.w3.org/2000/01/rdf-schema#"
rdf:resource="http://myworkspace/test#"/>
</rdf:List>
<rdf:List rdf:about="http://myworkspace/test#TNClassAttributes">
<ns1:isDefinedBy xmlns:ns1="http://www.w3.org/2000/01/rdf-schema#"
rdf:resource="http://myworkspace/test#"/>
</rdf:List>
<rdf:List rdf:about="http://myworkspace/test#TNLinks">
<ns2:isDefinedBy xmlns:ns2="http://www.w3.org/2000/01/rdf-schema#"
rdf:resource="http://myworkspace/test#"/>
</rdf:List>
It's pretty than rdfxml serializer but it's more pretty to have the same
namspace with one abbreviation... is it possible?
More information about the redland-dev
mailing list