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).

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

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptWed, Jan 13, 11:14 AM
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.Wed, Jan 13, 11:15 AM
guergana.tzatchkova updated the task description. (Show Details)
guergana.tzatchkova updated the task description. (Show Details)
Restricted Application added a project: User-Ladsgroup. · View Herald TranscriptWed, Jan 13, 6:06 PM