query-f30388b2db02e7268f5a036b30963db9

rq turtle/ttl

TODO

Use at

PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel WHERE {
  ?link schema:about wd:Q8611807; schema:isPartOf <https://pl.wikipedia.org/>; schema:name ?title . #point to the wiki you are searching, remove line if no QID
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,pl". } #remove if not needed, also ?itemLabel for Magnus tools
  SERVICE wikibase:mwapi {
     bd:serviceParam wikibase:api "Generator" .
     bd:serviceParam wikibase:endpoint "pl.wikipedia.org" . #point to the wiki you are searching
     bd:serviceParam mwapi:gcmtitle ?title . #replace here if no QID
     bd:serviceParam mwapi:generator "categorymembers" .
     bd:serviceParam mwapi:gcmprop "ids|title|type" .
     bd:serviceParam mwapi:gcmlimit "max" .
    ?item wikibase:apiOutputItem mwapi:item .
    ?ns wikibase:apiOutput "@ns" .
  }
  FILTER (?ns = "0"). #showing only articles
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?item"):::projected v2("?link") v1("?ns") v3("?title") c24(["mwapi:item"]):::iri c26(["@ns"]):::literal c8(["bd:serviceParam"]):::iri c5([https://pl.wikipedia.org/]):::iri c3(["wd:Q8611807"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en,pl"]):::literal c22(["max"]):::literal c18(["categorymembers"]):::literal c15(["pl.wikipedia.org"]):::literal c20(["ids|title|type"]):::literal c13(["Generator"]):::literal f0[["?ns = '0'"]] f0 --> v1 v2 --"schema:about"--> c3 v2 --"schema:isPartOf"--> c5 v2 --"schema:name"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"mwapi:language"--> c10 end subgraph s2["http://wikiba.se/ontology#mwapi"] style s2 stroke-width:4px; c8 --"mwapi:api"--> c13 c8 --"mwapi:endpoint"--> c15 c8 --"mwapi:gcmtitle"--> v3 c8 --"mwapi:generator"--> c18 c8 --"mwapi:gcmprop"--> c20 c8 --"mwapi:gcmlimit"--> c22 v4 --"mwapi:apiOutputItem"--> c24 v1 --"mwapi:apiOutput"--> c26 end