query-1c58e0dfca8d7cd2172bc16f8b01fe35
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
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 ?item ?revid
WHERE
{
{
SELECT DISTINCT ?item
WHERE
{
?item wdt:P1087 ?Elo .
}
LIMIT 100
} BIND (STRAFTER(STR(?item), STR(wd:)) AS ?title)
SERVICE wikibase:mwapi
{
bd:serviceParam wikibase:endpoint "www.wikidata.org" .
bd:serviceParam wikibase:api "Generator" .
bd:serviceParam mwapi:generator "revisions" .
bd:serviceParam mwapi:prop "revisions" .
bd:serviceParam mwapi:titles ?title .
?revid wikibase:apiOutput "revisions/rev/@revid" .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?Elo")
v1("?item"):::projected
v4("?revid"):::projected
v3("?title")
c5(["www.wikidata.org"]):::literal
c13(["revisions/rev/@revid"]):::literal
c3(["bd:serviceParam"]):::iri
c9(["revisions"]):::literal
c7(["Generator"]):::literal
v1 --"wdt:P1087"--> v2
bind0[/"substring-after(str(?item),str('wd:'))"/]
v1 --o bind0
bind0 --as--o v3
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c3 --"mwapi:endpoint"--> c5
c3 --"mwapi:api"--> c7
c3 --"mwapi:generator"--> c9
c3 --"mwapi:prop"--> c9
c3 --"mwapi:titles"--> v3
v4 --"mwapi:apiOutput"--> c13
end