query-3d4744dcb2c635cb6fa8aa44044143bf
Synia: Wikiprojects
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 bd: <http://www.bigdata.com/rdf#>
SELECT
?items
?wikiproject ?wikiprojectLabel
(CONCAT("#wikiproject/", SUBSTR(STR(?wikiproject), 32)) AS ?wikiprojectUrl)
?wikiprojectDescription
("Wikidata ↗" AS ?wikidata)
(CONCAT("https://www.wikidata.org/wiki/", SUBSTR(STR(?wikiproject), 32)) AS ?wikidataUrl)
("Scholia ↗" AS ?scholia)
(CONCAT("https://scholia.toolforge.org/wikiproject/", SUBSTR(STR(?wikiproject), 32)) AS ?scholiaUrl)
WHERE {
{
SELECT
(COUNT(?item) AS ?items)
?wikiproject
WHERE {
?wikiproject wdt:P31 wd:Q16695773 ;
^wdt:P6104 ?item .
}
GROUP BY ?wikiproject
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?items)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item")
v4("?items"):::projected
v7("?scholia")
v8("?scholiaUrl")
v5("?wikidata")
v6("?wikidataUrl")
v2("?wikiproject"):::projected
v4("?wikiprojectUrl")
c5(["bd:serviceParam"]):::iri
c2(["wd:Q16695773"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P31"--> c2
v3 --"wdt:P6104"--> v2
bind1[/"count(?item)"/]
v3 --o bind1
bind1 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind2[/"concat('#wikiproject/',substring(str(?wikiproject),'32^^xsd:integer'))"/]
v2 --o bind2
bind2 --as--o v4
bind3[/"'Wikidata ↗'"/]
bind3 --as--o v5
bind4[/"concat('https://www.wikidata.org/wiki/',substring(str(?wikiproject),'32^^xsd:integer'))"/]
v2 --o bind4
bind4 --as--o v6
bind5[/"'Scholia ↗'"/]
bind5 --as--o v7
bind6[/"concat('https://scholia.toolforge.org/wikiproject/',substring(str(?wikiproject),'32^^xsd:integer'))"/]
v2 --o bind6
bind6 --as--o v8