CommentResponse:AH-1

From SPARQL Working Group
Jump to: navigation, search

Draft reply to: AH-1

Aidan,

Thank you for your comment about SPARQL BINDINGS.

The working group has reworked what was previously BINDINGS along the lines of the message to public-sparql-dev [1]. The details are in the editors' working draft [2] and the grammar. This allows VALUES in a graph pattern as well as after query level.

Regarding your editorial comment (adding an example) the WG decided that the Query specification is already quite long. It was, therefore, decided that no further examples will be added. For the IF feature, there are, however, publicly available test cases that illustrate the use of the feature:

 http://www.w3.org/2009/sparql/docs/tests/data-sparql11/functions/if01.rq
 http://www.w3.org/2009/sparql/docs/tests/data-sparql11/functions/if02.rq

For the casting functions, there is already an example right in the beginning of section 17:

 In addition, SPARQL provides the ability to invoke arbitrary functions, including a subset of the XPath casting functions, listed in section 17.5. 
 These functions are invoked by name (an IRI) within a SPARQL query. For example: 
 ... FILTER ( xsd:dateTime(?date) < xsd:dateTime("2005-01-01T00:00:00Z") ) ...

We hope that you understand these decisions and we would be grateful if you could acknowledge that your comment has been answered by sending a reply to this mailing list.

Andy and Birte, on behalf of the SPARQL-WG

[1] http://lists.w3.org/Archives/Public/public-sparql-dev/2012AprJun/0018.html

[2] http://www.w3.org/2009/sparql/docs/query-1.1/rq25.xml#inline-data