Skip to content

Commit

Permalink
Get all locator map images not just the preferred rank image
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyzz committed Mar 27, 2022
1 parent 337ed17 commit 36b8ccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mediawiki.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def query(self, items):
query = f"""
SELECT ?item ?democracy_index (GROUP_CONCAT(?locator_map_image; SEPARATOR = "|") AS ?maps) WHERE {{
VALUES ?item {{ {items} }}
OPTIONAL {{ ?item wdt:P242 ?locator_map_image. }}
OPTIONAL {{ ?item (p:P242/ps:P242) ?locator_map_image. }}
OPTIONAL {{
?item p:P8328 ?statement.
?statement ps:P8328 ?democracy_index;
Expand Down

0 comments on commit 36b8ccb

Please sign in to comment.