query-6a3074c63f88d55e3fc08f30e238ea70
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 (COUNT(distinct ?article) as ?articles)
WHERE
{
?item wdt:P106 wd:Q17524364 .
?article schema:about ?item .
MINUS { ?wen schema:about ?item . ?wen schema:isPartOf <https://en.wikipedia.org/> }
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en,de,fr,pl" .
}
}
GROUP BY ?item ?itemLabel
ORDER BY DESC(?articles)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?article"):::projected
v5("?articles")
v2("?item"):::projected
v4("?wen")
c5([https://en.wikipedia.org/]):::iri
c2(["wd:Q17524364"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["en,de,fr,pl"]):::literal
v2 --"wdt:P106"--> c2
v3 --"schema:about"--> v2
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v4 --"schema:about"--> v2
v4 --"schema:isPartOf"--> c5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind2[/"count(?article)"/]
v3 --o bind2
bind2 --as--o v5