Hi all,

While using the 6.1.4 Open Source Edition I've noticed that the SPARQL 1.1. 
BINDINGS clause [1] is not supported by Virtuoso yet.

I have tried to run the example online at [1]:

The following triples have been loaded in 6.1.4:

@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix : <http://example.org/book/> .
@prefix ns: <http://example.org/ns#> .

:book1 dc:title "SPARQL Tutorial" .
:book1 ns:price 42 .
:book2 dc:title "The Semantic Web" .
:book2 ns:price 23 .


The execution of the query below fails:

PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX : <http://example.org/book/>
PREFIX ns: <http://example.org/ns#>

SELECT ?book ?title ?price
{
?book dc:title ?title ;
ns:price ?price .
}
BINDINGS ?book {
(:book1)
}


Virtuoso 37000 Error SP030: SPARQL compiler, line 12: syntax error at 
'BINDINGS' before '?book'

SPARQL query:
define sql:big-data-const 0
#output-format:text/html
define sql:signal-void-variables 1 PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX : <http://example.org/book/>
PREFIX ns: <http://example.org/ns#>

SELECT ?book ?title ?price
{
?book dc:title ?title ;
ns:price ?price .
}
BINDINGS ?book {
(:book1)
}



Do you know if there is any plan to add this feature in the future?


cheers,
Luca Costabello
http://www-sop.inria.fr/members/Luca.Costabello/




[1] http://www.w3.org/TR/sparql11-query/#bindings



Reply via email to