query-10db5b2ddb67f6d1802c96f0cc8b1921

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 ?name ?nameLabel ?institution?institutionLabel ?P971 ?P971Label ?P4224 where
{

  SERVICE wikibase:mwapi {
     bd:serviceParam wikibase:endpoint "fr.wikipedia.org";
                     wikibase:api "Generator";
                     mwapi:generator "categorymembers";
                     mwapi:gcmtitle "Catégorie:Concept aristotélicien" ;         # specifically here
                     mwapi:gcmprop "ids|title|type";
                     mwapi:gcmlimit "max".
     # out
     ?name wikibase:apiOutput mwapi:title.               # ewikipedia article / category name
     ?item wikibase:apiOutputItem mwapi:item.            # wikidata QId for the person's item
    }
  FILTER NOT EXISTS  { ?article schema:about ?item ;
  schema:isPartOf <https://en.wikipedia.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("?article") v2("?item"):::projected v3("?name"):::projected c21(["mwapi:item"]):::iri c17(["max"]):::literal c11(["categorymembers"]):::literal c3([https://en.wikipedia.org/]):::iri c7(["fr.wikipedia.org"]):::literal c13(["Catégorie:Concept aristotélicien"]):::literal c5(["bd:serviceParam"]):::iri c24(["#91;AUTO_LANGUAGE#93;,en"]):::literal c19(["mwapi:title"]):::iri c15(["ids|title|type"]):::literal c9(["Generator"]):::literal f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"schema:about"--> e0v2 e0v1 --"schema:isPartOf"--> e0c3 e0v1("?article"):::projected e0v2("?item"):::projected e0c3([https://en.wikipedia.org/]):::iri end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> v2 f0 --> c2 f0 --> c3 v1 --"schema:about"--> v2 v1 --"schema:isPartOf"--> c3 subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c5 --"mwapi:endpoint"--> c7 c5 --"mwapi:api"--> c9 c5 --"mwapi:generator"--> c11 c5 --"mwapi:gcmtitle"--> c13 c5 --"mwapi:gcmprop"--> c15 c5 --"mwapi:gcmlimit"--> c17 v3 --"mwapi:apiOutput"--> c19 v2 --"mwapi:apiOutputItem"--> c21 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c5 --"mwapi:language"--> c24 end