query-d3119d77e88a44fcba5af0880a428931
title: List of articles about Grace Hopper from all Wikipedias, ordered by descending size of the article in that language SELECT ?sitelink ?title ?site ?articlesize WHERE { ?sitelink schema:about wd:Q11641. ?sitelink schema:isPartOf ?site. ?sitelink schema:isPartOf/wikibase:wikiGroup "wikipedia" . ?sitelink schema:name ?title. BIND (STRBEFORE(STRAFTER(STR(?site), "https://"), "/") AS ?endpoint) BIND (STR(?title) AS ?title_nolang) SERVICE wikibase:mwapi { bd:serviceParam wikibase:endpoint ?endpoint. bd:serviceParam wikibase:api "Generator". bd:serviceParam mwapi:generator "revisions". bd:serviceParam mwapi:titles ?title_nolang. bd:serviceParam mwapi:prop "revisions". bd:serviceParam mwapi:rvprop "size". ?size wikibase:apiOutput "revisions/rev[last()]/@size". } BIND ( xsd:integer(?size) AS ?articlesize ) } ORDER BY DESC(?articlesize)
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: List of articles about Grace Hopper from all Wikipedias, ordered by descending size of the article in that language
SELECT ?sitelink ?title ?site ?articlesize
WHERE
{
?sitelink schema:about wd:Q11641.
?sitelink schema:isPartOf ?site.
?sitelink schema:isPartOf/wikibase:wikiGroup "wikipedia" .
?sitelink schema:name ?title.
BIND (STRBEFORE(STRAFTER(STR(?site), "https://"), "/") AS ?endpoint)
BIND (STR(?title) AS ?title_nolang)
SERVICE wikibase:mwapi
{
bd:serviceParam wikibase:endpoint ?endpoint.
bd:serviceParam wikibase:api "Generator".
bd:serviceParam mwapi:generator "revisions".
bd:serviceParam mwapi:titles ?title_nolang.
bd:serviceParam mwapi:prop "revisions".
bd:serviceParam mwapi:rvprop "size".
?size wikibase:apiOutput "revisions/rev[last()]/@size".
}
BIND ( xsd:integer(?size) AS ?articlesize )
}
ORDER BY DESC(?articlesize)