Skip to content

Instantly share code, notes, and snippets.

@jcoyne
Created January 26, 2012 18:45
Show Gist options
  • Save jcoyne/1684310 to your computer and use it in GitHub Desktop.
Save jcoyne/1684310 to your computer and use it in GitHub Desktop.
1) ActiveFedora::RDFXMLWriter should serialize graphs using the rdf:Description element despite the presence of rdf:type statements
Failure/Error: content.should be_equivalent_to @rdf_xml_with_type
expected:
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
<rdf:Description rdf:about='info:fedora/test:sample_pid'>
<isMemberOf rdf:resource='demo:10' xmlns='info:fedora/fedora-system:def/relations-external#'/>
<type rdf:resource='http://purl.org/dc/dcmitype/Collection' xmlns='http://www.w3.org/1999/02/22-rdf-syntax-ns#' />
</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:ns1="info:fedora/fedora-system:def/relations-external#" xmlns:ns0="http://purl.org/dc/dcmitype/">
<ns0:Collection rdf:about="info:fedora/test:sample_pid">
<ns1:isMemberOf rdf:resource="demo:10"/>
</ns0:Collection>
</rdf:RDF>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment