History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: SES-586
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Domi VDS
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Sesame

Loading RDFXML where rdf:parseType="Literal" contains xml with namespace can go wrong

Created: 06/Aug/08 03:52 PM   Updated: 06/Aug/08 03:52 PM
Component/s: Repository API
Affects Version/s: 2.1.3
Fix Version/s: None

Environment: Windows XP SP3, JDK1.6


 Description   
For example, loading this:
<?xml version='1.0' encoding='UTF-8' ?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:test="http://test.org/testing/">

<test:AnObject rdf:about="http://test.org/testing/itsme">
<test:somedata rdf:parseType="Literal">
<test:datapart>Literal</test:datapart>
<test:datapart>0</test:datapart>
<test:datapart>0</test:datapart>
</test:somedata>
</test:AnObject>
</rdf:RDF>

with code like: connection.add(inputStream,...)
the test:somedata value becomes:
"
<test:datapart xmlns:test="http://test.org/testing/">Literal</test:datapart>
<test:datapart>0</test:datapart>
<test:datapart>0</test:datapart>
"^^http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral

the namespace info is added only to the first <test:datapart> tag
(gives problems when saving to rdfxml without explicitly setting the namespace test)



 All   Comments   Change History      Sort Order:
There are no comments yet on this issue.