query-8d8a258116dce82361be15a2a37f6730
Filter for labels with specific suffix and to get the labels: (Q812285)Bavarian State Painting Collections in the (Q3305213)painting I have this query to get all the
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 ?item ?itemLabel WHERE {
?item wdt:P195 wd:Q812285 .
?item wdt:P31 wd:Q3305213 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "de" } .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
c8(["de"]):::literal
c4(["wd:Q3305213"]):::iri
c6(["bd:serviceParam"]):::iri
c2(["wd:Q812285"]):::iri
v1 --"wdt:P195"--> c2
v1 --"wdt:P31"--> c4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end