query-333cddb5a6e581eb90aceaf65c181da5
Unique sitelinks count
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/>
#defaultView:BubbleChart
SELECT ?lang (COUNT(DISTINCT ?article) AS ?count) WHERE {
?item wdt:P31 wd:Q7889.
?article schema:about ?item.
FILTER((SUBSTR(STR(?article), 11 , 15 )) = ".wikipedia.org/")
?article schema:inLanguage ?lang.
?item wikibase:sitelinks ?sitelinks.
FILTER(?sitelinks = 1 )
}
GROUP BY ?lang
ORDER BY DESC (?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?article"):::projected
v6("?count")
v4("?item")
v5("?lang"):::projected
v2("?sitelinks")
c6(["wd:Q7889"]):::iri
f0[["?sitelinks = '1^^xsd:integer'"]]
f0 --> v2
f1[["substring(str(?article),'11^^xsd:integer','15^^xsd:integer') = '.wikipedia.org/'"]]
f1 --> v3
v4 --"wdt:P31"--> c6
v3 --"schema:about"--> v4
v3 --"schema:inLanguage"--> v5
v4 --"wikibase:sitelinks"--> v2
bind3[/"count(?article)"/]
v3 --o bind3
bind3 --as--o v6