- From: Ruben Verborgh <ruben.verborgh@ugent.be>
- Date: Thu, 21 Aug 2014 14:05:17 +0200
- To: Andy Seaborne <andy@apache.org>
- Cc: public-sparql-dev@w3.org
> -Correct - adjacent triple patterns and ones separated by FILTER merge together.
And how does it change semantics then?
I.e., what would be the difference between
SELECT ?title ?price
{ ?x ns:price ?p .
?x ns:discount ?discount
BIND (?p*(1-?discount) AS ?price)
FILTER(?price < 20)
?x dc:title ?title .
}
and
SELECT ?title ?price
{ ?x ns:price ?p .
?x ns:discount ?discount
?x dc:title ?title .
BIND (?p*(1-?discount) AS ?price)
FILTER(?price < 20)
}
or
SELECT ?title ?price
{ ?x ns:price ?p .
OPTIONAL { ?x ns:discount ?discount }
?x dc:title ?title .
}
and
SELECT ?title ?price
{ ?x ns:price ?p .
?x dc:title ?title .
OPTIONAL { ?x ns:discount ?discount }
}
?
Best,
Ruben
Received on Thursday, 21 August 2014 12:05:49 UTC