query-539ce22066e741a4a9a3b89b0cdaa7ea

rq turtle/ttl

TODO

Use at

PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT * WHERE {
  BIND (URI(CONCAT('https://commons.wikimedia.org/entity/M', ?pageid)) AS ?file)
  SERVICE wikibase:mwapi {
    bd:serviceParam wikibase:api "Generator";
                    wikibase:endpoint "commons.wikimedia.org";
                    mwapi:gcmtitle "Category:1930s photographs in Auckland Museum";
                    mwapi:generator "categorymembers";
                    mwapi:gcmtype "file";
                    mwapi:gcmlimit "max";
                    mwapi:prop "revisions";
                    mwapi:rvprop "content".
    ?title wikibase:apiOutput mwapi:title.
    ?pageid wikibase:apiOutput "@pageid".
    ?contentmodel wikibase:apiOutput 'revisions/rev/@contentmodel'.
    ?contentformat wikibase:apiOutput 'revisions/rev/@contentformat'.
    ?content wikibase:apiOutput 'revisions/rev/text()'.
  }
} 
LIMIT 10

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?content"):::projected v5("?contentformat"):::projected v4("?contentmodel"):::projected v1("?file"):::projected v3("?pageid"):::projected v2("?title"):::projected c8(["Category:1930s photographs in Auckland Museum"]):::literal c14(["max"]):::literal c24(["revisions/rev/text()"]):::literal c18(["content"]):::literal c10(["categorymembers"]):::literal c2(["bd:serviceParam"]):::iri c12(["file"]):::literal c22(["revisions/rev/@contentmodel"]):::literal c16(["revisions"]):::literal c20(["mwapi:title"]):::iri c6(["commons.wikimedia.org"]):::literal c21(["@pageid"]):::literal c23(["revisions/rev/@contentformat"]):::literal c4(["Generator"]):::literal bind0[/"concat('https://commons.wikimedia.org/entity/M',?pageid)"/] v3 --o bind0 bind0 --as--o v1 subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c2 --"mwapi:api"--> c4 c2 --"mwapi:endpoint"--> c6 c2 --"mwapi:gcmtitle"--> c8 c2 --"mwapi:generator"--> c10 c2 --"mwapi:gcmtype"--> c12 c2 --"mwapi:gcmlimit"--> c14 c2 --"mwapi:prop"--> c16 c2 --"mwapi:rvprop"--> c18 v2 --"mwapi:apiOutput"--> c20 v3 --"mwapi:apiOutput"--> c21 v4 --"mwapi:apiOutput"--> c22 v5 --"mwapi:apiOutput"--> c23 v6 --"mwapi:apiOutput"--> c24 end