query-5596f1e275a5ba7845339d0df6376b43
User:Yusrahaider
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?num ?item ?contributor
WHERE
{
VALUES ?list { "Q1140534" "Q12314777" }
SERVICE wikibase:mwapi
{
bd:serviceParam wikibase:endpoint "www.wikidata.org".
bd:serviceParam wikibase:api "Generator".
bd:serviceParam mwapi:generator "allpages".
bd:serviceParam mwapi:gapfrom ?list.
bd:serviceParam mwapi:gapto ?list.
bd:serviceParam mwapi:gaplimit "1".
bd:serviceParam mwapi:prop "contributors".
# bd:serviceParam mwapi:pcexcludegroup "bot". # uncomment to exclude bot contributors
bd:serviceParam mwapi:pclimit "1".
?item wikibase:apiOutputItem mwapi:title.
?contributor wikibase:apiOutput "contributors/user/@name".
?num wikibase:apiOrdinal true.
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?contributor"):::projected
v2("?item"):::projected
v1("?list")
v4("?num"):::projected
c4(["www.wikidata.org"]):::literal
c19(["contributors/user/@name"]):::literal
c12(["1"]):::literal
c2(["bd:serviceParam"]):::iri
c8(["allpages"]):::literal
c21(["true^^xsd:boolean"]):::literal
c14(["contributors"]):::literal
c17(["mwapi:title"]):::iri
c6(["Generator"]):::literal
bind0[/VALUES ?list/]
bind0-->v1
bind00(["Q1140534"])
bind00 --> bind0
bind01(["Q12314777"])
bind01 --> bind0
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c2 --"mwapi:endpoint"--> c4
c2 --"mwapi:api"--> c6
c2 --"mwapi:generator"--> c8
c2 --"mwapi:gapfrom"--> v1
c2 --"mwapi:gapto"--> v1
c2 --"mwapi:gaplimit"--> c12
c2 --"mwapi:prop"--> c14
c2 --"mwapi:pclimit"--> c12
v2 --"mwapi:apiOutputItem"--> c17
v3 --"mwapi:apiOutput"--> c19
v4 --"mwapi:apiOrdinal"--> c21
end