query-3228f853d569e5488b1e045c7e5b8421
A start has been made query related to geography could be really meaningful: any seems to be in need for some care before (Q27971968)constituency of the House of Commons : Maybe a bit "off topic", but the set of Pigsonthewing@ is missing for all but ten objects (and maybe incomplete also for those ten)(P47)shares border with is missing for all objects(P3896)geoshape is missing for most objects(P625)coordinate location is missing for a lot of objects(P131)located in the administrative territorial entity ) exist(P460)said to be the same as A lot of suspected duplicates (For details refer to this query:
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?located_inLabel ?coord ?geoshape (GROUP_CONCAT(?adjacent_to_label;SEPARATOR=', ') AS ?adjacents) ?said_to_be_same_as ?said_to_be_same_asLabel WHERE
{
?item wdt:P31 wd:Q27971968.
OPTIONAL { ?item wdt:P460 ?said_to_be_same_as }
OPTIONAL { ?item wdt:P131 ?located_in }
OPTIONAL { ?item wdt:P625 ?coord }
OPTIONAL { ?item wdt:P3896 ?geoshape }
OPTIONAL { ?item wdt:P47 ?adjacent_to . ?adjacent_to rdfs:label ?adjacent_to_label . FILTER(LANG(?adjacent_to_label)='en') }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
GROUP BY ?item ?itemLabel ?located_inLabel ?coord ?geoshape ?said_to_be_same_as ?said_to_be_same_asLabel
ORDER BY ?itemLabel ?located_inLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v9("?adjacent_to")
v3("?adjacent_to_label"):::projected
v10("?adjacents")
v7("?coord"):::projected
v8("?geoshape"):::projected
v4("?item"):::projected
v1("?itemLabel"):::projected
v6("?located_in")
v2("?located_inLabel"):::projected
v5("?said_to_be_same_as"):::projected
c11(["bd:serviceParam"]):::iri
c1(["en"]):::literal
c3(["wd:Q27971968"]):::iri
v4 --"wdt:P31"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P460".-> v5
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P131".-> v6
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P625".-> v7
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P3896".-> v8
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P47".-> v9
v9 --"rdfs:label"--> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c1
end
bind1[/"?adjacent_to_label"/]
v3 --o bind1
bind1 --as--o v10