Subject: | serialise() created XML, not N3!?! |
I have RDF::Simple 1.003 installed (from distro RDF-Simple-0.404) but
the N3 module returns XML rather than N3:
perl t/foaf-n3.t
ok 1 - use RDF::Simple::Serialiser::N3;
ok 2 - The object isa RDF::Simple::Serialiser::N3
<rdf:RDF
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
Show quoted text
>
<foaf:Person rdf:nodeID="a456">
<foaf:address>123 Main St</foaf:address>
<foaf:name>Robin Berjon</foaf:name>
<foaf:age>26</foaf:age>
</foaf:Person>
<foaf:Person rdf:nodeID="a123">
<foaf:name>Jo Walsh</foaf:name>
<foaf:knows rdf:nodeID="a456"/>
</foaf:Person>
</rdf:RDF>
not ok 3
# Failed test at t/foaf-n3.t line 40.
# Structures begin differing at:
# $got->[0] = '</foaf:Person>'
# $expected->[0] = ''
not ok 4
# Failed test at t/foaf-n3.t line 42.
# got: undef
# expected: '7'
1..4
# Looks like you failed 2 tests of 4.