Skip to content

Instantly share code, notes, and snippets.

@bekicot
Created August 2, 2017 09:50
Show Gist options
  • Save bekicot/2080be2749f133e261ec219e8a61b785 to your computer and use it in GitHub Desktop.
Save bekicot/2080be2749f133e261ec219e8a61b785 to your computer and use it in GitHub Desktop.
SELECT DISTINCT ?item ?itemLabel ?geonamesId ?coordinate
WHERE {
?item wdt:P31/wdt:P279* wd:Q23442.
?item wdt:P17 wd:Q252 .
?item wdt:P625 ?coordinate
# Remove any triples that has reference in their coordinate
MINUS {
?item p:P625 ?coordinateStatement .
?coordinateStatement prov:wasDerivedFrom ?ref .
?ref ?anyReference ?value .
}
?sitelink schema:about ?item .
?sitelink schema:inLanguage 'ceb' .
?item wdt:P1566 ?geonamesId
SERVICE wikibase:label { bd:serviceParam wikibase:language "id,en". }
}
ORDER BY ?item
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment