Skip to content

Commit

Permalink
feat: Include Wikidata main squares (#1430)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer authored Sep 21, 2024
1 parent 4b43da2 commit 175a6ee
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,19 @@ WHERE {
bd:serviceParam mwapi:srsearch ?query .
?item wikibase:apiOutputItem mwapi:title .
}
# Use UNION instead of VALUES because the latter doesn't properly restrict results.
{
# select Streets
# Streets.
?item wdt:P31 wd:Q79007
}
UNION
{
# select Squares
UNION {
# Squares.
?item wdt:P31 wd:Q174782
}
UNION {
# Main squares, e.g. http://www.wikidata.org/entity/Q1083850.
?item wdt:P31 wd:Q26987258
}
?item wdt:P17 wd:Q55 .
?item wdt:P131 ?administration .
OPTIONAL {
Expand Down

0 comments on commit 175a6ee

Please sign in to comment.