query-e7980d53c29d832cfde57c575520133c

rq turtle/ttl

TODO

Use at

PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT * WHERE {
  ?link schema:about wd:Q17282852; schema:isPartOf <https://en.wikipedia.org/>; schema:name ?title .
  SERVICE wikibase:mwapi {
     # in
     bd:serviceParam wikibase:api "Generator" .
     bd:serviceParam wikibase:endpoint "en.wikipedia.org" .
     bd:serviceParam mwapi:gcmtitle ?title .
     bd:serviceParam mwapi:generator "categorymembers" .
     bd:serviceParam mwapi:gcmprop "ids|title|type" .
     bd:serviceParam mwapi:gcmlimit "max" .
     # out
     ?member wikibase:apiOutput mwapi:title  .
     ?ns wikibase:apiOutput "@ns" .
     ?item wikibase:apiOutputItem mwapi:item .

  }
  ?item wdt:P5698 [].
# FILTER (?ns = "14")
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?item"):::projected v1("?link"):::projected v3("?member"):::projected v4("?ns"):::projected v2("?title"):::projected a1((" ")) c23(["mwapi:item"]):::iri c18(["max"]):::literal c21(["@ns"]):::literal c14(["categorymembers"]):::literal c4([https://en.wikipedia.org/]):::iri c11(["en.wikipedia.org"]):::literal c7(["bd:serviceParam"]):::iri c2(["wd:Q17282852"]):::iri c20(["mwapi:title"]):::iri c16(["ids|title|type"]):::literal c9(["Generator"]):::literal v1 --"schema:about"--> c2 v1 --"schema:isPartOf"--> c4 v1 --"schema:name"--> v2 subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c7 --"mwapi:api"--> c9 c7 --"mwapi:endpoint"--> c11 c7 --"mwapi:gcmtitle"--> v2 c7 --"mwapi:generator"--> c14 c7 --"mwapi:gcmprop"--> c16 c7 --"mwapi:gcmlimit"--> c18 v3 --"mwapi:apiOutput"--> c20 v4 --"mwapi:apiOutput"--> c21 v5 --"mwapi:apiOutputItem"--> c23 end v5 --"wdt:P5698"--> a1