Skip to content

Instantly share code, notes, and snippets.

@barmintor
Created July 25, 2012 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barmintor/3178216 to your computer and use it in GitHub Desktop.
Save barmintor/3178216 to your computer and use it in GitHub Desktop.
RDFXML::Writer is too smart
expected:
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="info:fedora/test:relsint/DC">
<isMetadataFor xmlns="info:fedora/fedora-system:def/relations-external#" rdf:resource="info:fedora/test:relsint/RELS-INT"/>
</rdf:Description>
<rdf:Description rdf:about="info:fedora/test:relsint/RELS-EXT">
<asserts xmlns="http://projecthydra.org/ns/relations#">FOO</asserts>
</rdf:Description>
<rdf:Description rdf:about="info:fedora/test:relsint/RELS-INT">
<asserts xmlns="http://projecthydra.org/ns/relations#">BAR</asserts>
</rdf:Description>
</rdf:RDF>
got:
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns0="info:fedora/fedora-system:def/relations-external#" xmlns:ns1="http://projecthydra.org/ns/relations#">
<rdf:Description rdf:about="info:fedora/test:relsint/DC">
<ns0:isMetadataFor>
<rdf:Description rdf:about="info:fedora/test:relsint/RELS-INT">
<ns1:asserts>BAR</ns1:asserts>
</rdf:Description>
</ns0:isMetadataFor>
</rdf:Description>
<rdf:Description rdf:about="info:fedora/test:relsint/RELS-EXT">
<ns1:asserts>FOO</ns1:asserts>
</rdf:Description>
</rdf:RDF>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment