query-e740dc41b356cd2952ef430e6165d870

rq turtle/ttl

Query deadline with a filter? I am trying to find which African women are missing an article on French wikipedia. At this time I have the following query : Wiki Loves Women writing contestHello, as part of the

Use at

PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX v: <http://www.wikidata.org/prop/statement/>
PREFIX q: <http://www.wikidata.org/prop/qualifier/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>

SELECT DISTINCT ?pers ?paysLabel ?persLabel (COUNT(distinct ?sitelink) as ?count) WHERE {
  ?pers wdt:P31 wd:Q5 .
  ?pers wdt:P21 wd:Q6581072 .
  ?pers wdt:P27 ?pays .
  ?pays wdt:P30 wd:Q15 .
  ?sitelink schema:about ?pers .
  filter not exists {
    ?pays wdt:P30 ?continent 
          filter( ?continent != wd:Q15) .
  }
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "fr,en" .
  }
} group by ?pers ?paysLabel ?persLabel
order by Desc(?count)
limit 10

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?continent") v6("?count") v3("?pays") v4("?pers"):::projected v5("?sitelink"):::projected c10(["bd:serviceParam"]):::iri c4(["wd:Q5"]):::iri c12(["fr,en"]):::literal c6(["wd:Q6581072"]):::iri c1(["wd:Q15"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0f0[["?continent != 'wd:Q15'"]] e0f0 --> e0v1 e0v2 --"p:direct/P30"--> e0v1 e0v1("?continent"):::projected e0v2("?pays"):::projected end f0--EXISTS--> f0e0 f0 --> v2 f0 --> v3 f0 --> c2 f1[["?continent != 'wd:Q15'"]] f1 --> v2 v3 --"p:direct/P30"--> v2 v4 --"p:direct/P31"--> c4 v4 --"p:direct/P21"--> c6 v4 --"p:direct/P27"--> v3 v3 --"p:direct/P30"--> c1 v5 --"schema:about"--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end bind3[/"count(?sitelink)"/] v5 --o bind3 bind3 --as--o v6