query-bf69eb9c74b36a01d4aa61dbe0610ec8
TODO
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?country ?countyLabel ?sitelink ?article
WHERE
{
?item wdt:P31/wdt:P279* wd:Q46169.
?item wdt:P17 ?country.
?article schema:about ?item ;
schema:isPartOf <https://en.wikipedia.org/> ;
schema:name ?sitelink .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} order by ?countyLabel ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?article"):::projected
v4("?country"):::projected
v1("?countyLabel"):::projected
v3("?item"):::projected
v2("?itemLabel"):::projected
v6("?sitelink"):::projected
a1((" "))
c7([https://en.wikipedia.org/]):::iri
c10(["bd:serviceParam"]):::iri
c3(["wd:Q46169"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v3 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v3 --"wdt:P17"--> v4
v5 --"schema:about"--> v3
v5 --"schema:isPartOf"--> c7
v5 --"schema:name"--> v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end