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

Key: SES-679
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Arjohn Kampman
Reporter: Richard Cyganiak
Votes: 0
Watchers: 0
Operations

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

RDF/XML parser fails on relative URIs in rdf:datatype

Created: 26/Aug/09 08:37 PM   Updated: 27/Aug/09 01:59 PM
Component/s: Rio
Affects Version/s: 2.0, 2.1, 2.0.1, 2.2, 2.1.1, 2.1.2, 2.1.3, 2.2.1, 2.1.4, 2.2.2, 2.2.3, 2.2.4, 2.3-pr1
Fix Version/s: 2.3.0

Environment: Sesame 2.2.4


 Description   
Trying to parse the following document:

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://example.com/#">
  <Foo>
    <bar rdf:datatype="hello">Zyzzyx</bar>
  </Foo>
</rdf:RDF>

I get:

org.openrdf.rio.RDFParseException: Not a valid (absolute) URI: hello [line 3, column 37]

The problem is the value "hello" for rdf:datatype, Rio expects an absolute URI. Section 2.14 of the RDF/XML spec says however that rdf:datatype can contain relative URIs which are to be resolved in the usual way.

 All   Comments   Change History      Sort Order:
Change by Arjohn Kampman [27/Aug/09 01:47 PM]
Field Original Value New Value
Project Rio [ 10010 ] Sesame [ 10000 ]
Key RIO-70 SES-679
Component/s Rio [ 10151 ]
Component/s RDF/XML parser [ 10050 ]

Change by Arjohn Kampman [27/Aug/09 01:48 PM]
Field Original Value New Value
Fix Version/s 2.3.0 [ 10402 ]
Affects Version/s 2.3-pr1 [ 10410 ]
Affects Version/s 2.2.4 [ 10390 ]
Affects Version/s 2.2.3 [ 10380 ]
Affects Version/s 2.2.2 [ 10370 ]
Affects Version/s 2.2.1 [ 10351 ]
Affects Version/s 2.1.4 [ 10360 ]
Affects Version/s 2.2 [ 10330 ]
Affects Version/s 2.1.3 [ 10341 ]
Affects Version/s 2.1.2 [ 10332 ]
Affects Version/s 2.1.1 [ 10331 ]
Affects Version/s 2.1 [ 10240 ]
Affects Version/s 2.0.1 [ 10310 ]
Affects Version/s 2.0 [ 10080 ]

Change by Arjohn Kampman [27/Aug/09 01:50 PM]
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]

Comment by Arjohn Kampman [27/Aug/09 01:59 PM]
Nice catch, Richard!