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

Key: RIO-32
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Arjohn Kampman
Reporter: Peter Mika
Votes: 0
Watchers: 0
Operations

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

Turtle writer doesn't escape '>' character in URIs

Created: 21/Oct/05 02:04 PM   Updated: 07/Feb/06 11:56 AM
Component/s: Turtle writer
Affects Version/s: 1.0.5
Fix Version/s: 1.0.6

Issue Links:
Cause
 
This issue is caused by:
RIO-25 Update Turtle parser & writer to late... Major Closed


 Description   
In our repository we have URIs where the '<' and '>' characters have been encoded (&lt;, &gt;). The Turtle writer, unlike the RDF/XML writer, decodes these, resulting in invalid Turtle: See example below:

In RDF/XML:

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:my="http://www.cs.vu.nl/~mcaklein/onto/swrc-ext/2005/05#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:vs="http://www.w3.org/2003/06/sw-vocab-status/ns#"
xmlns:wot="http://xmlns.com/wot/0.1/"
xmlns:ow="http://swrc.ontoware.org/ontology#"
xmlns:dc="http://purl.org/dc/elements/1.1/">

<rdf:Description rdf:about="http://cvs.berlios.de/cgi-bin/viewcvs.cgi/cybop/doc/papers/2003_system_communication/references.bib?rev=1.3#sanderson">
<rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Document"/>
<rdf:type rdf:resource="http://xmlns.com/wordnet/1.6/Document"/>
<rdf:type rdf:resource="http://swrc.ontoware.org/ontology#Publication"/>
<rdf:type rdf:nodeID="node10qtt8t2cx82"/>
<rdf:type rdf:resource="http://swrc.ontoware.org/ontology#Book"/>
<rdf:type rdf:nodeID="node10qtt8t2cx93"/>
<rdf:type rdf:nodeID="node10qtt8t2cx94"/>
<rdf:type rdf:nodeID="node10qtt8t2cx95"/>
<owl:sameAs rdf:resource="http://cvs.berlios.de/cgi-bin/viewcvs.cgi/cybop/doc/papers/2003_system_communication/references.bib?rev=1.3#sanderson"/>
<ow:author rdf:resource="http://cvs.berlios.de/cgi-bin/viewcvs.cgi/cybop/doc/papers/2003_system_communication/references.bib?rev=1.3#rick_sanderson_<ricks@fourbitcom&gt;_the_fourbit_group"/>
<my:authorList rdf:nodeID="node10qtt8t2cx1807"/>
<rdfs:label>Rick Sanderson. &lt;ricks@fourbit.com&gt; The Fourbit Group..</rdfs:label>
<ow:note>http://www.fourbit.com&lt;/ow:note>
<ow:key>sanderson</ow:key>
</rdf:Description>

</rdf:RDF>

In Turtle:

@prefix my: <http://www.cs.vu.nl/~mcaklein/onto/swrc-ext/2005/05#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
@prefix wot: <http://xmlns.com/wot/0.1/> .
@prefix ow: <http://swrc.ontoware.org/ontology#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .

<http://cvs.berlios.de/cgi-bin/viewcvs.cgi/cybop/doc/papers/2003_system_communication/references.bib?rev=1.3#sanderson> a foaf:Document , <http://xmlns.com/wordnet/1.6/Document> , ow:Publication , _:node10qtt8t2cx82 , ow:Book , _:node10qtt8t2cx93 , _:node10qtt8t2cx94 , _:node10qtt8t2cx95 ;
owl:sameAs <http://cvs.berlios.de/cgi-bin/viewcvs.cgi/cybop/doc/papers/2003_system_communication/references.bib?rev=1.3#sanderson> ;
ow:author <http://cvs.berlios.de/cgi-bin/viewcvs.cgi/cybop/doc/papers/2003_system_communication/references.bib?rev=1.3#rick_sanderson_<ricks@fourbitcom>_the_fourbit_group> ;
my:authorList _:node10qtt8t2cx1807 ;
rdfs:label "Rick Sanderson. <ricks@fourbit.com> The Fourbit Group.." ;
ow:note "http://www.fourbit.com" ;
ow:key "sanderson" .


 All   Comments   Change History      Sort Order:
Comment by Arjohn Kampman [21/Oct/05 02:57 PM]
The real issue is not entity unescaping but rather the lack of escapes for ">" characters. The most recent Turtle spec resolves this problem, making this a sub-issue of RIO-25.

Change by Arjohn Kampman [21/Oct/05 02:57 PM]
Field Original Value New Value
Link This issue is caused by RIO-25 [ RIO-25 ]

Change by Arjohn Kampman [14/Nov/05 12:11 PM]
Field Original Value New Value
Fix Version/s 1.0.6 [ 10152 ]

Change by Arjohn Kampman [14/Nov/05 12:11 PM]
Field Original Value New Value
Status Open [ 1 ] In Progress [ 3 ]

Change by Arjohn Kampman [14/Nov/05 12:51 PM]
Field Original Value New Value
Status In Progress [ 3 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]

Comment by Arjohn Kampman [06/Dec/05 04:45 PM]
changed issue title to reflect the real issue

Change by Arjohn Kampman [06/Dec/05 04:45 PM]
Field Original Value New Value
Summary Turtle writer decodes XML entities Turtle writer doesn't escape '>' character in URIs

Change by Arjohn Kampman [07/Feb/06 11:56 AM]
Field Original Value New Value
Status Resolved [ 5 ] Closed [ 6 ]