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

Key: SES-1076
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Jeen Broekstra
Reporter: Jeen Broekstra
Votes: 0
Watchers: 0
Operations

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

Support certain standard namespaces without having explicit declarations for them

Created: 09/Aug/12 12:34 AM   Updated: 09/Aug/12 10:44 PM
Component/s: Query Engine, SPARQL
Affects Version/s: None
Fix Version/s: 2.6.9


 Description   
Sesame's SPARQL engine currently needs explicitly defined namespace declarations for every qname in a query. It would be convenient if the engine would use default values for certain 'standard' namespace prefixes, such as rdf, rdfs, owl, xsd, fn, and the sesame namespace.

This can be easily dealt with in the PrefixDeclProcessor, by simply inserting these default namespaces (but only _if_ there is no explicitly defined namespace with the same value or prefix).


 All   Comments   Change History      Sort Order:
Comment by Jeen Broekstra [09/Aug/12 12:39 AM]
implemented defaults for 'rdf', 'rdfs', 'sesame', 'owl', 'fn' and 'xsd'. These defaults are only set if the query itself does not specify either the prefix or the corresponding namespace value in its namespace declarations.

Comment by James Leigh [09/Aug/12 10:44 PM]
The Turtle parser does something similar. See org.openrdf.rio.helpers.RDFParserBase and http://www.w3.org/2011/rdfa-context/rdfa-1.1.

It might make sense to align the Initial Context for both Turtle and SPARQL parsers, although the 'fn' and 'sesame' space doesn't make as much sense in turtle.