query-da886ddc6af209ba854fdf653812b93a
Manuscripts of the Quran
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 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 DISTINCT ?item ?itemLabel ?collectionLabel ?inventory ?url ?image WHERE {
{?item wdt:P1574 wd:Q428 } UNION { ?item wdt:P1574/wdt:P31 wd:Q234262 } # Exemplar of Quran or of an individual Sura
?item p:P217 [ps:P217 ?inventory; pq:P195 ?collection]
OPTIONAL {?item wdt:P973 ?url}
OPTIONAL {?item wdt:P18 ?image}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
} ORDER BY ?collectionLabel ?inventory
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?collection")
v1("?collectionLabel"):::projected
v6("?image"):::projected
v2("?inventory"):::projected
v3("?item"):::projected
v5("?url"):::projected
a1((" "))
a2((" "))
c4(["wd:Q234262"]):::iri
c11(["bd:serviceParam"]):::iri
c2(["wd:Q428"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v3 --"p:direct/P1574"--> a1
a1 --"p:direct/P31"--> c4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v3 --"p:direct/P1574"--> c2
end
union0r <== or ==> union0l
end
a2 --"p:statement/P217"--> v2
a2 --"p:qualifier/P195"--> v4
v3 --"p:P217"--> a2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P973".-> v5
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P18".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end