query-cec49b1aefa63b801d939455d09df18c

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 distinct ?item ?itemLabel ?article ?sitelink where
{

  SERVICE wikibase:mwapi {
     bd:serviceParam wikibase:endpoint "en.wikipedia.org";
                     wikibase:api "Generator";
                     mwapi:generator "categorymembers";
                     mwapi:gcmtitle "Category:Al Jazeera people " ;         
                     mwapi:gcmprop "ids|title|type";
                     mwapi:gcmlimit "max".
     # out
     ?item wikibase:apiOutputItem mwapi:item.            # wikidata QId for the person's item
    }
 ?article schema:about ?item ;
          schema:name ?sitelink ;
          schema:isPartOf <https://he.wikipedia.org/> .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],he". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?article"):::projected v1("?item"):::projected v3("?sitelink"):::projected c10(["Category:Al Jazeera people "]):::literal c20([https://he.wikipedia.org/]):::iri c16(["mwapi:item"]):::iri c14(["max"]):::literal c23(["#91;AUTO_LANGUAGE#93;,he"]):::literal c8(["categorymembers"]):::literal c4(["en.wikipedia.org"]):::literal c2(["bd:serviceParam"]):::iri c12(["ids|title|type"]):::literal c6(["Generator"]):::literal subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c2 --"mwapi:endpoint"--> c4 c2 --"mwapi:api"--> c6 c2 --"mwapi:generator"--> c8 c2 --"mwapi:gcmtitle"--> c10 c2 --"mwapi:gcmprop"--> c12 c2 --"mwapi:gcmlimit"--> c14 v1 --"mwapi:apiOutputItem"--> c16 end v2 --"schema:about"--> v1 v2 --"schema:name"--> v3 v2 --"schema:isPartOf"--> c20 subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c2 --"mwapi:language"--> c23 end