query-45a9f01a797ca895864814f229d1ee17
Imatges dels quadres d'un autor en un museu
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#>
#Paintings by "an author" in "a collection"
#defaultView:ImageGrid
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?image ?collection ?collectionLabel ?Inv WHERE {
?item wdt:P31 wd:Q3305213.
?item wdt:P170 ?author.
?item (wdt:P195/wdt:P361*) ?collection.
OPTIONAL { ?item wdt:P18 ?image. }
OPTIONAL { ?item wdt:P217 ?Inv. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
#
#
FILTER(?collection = wd:Q160236) # select museum #
FILTER(?author = wd:Q106851) # select author #
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?Inv"):::projected
v1("?author")
v2("?collection"):::projected
v4("?image"):::projected
v3("?item"):::projected
a1((" "))
c4(["wd:Q3305213"]):::iri
c11(["bd:serviceParam"]):::iri
c13(["#91;AUTO_LANGUAGE#93;"]):::literal
f0[["?author = 'wd:Q106851'"]]
f0 --> v1
f1[["?collection = 'wd:Q160236'"]]
f1 --> v2
v3 --"wdt:P31"--> c4
v3 --"wdt:P170"--> v1
v3 --"wdt:P195"--> a1
a1 --"wdt:P361"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P18".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P217".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end