query-24c8fa2cdf889466b3490281ec5f6db7
title:Objects in the Khalili Collections with an ArtUK ID but no indication of which collection SELECT ?item ?itemLabel ?desc (URI(CONCAT("https://artuk.org/discover/artworks/",?id)) as ?artuk) WHERE { ?item wdt:P1679 ?id. ?item schema:description ?desc FILTER(CONTAINS(LCASE(?desc), "khalili")) MINUS{?item wdt:P195/wdt:P361 wd:Q63160499} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } }
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:Objects in the Khalili Collections with an ArtUK ID but no indication of which collection
SELECT ?item ?itemLabel ?desc (URI(CONCAT("https://artuk.org/discover/artworks/",?id)) as ?artuk) WHERE {
?item wdt:P1679 ?id.
?item schema:description ?desc FILTER(CONTAINS(LCASE(?desc), "khalili"))
MINUS{?item wdt:P195/wdt:P361 wd:Q63160499}
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;
v4("?artuk")
v1("?desc"):::projected
v3("?id"):::projected
v2("?item"):::projected
a1((" "))
c8(["bd:serviceParam"]):::iri
c6(["wd:Q63160499"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["contains(lower-case(?desc),'khalili')"]]
f0 --> v1
v2 --"wdt:P1679"--> v3
v2 --"schema:description"--> v1
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P195"--> a1
a1 --"wdt:P361"--> c6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind2[/"concat('https://artuk.org/discover/artworks/',?id)"/]
v3 --o bind2
bind2 --as--o v4