query-b57f957caf5ec9638521d54d093f941c
Liste
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 prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?gastro ?gastroLabel ?gastroDescription ?address
WHERE
{
?gastro wdt:P31 wd:Q88985865.
?gastro p:P31/prov:wasDerivedFrom/pr:P248 wd:Q116817818.
?gastro p:P31/prov:wasDerivedFrom/pr:P792 "Rundgang 2".
?gastro wdt:P131 wd:Q2112.
OPTIONAL { ?gastro wdt:P6375 ?address. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?gastroLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?address"):::projected
v2("?gastro"):::projected
v1("?gastroLabel"):::projected
a1((" "))
a2((" "))
a3((" "))
a4((" "))
c2(["wd:Q88985865"]):::iri
c6(["wd:Q116817818"]):::iri
c13(["bd:serviceParam"]):::iri
c8(["Rundgang 2"]):::literal
c15(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c10(["wd:Q2112"]):::iri
v2 --"p:direct/P31"--> c2
v2 --"p:P31"--> a1
a1 --"prov:wasDerivedFrom"--> a2
a2 --"p:reference/P248"--> c6
v2 --"p:P31"--> a3
a3 --"prov:wasDerivedFrom"--> a4
a4 --"p:reference/P792"--> c8
v2 --"p:direct/P131"--> c10
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P6375".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end