From 6159c7c98446befdbc5a2330be950c4704c22bc6 Mon Sep 17 00:00:00 2001 From: s3lph Date: Thu, 1 Jun 2023 04:23:45 +0200 Subject: [PATCH] fix(sparql): consider P706 "located in" in addition to P361 "part of" --- generate_map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate_map.py b/generate_map.py index b899a72..df4dcc2 100755 --- a/generate_map.py +++ b/generate_map.py @@ -103,7 +103,7 @@ SELECT DISTINCT ?item ?map WHERE { # ?item is instance of country or sovereign state ?item wdt:P31 ?stateclass. # ?item is transitively part of Europe (Contintent) or EEA - ?item wdt:P361+ ?euroclass. + ?item wdt:P361+ | (wdt:P706 / wdt:P361) ?euroclass. # ?item has geoshape ?map (including all non-deprecated results) ?item p:P3896 ?st. ?st ps:P3896 ?map;