Fnielsen created this task.
Fnielsen added a project: Wikidata-Query-Service.
Herald added a subscriber: Aklapper.
Herald added projects: Wikidata, Discovery.

TASK DESCRIPTION

Consider this query:

SELECT ?distance ?work ?workLabel ?geo ?location ?locationLabel
WITH {
  SELECT ?work ?location ?geo ?distance WHERE {
    ?work wdt:P921 ?location . 
    ?location wdt:P625 ?other_geo . 
    wd:Q791 wdt:P625 ?geo .
    BIND(geof:distance(?other_geo, ?geo) AS ?distance)
  }
  ORDER BY ?distance
  LIMIT 100
} AS %results
WHERE {
  INCLUDE %results
          
  # Filter is expensive if earlier
  FILTER NOT EXISTS { ?work wdt:P31 wd:Q17329259 }
  
  # Label the result
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,cs,da,de,es,jp,nl,no,ru,sv,zh". }
}
ORDER BY ?distance

https://www.wikidata.org/wiki/Q18148249 (Abert Lake Petroglyphs) has unknown geocoordinates.

When used in the WDQS, a result with a geocoordinate shows up for Abert Lake Petroglyphs that is actually a geocoordinate for another returned item (New Zealand on the following line).

I would have expected it to either not show up or be blank.


TASK DETAIL
https://phabricator.wikimedia.org/T192152

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Fnielsen
Cc: Fnielsen, Aklapper, Lahi, Gq86, Darkminds3113, Lucas_Werkmeister_WMDE, GoranSMilovanovic, QZanden, EBjune, merbst, LawExplorer, Avner, Gehel, Jonas, FloNight, Xmlizer, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to