query-5ee5a8b58d6a293fb22da23d22e40ac8
title:Manuscripts with no collection property
SELECT DISTINCT ?q ?qLabel ?qDescription ?enwp
WHERE {
?q (wdt:P31/wdt:P279*) wd:Q87167.
MINUS { ?q wdt:P195 []}
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
}
OPTIONAL{?enwp schema:about ?q ; schema:isPartOf https://en.wikipedia.org/ }
}
ORDER BY DESC(?qLabel)
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:Manuscripts with no collection property
SELECT DISTINCT ?q ?qLabel ?qDescription ?enwp
WHERE {
?q (wdt:P31/wdt:P279*) wd:Q87167.
MINUS { ?q wdt:P195 []}
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
}
OPTIONAL{?enwp schema:about ?q ; schema:isPartOf <https://en.wikipedia.org/> }
}
ORDER BY DESC(?qLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?enwp"):::projected
v2("?q"):::projected
v1("?qLabel"):::projected
a2((" "))
a1((" "))
c11([https://en.wikipedia.org/]):::iri
c3(["wd:Q87167"]):::iri
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P195"--> a2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."schema:about".-> v2
v3 --"schema:isPartOf"--> c11
end