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: 13/Mar/12 03:21 PM
Component/s: Rio
Affects Version/s: 2.3-pr1, 2.2.4, 2.2.3, 2.2.2, 2.2.1, 2.1.4, 2.2, 2.1.3, 2.1.2, 2.1.1, 2.1, 2.0.1, 2.0
Fix Version/s: 2.3.0

Environment: Sesame 2.2.4
Issue Links:
Related
 
This issue is related to:
SES-960 RDF Parsers Incorrectly Resolves Rela... Minor Open


 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:
Comment by Arjohn Kampman [27/Aug/09 01:59 PM]
Nice catch, Richard!