query-81ae58d0713ccfb342a818627e49f0c6
Liste des institutions, connues de Wikidata, qui conservent des archives en France avec le nombre d'éléments dans Wikidata référencés (archivé par) vers elles et qui disposent de moins de 5 éléments référencésRelevés (le but étant que la liste soit vide au 31 mars 2019) : 01.04.2019 : 69 institutions 29.03.2019 : 85 institutions 26.03.2019 : 142 institutions 24.03.2019 : 166 institutions 12.03.2019 : 165 institutions
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?institution ?institutionLabel (COUNT(distinct ?item) AS ?total) (GROUP_CONCAT(DISTINCT(?LieuLabel); separator=", ") as ?Lieux)
WHERE
{
?institution wdt:P31/wdt:P279* wd:Q166118;
wdt:P17 wd:Q142.
OPTIONAL {?institution wdt:P131 ?Lieu.
OPTIONAL {?Lieu rdfs:label ??LieuLabel. filter(lang(?LieuLabel)="fr") }
}
OPTIONAL {
?item wdt:P485 ?institution .
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr,en".}
}
group by ?institution ?institutionLabel
HAVING (?total < 5)
ORDER BY DESC (?total) ?institutionLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?Lieu")
v4("?LieuLabel"):::projected
v7("?Lieux")
v3("?institution"):::projected
v2("?institutionLabel"):::projected
v6("?item"):::projected
v7("?total")
a1((" "))
c14(["#91;AUTO_LANGUAGE#93;,fr,en"]):::literal
c4(["wd:Q166118"]):::iri
c12(["bd:serviceParam"]):::iri
c6(["wd:Q142"]):::iri
f0[["?total < '5^^xsd:integer'"]]
f0 --> v7
v3 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4
v3 --"wdt:P17"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P131".-> v5
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v5 -."rdfs:label".-> v4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
end
union0r <== or ==> union0l
end
end
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v6 -."wdt:P485".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end
bind3[/"count(?item)"/]
v6 --o bind3
bind3 --as--o v7
bind4[/"?LieuLabel"/]
v4 --o bind4
bind4 --as--o v7