query-a5714aca22978a589c970687238a3ee0
TODO
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?kitchen ?kitchenLabel ?denonym ?appliesToPart ?appliesToPartLabel
{
?kitchen wdt:P31 wd:Q1968435.
?kitchen wdt:P17 ?country.
?country p:P1549 ?denonymstat.
OPTIONAL {?denonymstat ps:P1549 ?denonym.
filter(lang(?denonym)="he")
OPTIONAL {?denonymstat pq:P518 ?appliesToPart .}
}
FILTER NOT EXISTS {?kitchen rdfs:label ?kitchenLabel filter (lang(?kitchenLabel) = "he")} .
SERVICE wikibase:label { bd:serviceParam wikibase:language "he,[AUTO_LANGUAGE]". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?appliesToPart"):::projected
v4("?country")
v3("?denonym"):::projected
v5("?denonymstat")
v2("?kitchen"):::projected
v1("?kitchenLabel"):::projected
c12(["he,#91;AUTO_LANGUAGE#93;"]):::literal
c10(["bd:serviceParam"]):::iri
c4(["wd:Q1968435"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0f0[["?kitchenLabel = 'he'"]]
e0f0 --> e0v1
e0v2 --"rdfs:label"--> e0v1
e0v2("?kitchen"):::projected
e0v1("?kitchenLabel"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> v2
f0 --> c2
f1[["?kitchenLabel = 'he'"]]
f1 --> v1
v2 --"rdfs:label"--> v1
v2 --"p:direct/P31"--> c4
v2 --"p:direct/P17"--> v4
v4 --"p:P1549"--> v5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v5 -."p:statement/P1549".-> v3
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v5 -."p:qualifier/P518".-> v6
end
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end