I use BIND () to select and insert triples, from and to 4store.
The next SELECT works,
PREFIX Sensor: <http://cei.usc.edu/Equipment.owl
SELECT *
WHERE {
?subject100 Sensor:test1 "100"
BIND("1000" as ?x) .
} LIMIT 10
But when I try to do INSERT WHERE, it fails
PREFIX Sensor: <http:
INSERT {
?subject Sensor:test510 ?value .
}
WHERE {
{
?subject100 Sensor:test1 "100" .
BIND("200" as ?value)
}
UNION
{
?subject99 Sensor:test1 "99" .
BIND("300" as ?value)
}
}
error: BIND cannot be used with SPARQL 1.0 in line 1 of operation 0
I am launching the latest version of 4Store v1.1.4 20-Sep-2011
I tried the above INSERT WHERE with another SPARQL repository and it worked. BIND is a new construct in SPARQL 1.1, so I'm not sure if it is supported in 4Store.
source
share