query-22db4206f9baf79c1eccaabd5b82ccf1

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 ?titleWQ ("+Category:Nobel laureates in Chemistry" AS ?command) WHERE {

  SERVICE wikibase:mwapi {
     bd:serviceParam wikibase:api "Generator";
                     wikibase:endpoint "en.wikipedia.org";
                     mwapi:generator "categorymembers";
                     mwapi:gcmtitle "Category:Nobel laureates in Chemistry";
                     mwapi:gcmnamespace 0;
                     mwapi:gcmprop "title";
                     mwapi:gcmlimit "max".
     ?titleEn_ wikibase:apiOutput mwapi:title.
  }
  BIND(STRLANG(?titleEn_, "en") AS ?titleEn)
  ?articleEn schema:name ?titleEn;
             schema:isPartOf <https://en.wikipedia.org/>;
             schema:about ?item.
  ?articleWQ schema:about ?item;
             schema:isPartOf <https://en.wikiquote.org/>;
             schema:name ?titleWQ.
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?articleEn") v5("?articleWQ") v7("?command") v4("?item") v2("?titleEn") v1("?titleEn_") v6("?titleWQ"):::projected c23([https://en.wikiquote.org/]):::iri c16(["max"]):::literal c14(["title"]):::literal c8(["categorymembers"]):::literal c12(["0^^xsd:integer"]):::literal c6(["en.wikipedia.org"]):::literal c21([https://en.wikipedia.org/]):::iri c2(["bd:serviceParam"]):::iri c10(["Category:Nobel laureates in Chemistry"]):::literal c18(["mwapi:title"]):::iri c4(["Generator"]):::literal subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c2 --"mwapi:api"--> c4 c2 --"mwapi:endpoint"--> c6 c2 --"mwapi:generator"--> c8 c2 --"mwapi:gcmtitle"--> c10 c2 --"mwapi:gcmnamespace"--> c12 c2 --"mwapi:gcmprop"--> c14 c2 --"mwapi:gcmlimit"--> c16 v1 --"mwapi:apiOutput"--> c18 end bind0[/"STRLANG(?titleEn_,'en')"/] v1 --o bind0 bind0 --as--o v2 v3 --"schema:name"--> v2 v3 --"schema:isPartOf"--> c21 v3 --"schema:about"--> v4 v5 --"schema:about"--> v4 v5 --"schema:isPartOf"--> c23 v5 --"schema:name"--> v6 bind1[/"'+Category:Nobel laureates in Chemistry'"/] bind1 --as--o v7