query-a579ec2774155dad75cb68487a6849bd
Firmengraphen
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Graph
SELECT distinct ?item ?itemLabel ?street ?other ?otherLabel ?otherstreet
WHERE
{
?item wdt:P31 wd:Q4830453.
?item wdt:P159 wd:Q1731.
?item wdt:P452 wd:Q907703.
?item p:P159 [ pq:P625 ?coord; pq:P6375 ?street;].
?other wdt:P155 ?item .
?other p:P159 [ pq:P625 ?othercoord; pq:P6375 ?otherstreet;].
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en,[AUTO_LANGUAGE]" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?coord")
v1("?item"):::projected
v4("?other"):::projected
v5("?othercoord")
v6("?otherstreet"):::projected
v3("?street"):::projected
a1((" "))
a2((" "))
c2(["wd:Q4830453"]):::iri
c6(["wd:Q907703"]):::iri
c12(["bd:serviceParam"]):::iri
c4(["wd:Q1731"]):::iri
c14(["de,en,#91;AUTO_LANGUAGE#93;"]):::literal
v1 --"p:direct/P31"--> c2
v1 --"p:direct/P159"--> c4
v1 --"p:direct/P452"--> c6
a1 --"p:qualifier/P625"--> v2
a1 --"p:qualifier/P6375"--> v3
v1 --"p:P159"--> a1
v4 --"p:direct/P155"--> v1
a2 --"p:qualifier/P625"--> v5
a2 --"p:qualifier/P6375"--> v6
v4 --"p:P159"--> a2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end