geocode/tests/fixtures/sample_08.json

27 lines
No EOL
1.1 KiB
JSON

{
"lat": 53.351,
"lon": -2.701,
"name": "Halton",
"wdqs": {
"SELECT DISTINCT ?item ?itemLabel ?commonsSiteLink ?commonsCat WHERE {\n { ?item rdfs:label 'Runcorn'@en } UNION { ?item skos:altLabel 'Runcorn'@en }\n FILTER NOT EXISTS { ?item wdt:P31 wd:Q17362920 } .# ignore Wikimedia duplicated page\n OPTIONAL { ?commonsSiteLink schema:about ?item ;\n schema:isPartOf <https://commons.wikimedia.org/> }\n OPTIONAL { ?item wdt:P373 ?commonsCat }\n ?item wdt:P625 ?coords .\n\n FILTER(geof:distance(?coords, \"Point(-2.701 53.351)\"^^geo:wktLiteral) < 10)\n FILTER(?commonsCat || ?commonsSiteLink)\n\n SERVICE wikibase:label { bd:serviceParam wikibase:language \"[AUTO_LANGUAGE],en\". }\n}\n": [
{
"item": {
"type": "uri",
"value": "http://www.wikidata.org/entity/Q1009316"
},
"commonsCat": {
"type": "literal",
"value": "Runcorn"
},
"itemLabel": {
"xml:lang": "en",
"type": "literal",
"value": "Runcorn"
}
}
]
},
"api": {},
"expected_wikidata": "Q1009316",
"expected_commons_cat": "Runcorn"
}