query-e9d3c3281e1fa2b0d573f18f6fb0b5db

rq turtle/ttl

Item qui n'a pas d'article sur la Wikipédia francophone mais qui en a ailleurs

SELECT ?item ?itemLabel ?nombre WHERE { { SELECT ?item (COUNT(?sitelink) AS ?nombre) WHERE { ?item wdt:P485 wd:Q856640. #archivépar la contemporaine. ?sitelink schema:about ?item . FILTER NOT EXISTS { ?article schema:about ?item . ?article schema:isPartOf https://fr.wikipedia.org/ . #Targeting Wikipedia language where subjects has no article. } } GROUP BY ?item 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 ?item ?itemLabel ?nombre WHERE {
{
  SELECT ?item (COUNT(?sitelink) AS ?nombre) WHERE { 
  ?item wdt:P485 wd:Q856640. #archivépar la contemporaine. 
  ?sitelink schema:about ?item .
  FILTER NOT EXISTS {
    ?article schema:about ?item .
    ?article schema:isPartOf <https://fr.wikipedia.org/> . #Targeting Wikipedia language where subjects has no article.
  }
  } GROUP BY ?item 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("?item"):::projected v5("?nombre"):::projected v4("?sitelink") c5(["wd:Q856640"]):::iri c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,fr"]):::literal c3([https://fr.wikipedia.org/]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"schema:about"--> e0v2 e0v1 --"schema:isPartOf"--> e0c3 e0v1("?article"):::projected e0v2("?item"):::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 v3 --"wdt:P485"--> c5 v4 --"schema:about"--> v3 bind2[/"count(?sitelink)"/] v4 --o bind2 bind2 --as--o v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end