query-35d220e3d56573d13388b9973f23e6a7
title:item creator (complete information) SELECT ?item ?creator ?timestamp ?edit_comment WHERE { ?input_item wdt:P9506 [] . BIND(strafter(str(?input_item),"/entity/") as ?titles)
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" . } }
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 bd: <http://www.bigdata.com/rdf#>
#title:item creator (complete information)
SELECT ?item ?creator ?timestamp ?edit_comment
WHERE
{
?input_item wdt:P9506 [] .
BIND(strafter(str(?input_item),"/entity/") as ?titles)
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
- https://www.wikidata.org/wiki/User:Ep%C3%ACdosis/Queries
- https://www.wikidata.org/wiki/User:Ep%C3%ACdosis/sandbox