[redland-dev] [Raptor RDF Parsing and Serializing Library 0000294]: RDF/XML Abbrev Serializer fails to abbreviate inner typed node
Mantis Bug Tracker
mantis-bug-sender at librdf.org
Wed Feb 11 06:47:46 CET 2009
The following issue has been SUBMITTED.
======================================================================
http://bugs.librdf.org/mantis/view.php?id=294
======================================================================
Reported By: Dave Beckett
Assigned To:
======================================================================
Project: Raptor RDF Parsing and Serializing Library
Issue ID: 294
Category: api
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Parsing/Serializing Syntax: rdfxml-abbrev
======================================================================
Date Submitted: 2009-02-11 05:47
Last Modified: 2009-02-11 05:47
======================================================================
Summary: RDF/XML Abbrev Serializer fails to abbreviate inner
typed node
Description:
With these triples (in bug278a.nt attached)
<http://outer.example.org/> <http://example.org/ns#pred>
<http://inner.example.org/> .
<http://inner.example.org/>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://example.org/ns#ClassName> .
<http://inner.example.org/>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "blah" .
Output is:
$ rapper -q -o rdfxml-abbrev -i ntriples bug278a.nt
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="http://outer.example.org/">
<ns1:pred xmlns:ns1="http://example.org/ns#"
rdf:resource="http://inner.example.org/"/>
</rdf:Description>
<ns2:ClassName xmlns:ns2="http://example.org/ns#"
rdf:about="http://inner.example.org/">
<rdf:value>blah</rdf:value>
</ns2:ClassName>
</rdf:RDF>
Expected output - ns:ClassName to be inside an empty <ns1:pred>
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="http://outer.example.org/">
<ns1:pred xmlns:ns1="http://example.org/ns#">
<ns2:ClassName xmlns:ns2="http://example.org/ns#"
rdf:about="http://inner.example.org/">
<rdf:value>blah</rdf:value>
</ns2:ClassName>
</ns1:pred>
</rdf:Description>
</rdf:RDF>
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2009-02-11 05:47 Dave Beckett New Issue
2009-02-11 05:47 Dave Beckett File Added: bug278a.nt
2009-02-11 05:47 Dave Beckett Parsing/Serializing Syntax => rdfxml-abbrev
======================================================================
More information about the redland-dev
mailing list