query-22b48a8ffacafb9c6fca7c4d36d3842c
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?istanzadiLabel ?prendeilnomeiLabel ?key ?sign ?coord WHERE {
?item wdt:P131 wd:Q490;
wdt:P31 ?istanzadi.
{ ?item wdt:P31 wd:Q79007. }
UNION
{ ?item wdt:P31 wd:Q174782. }
OPTIONAL { ?item wdt:P138 ?prendeilnome. }
OPTIONAL { ?item wdt:P1945 ?key. }
OPTIONAL { ?item wdt:P1766 ?sign. }
OPTIONAL { ?item wdt:P625 ?coord }
SERVICE wikibase:label { bd:serviceParam wikibase:language "it,[AUTO_LANGUAGE],en" .
?item rdfs:label ?itemLabel .
?istanzadi rdfs:label ?istanzadiLabel .
?prendeilnome rdfs:label ?prendeilnomeiLabel
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?coord"):::projected
v2("?istanzadi")
v8("?istanzadiLabel"):::projected
v1("?item"):::projected
v7("?itemLabel"):::projected
v4("?key"):::projected
v3("?prendeilnome")
v9("?prendeilnomeiLabel"):::projected
v5("?sign"):::projected
c5(["wd:Q174782"]):::iri
c4(["wd:Q79007"]):::iri
c13(["it,#91;AUTO_LANGUAGE#93;,en"]):::literal
c11(["bd:serviceParam"]):::iri
c2(["wd:Q490"]):::iri
v1 --"wdt:P131"--> c2
v1 --"wdt:P31"--> v2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> c5
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> c4
end
union0r <== or ==> union0l
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P138".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1945".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1766".-> v5
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P625".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
v1 --"rdfs:label"--> v7
v2 --"rdfs:label"--> v8
v3 --"rdfs:label"--> v9
end