query-9ece6690f5073193e5c1368902665ac6
The most notable manuscripts available via IIIF, with IIIF links
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?q ?qLabel (GROUP_CONCAT(DISTINCT ?collectionLabel; separator="; ") AS ?where)
(URI(CONCAT('https://tools.wmflabs.org/mirador/?manifest=', STR(?iiif))) AS ?iiiflink)
WHERE {
?q (wdt:P31/wdt:P279*) wd:Q87167; wdt:P6108 ?iiif; wikibase:sitelinks ?sitecount FILTER(?sitecount > 0)
?q p:P195 ?s. ?s ps:P195 ?collection . MINUS {?s pq:P582 []}.
MINUS {?s ps:P195 wd:Q1322278 }
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
?q rdfs:label ?qLabel. ?collection rdfs:label ?collectionLabel
}
}
GROUP BY ?q ?qLabel ?iiif ?sitecount
ORDER BY DESC(?sitecount)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?collection")
v7("?collectionLabel"):::projected
v3("?iiif"):::projected
v9("?iiiflink")
v2("?q"):::projected
v6("?qLabel"):::projected
v4("?s")
v1("?sitecount")
v8("?where")
a2((" "))
a1((" "))
c10(["wd:Q1322278"]):::iri
c4(["wd:Q87167"]):::iri
c12(["bd:serviceParam"]):::iri
c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?sitecount > '0^^xsd:integer'"]]
f0 --> v1
v2 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c4
v2 --"p:direct/P6108"--> v3
v2 --"wikibase:sitelinks"--> v1
v2 --"p:P195"--> v4
v4 --"p:statement/P195"--> v5
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v4 --"p:qualifier/P582"--> a2
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v4 --"p:statement/P195"--> c10
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
v2 --"rdfs:label"--> v6
v5 --"rdfs:label"--> v7
end
bind4[/"?collectionLabel"/]
v7 --o bind4
bind4 --as--o v8
bind5[/"concat('https://tools.wmflabs.org/mirador/?manifest=',str(?iiif))"/]
v3 --o bind5
bind5 --as--o v9