From 6c654dd60f98d473ba94fda6143d8b8b00f99586 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Fri, 6 Nov 2020 12:58:38 +0000 Subject: Add country entries that miss coordinates --- scripts/db_enrichment/country_enrichment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/db_enrichment') diff --git a/scripts/db_enrichment/country_enrichment.py b/scripts/db_enrichment/country_enrichment.py index f62a64e..37329fb 100644 --- a/scripts/db_enrichment/country_enrichment.py +++ b/scripts/db_enrichment/country_enrichment.py @@ -72,7 +72,6 @@ construct { } WHERE { BIND (XXX as ?a) . - ?a wdt:P625 ?c. ?a rdfs:label ?label . ?a wdt:P17 ?country. ?country rdfs:label ?country_label . @@ -81,6 +80,7 @@ construct { FILTER (lang(?continent_label)='en') FILTER (lang(?country_label)='en') FILTER (lang(?label)='en') + OPTIONAL { ?a wdt:P625 ?c } } """"" -- cgit v1.2.3