query-4e81d24d73e1a396c5916c836cfada5a

rq turtle/ttl

TODO

Use at

PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?commonsTitle ?sitelink ?item ?itemLabel ?instanceLabel ?countryLabel ?jurisdictionLabel ?subjectLabel  {
  SERVICE wikibase:mwapi {
     bd:serviceParam wikibase:api "Generator" .
     bd:serviceParam wikibase:endpoint "commons.wikimedia.org" .
     bd:serviceParam mwapi:gcmtitle "Category:Commons_licensing_help_by_country" .
     bd:serviceParam mwapi:generator "categorymembers" .
     bd:serviceParam mwapi:gcmtype "page" .
     bd:serviceParam mwapi:gcmlimit "max" .
     bd:serviceParam mwapi:gcmsort "timestamp" .
     bd:serviceParam mwapi:gcmdir "descending" .
     ?commonsTitle wikibase:apiOutput mwapi:title  .
  }

  bind(concat(""",?commonsTitle,""","@en") as ?sitelink)
#  ?sitelink ^schema:name ?article . 
#  ?article schema:about ?itemĀ ;
#           schema:isPartOf <https://commons.wikimedia.org/> .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?commonsTitle"):::projected v2("?sitelink"):::projected c14(["max"]):::literal c18(["descending"]):::literal c10(["categorymembers"]):::literal c2(["bd:serviceParam"]):::iri c23(["#91;AUTO_LANGUAGE#93;,en"]):::literal c8(["Category:Commons_licensing_help_by_country"]):::literal c12(["page"]):::literal c20(["mwapi:title"]):::iri c6(["commons.wikimedia.org"]):::literal c4(["Generator"]):::literal c16(["timestamp"]):::literal 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:gcmsort"--> c16 c2 --"mwapi:gcmdir"--> c18 v1 --"mwapi:apiOutput"--> c20 end bind0[/"concat(',?commonsTitle,','@en')"/] bind0 --as--o v2 subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c2 --"mwapi:language"--> c23 end