aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPjotr Prins2020-11-06 12:58:38 +0000
committerPjotr Prins2020-11-06 12:58:38 +0000
commit6c654dd60f98d473ba94fda6143d8b8b00f99586 (patch)
tree8592af9a7c23ebb619e244bc4c5249d231986b1d /scripts
parent7c74a20b90ca647ca387eff2ed830c22f5ba1282 (diff)
downloadbh20-seq-resource-6c654dd60f98d473ba94fda6143d8b8b00f99586.tar.gz
bh20-seq-resource-6c654dd60f98d473ba94fda6143d8b8b00f99586.tar.lz
bh20-seq-resource-6c654dd60f98d473ba94fda6143d8b8b00f99586.zip
Add country entries that miss coordinates
Diffstat (limited to 'scripts')
-rw-r--r--scripts/db_enrichment/country_enrichment.py2
1 files changed, 1 insertions, 1 deletions
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 }
}
"""""