1

The query service does not know that your variable ?article means that you want a Wikipedia article. You have to also ask for it in the actual query. One way to do that is to add these lines in the query: ?article schema:about ?place. FILTER REGEX(STR(?article), ".wikipedia.org/wiki/") . The first line queries for all the the sitelinks that the item have. ...


1

First, download wikidata json dumps from https://www.wikidata.org/wiki/Wikidata:Database_download . Then start reading the json file e.g. using Python's json library and for each entity, find entity['sitelinks']['enwiki']['value'] which gives you the page title. Then replace space with _ and concatenate it to wikipedia.org/wiki/... Now you have the ...


Only top voted, non community-wiki answers of a minimum length are eligible