We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using the :or: filter and one of them is a :uri: filter, the created query internally will not be correct.
:or:
:uri:
e.g. for filter[:or:][:uri:]=test&filter[:or:][:exact:alias]=test the query is:
filter[:or:][:uri:]=test&filter[:or:][:exact:alias]=test
SELECT DISTINCT ?uuid WHERE { GRAPH <http://mu.semte.ch/application> { ?s mu:uuid ?uuid; a ?class. VALUES ?class {void:Dataset}. { VALUES ?s { <test> } } UNION { ?s ext:alias """test""". } } } GROUP BY ?uuid OFFSET 0 LIMIT 20
This problem arises from using the VALUES block: https://www.w3.org/TR/sparql11-query/#inline-data
VALUES
VALUES provides inline data as a solution sequence which are combined with the results of query evaluation by a join operation.
A potential solution that works as expected would be
PREFIX mu: <http://mu.semte.ch/vocabularies/core/> PREFIX ext: <http://mu.semte.ch/vocabularies/ext/> PREFIX void: <http://rdfs.org/ns/void#> SELECT DISTINCT ?uuid WHERE { GRAPH <http://mu.semte.ch/application> { ?s mu:uuid ?uuid; a ?class. VALUES ?class {void:Dataset}. { { SELECT ?s WHERE { VALUES ?s { <test> } } } } UNION { ?s ext:alias """test""". } } } GROUP BY ?uuid OFFSET 0 LIMIT 20
or using a FILTER instead of VALUES (but this would be slower).
FILTER
The text was updated successfully, but these errors were encountered:
fix doc erros for :or: filter and add warning to not use with :uri:
187365a
see issue mu-semtech#36
No branches or pull requests
When using the
:or:
filter and one of them is a:uri:
filter, the created query internally will not be correct.e.g. for
filter[:or:][:uri:]=test&filter[:or:][:exact:alias]=test
the query is:This problem arises from using the
VALUES
block:https://www.w3.org/TR/sparql11-query/#inline-data
A potential solution that works as expected would be
or using a
FILTER
instead ofVALUES
(but this would be slower).The text was updated successfully, but these errors were encountered: