-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
property-path/path-ng-01.rq needs a BASE #4
Comments
If you see other problems like that, it's necessary to mark each error before to ask an autorisation to fix the test-suite of W3C. Thanks |
Mark it where? Should I continue to post issues in this project, or somewhere else? |
Mark it in this project. |
Same for
|
Same for:
|
Having no base URI inside the query is not a bug. When no base URI is defined inside a SPARQL query to resolve relative URIs against, a SPARQL processor is expected to try and use a base URI supplied by the environment (per RFC 3986, section 5.1.2 "Base URI from the encapsulating entity"). You just need to make sure you supply Sesame with a base URI when you tell it to read the file and parse the query. |
Right, http://www.w3.org/TR/sparql11-query/#relIRIs gives the details. I'm also copying relevant text from RFC 3986:
But which of these cases applies for a query that's made with GET or POST against an endpoint? I assume that's the way TFT tests are run, and even that's the intended way W3C SPARQL tests are intended to be run (they test SPARQL protocol endpoints). As far as I can see, http://www.w3.org/TR/sparql11-protocol doesn' t talk about executing queries from files. |
Sorry for my silence, I was very busy. I understood your problem. Bye |
Thanks!!! |
Base uri is the same concept to resolve the relative URL in a page html.
TFT is like the navigator and write now the base URI with the relative URI in your query. For example :
The precedent query is equivalent to :
(Sorry for my english) |
Ok, I see! Of course, this is optional since these URLs aren't really used by anything. At least currently. |
https://github.com/BorderCloud/TFT-tests/blob/master/sparql11-test-suite/property-path/path-ng-01.rq:
Sesame reports "Not a valid (absolute) URI: ng-01.ttl". The query needs a BASE.
Maybe many of the w3c tests involving graphs, suffer from a similar problem.
The text was updated successfully, but these errors were encountered: