query-9c9217112d12fcda7cb5b20a083c41a8
Propertiesinstance of (P31)subclass of (P279)significant person (P3342)collection (P195)
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 bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?thing ?thingLabel ?ownerLabel ?collectionLabel
WHERE { ?thing (wdt:P31 / wdt:P279) wd:Q223557 .
?thing wdt:P3342 ?owner #Person associated with it
OPTIONAL { ?thing wdt:P195 ?collection. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?collection")
v2("?owner")
v1("?thing"):::projected
a1((" "))
c3(["wd:Q223557"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P3342"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P195".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end