query-a2fd29ea83ec7543b4b5167aa13211e7
TODO
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 ?item ?creator ?timestamp ?edit_comment
WHERE
{
VALUES ?titles { "Q42" "Q2013" "Q1000000" }
SERVICE wikibase:mwapi
{
bd:serviceParam wikibase:endpoint "www.wikidata.org" .
bd:serviceParam wikibase:api "Generator" .
bd:serviceParam mwapi:generator "allpages" .
bd:serviceParam mwapi:gapfrom ?titles .
bd:serviceParam mwapi:gapto ?titles .
bd:serviceParam mwapi:prop "revisions" .
bd:serviceParam mwapi:rvprop "user|timestamp|comment" .
bd:serviceParam mwapi:rvdir "newer" .
bd:serviceParam mwapi:rvlimit "1" .
?item wikibase:apiOutputItem mwapi:title .
?creator wikibase:apiOutput "revisions/rev/@user" .
?timestamp wikibase:apiOutput "revisions/rev/@timestamp" .
?edit_comment wikibase:apiOutput "revisions/rev/@comment" .
bd:serviceParam wikibase:limit "once" .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?creator"):::projected
v5("?edit_comment"):::projected
v2("?item"):::projected
v4("?timestamp"):::projected
v1("?titles")
c2(["bd:serviceParam"]):::iri
c8(["allpages"]):::literal
c12(["revisions"]):::literal
c22(["revisions/rev/@user"]):::literal
c4(["www.wikidata.org"]):::literal
c14(["user|timestamp|comment"]):::literal
c16(["newer"]):::literal
c18(["1"]):::literal
c26(["once"]):::literal
c23(["revisions/rev/@timestamp"]):::literal
c20(["mwapi:title"]):::iri
c6(["Generator"]):::literal
c24(["revisions/rev/@comment"]):::literal
bind0[/VALUES ?titles/]
bind0-->v1
bind00(["Q42"])
bind00 --> bind0
bind01(["Q2013"])
bind01 --> bind0
bind02(["Q1000000"])
bind02 --> 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:prop"--> c12
c2 --"mwapi:rvprop"--> c14
c2 --"mwapi:rvdir"--> c16
c2 --"mwapi:rvlimit"--> c18
v2 --"mwapi:apiOutputItem"--> c20
v3 --"mwapi:apiOutput"--> c22
v4 --"mwapi:apiOutput"--> c23
v5 --"mwapi:apiOutput"--> c24
c2 --"mwapi:limit"--> c26
end