Page MenuHomePhabricator

Generated SPARQL when regardless of value and more than one condition should have different anyvalue variable names
Closed, ResolvedPublicBUG REPORT

Description

Steps to Reproduce:

Search an image regardless of value. You will get a results like this one.

Look at the element properties and do a new search with image and the property. Example point in time (P585).

image.png (526×1 px, 170 KB)

Actual Results:

No results are shown.

The generated SparqlQuery is incorrect.

SELECT ?item ?itemLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
  ?item (p:P18/ps:P18) _:anyValue.
  ?item (p:P585/ps:P585) _:anyValue.
}

Expected Results:

We should get at least the result we found in the first search.

SELECT ?item ?itemLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
  ?item (p:P18/ps:P18) _:anyValue123 .
  ?item (p:P585/ps:P585) _:anyValue234 .
}

The anyValue term should be different in every triple.

Event Timeline

guergana.tzatchkova renamed this task from Fix search when regardless of value and more than one condition to Generated SPARQL when regardless of value and more than one condition should have different anyvalue variable names.Jan 13 2021, 11:15 AM
guergana.tzatchkova updated the task description. (Show Details)
guergana.tzatchkova updated the task description. (Show Details)