query-3bc50cf86418938dbfb0a677d9428c79

rq turtle/ttl

Item qui n'a pas d'article sur la Wikipédia francophone mais qui en a ailleurs SELECT ?human ?humanLabel ?nombre WHERE { { SELECT ?human (COUNT(?sitelink) AS ?nombre) WHERE { VALUES ?professions { wd:Q55553850 wd:Q105882477 } ?human wdt:P31 wd:Q5; wdt:P39 ?professions. ?sitelink schema:about ?human. FILTER(NOT EXISTS { ?article schema:about ?human; schema:isPartOf https://fr.wikipedia.org/. }) } GROUP BY ?human ORDER BY DESC (?nombre) } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr". } } ORDER BY DESC (?nombre)

Use at

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#>
#Item qui n'a pas d'article sur la Wikipédia francophone mais qui en a ailleurs
SELECT ?human ?humanLabel ?nombre WHERE {
  {
    SELECT ?human (COUNT(?sitelink) AS ?nombre) WHERE {
      VALUES ?professions {
        wd:Q55553850
        wd:Q105882477
      }
      ?human wdt:P31 wd:Q5;
        wdt:P39 ?professions.
      ?sitelink schema:about ?human.
      FILTER(NOT EXISTS {
        ?article schema:about ?human;
          schema:isPartOf <https://fr.wikipedia.org/>.
      })
    }
    GROUP BY ?human
    ORDER BY DESC (?nombre)
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr". }
}
ORDER BY DESC (?nombre)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?article") v3("?human"):::projected v6("?nombre"):::projected v4("?professions") v5("?sitelink") c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,fr"]):::literal c5(["wd:Q5"]):::iri c3([https://fr.wikipedia.org/]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"schema:about"--> e0v2 e0v1 --"schema:isPartOf"--> e0c3 e0v1("?article"):::projected e0v2("?human"):::projected e0c3([https://fr.wikipedia.org/]):::iri end f0--EXISTS--> f0e0 f0 --> v2 f0 --> c1 f0 --> v3 f0 --> c2 f0 --> c3 v2 --"schema:about"--> v3 v2 --"schema:isPartOf"--> c3 bind1[/VALUES ?professions/] bind1-->v4 bind10(["wd:Q55553850"]) bind10 --> bind1 bind11(["wd:Q105882477"]) bind11 --> bind1 v3 --"wdt:P31"--> c5 v3 --"wdt:P39"--> v4 v5 --"schema:about"--> v3 bind3[/"count(?sitelink)"/] v5 --o bind3 bind3 --as--o v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end