query-37ee9b81ca92435bd970c176c7f5f27b
And with this I can get all ppl with sitelinks on English Wikipedia:
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 DISTINCT ?item ?itemLabel ?itemDescription ?article
WHERE {
?item wdt:P31 wd:Q5;
wdt:P27 wd:Q298.
?article schema:about ?item.
?article schema:isPartOf <https://en.wikipedia.org/>.
SERVICE wikibase:label { bd:serviceParam wikibase:language "es,en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?article"):::projected
v1("?item"):::projected
c7([https://en.wikipedia.org/]):::iri
c9(["bd:serviceParam"]):::iri
c11(["es,en"]):::literal
c2(["wd:Q5"]):::iri
c4(["wd:Q298"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wdt:P27"--> c4
v2 --"schema:about"--> v1
v2 --"schema:isPartOf"--> c7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end