Hi, I tried to fetch revision like this, but i could not figure out how to access to actual content which should be under the key "*"
. Do you know how i should do that?
SOLVED: Example is now fixed based on answer below
SELECT * WHERE {
BIND(wd:Q42 AS ?item)
?item wdt:P18 ?image.
BIND(STRAFTER(wikibase:decodeUri(STR(?image)), "http://commons.wikimedia.org/wiki/Special:FilePath/") AS ?fileTitle)
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "commons.wikimedia.org";
wikibase:api "Generator";
wikibase:limit "once";
mwapi:generator "allpages";
mwapi:gapfrom ?fileTitle;
mwapi:gapnamespace 6; # NS_FILE
mwapi:gaplimit 1;
mwapi:prop "revisions";
mwapi:rvprop "content".
?contentmodel wikibase:apiOutput 'revisions/rev/@contentmodel'.
?contentformat wikibase:apiOutput 'revisions/rev/@contentformat'.
?content wikibase:apiOutput 'revisions/rev/text()' .
}
}