Re: [Wikidata-tech] Trailing BIND-Clause in SPARQL-queries

2017-01-16 Thread Adrian Bielefeldt
I can confirm that, just had a chat at RDF4JUsers where I was told that: "In terms of getting the query to parse, why not just reorder the BIND() to the front of the group? This is what blazegraph is doing internally. " So you

Re: [Wikidata-tech] Trailing BIND-Clause in SPARQL-queries

2017-01-15 Thread Stas Malyshev
Hi! On 1/14/17 9:23 AM, Adrian Bielefeldt wrote: > I was wondering if anybody could help me understand why (and how) this > query: > > SELECT DISTINCT ?item > WHERE > { ?tree0 wdt:P31 ?item . BIND (wd:Q146 AS ?tree0) } > > is being accepted by query.wikidata.org. Probably Blazegraph engine

Re: [Wikidata-tech] Trailing BIND-Clause in SPARQL-queries

2017-01-14 Thread james anderson
good evening; go here : http://www.sparql.org/query-validator.html and try the query (with appropriate prefix declarations). you will see that it is not valid. > On 2017-01-14, at 18:23, Adrian Bielefeldt > wrote: > > Hello everyone, > > I'm

[Wikidata-tech] Trailing BIND-Clause in SPARQL-queries

2017-01-14 Thread Adrian Bielefeldt
Hello everyone, I'm writing on behalf of a Wikidata Research Project into SPARQL-Queries. I was wondering if anybody could help me understand why (and how) this query: SELECT DISTINCT ?item WHERE { ?tree0 wdt:P31 ?item .