query-a99dea6f6233a018162b1c1cd6ed29cf
Elenco elementi soggetti all'import
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 ps: <http://www.wikidata.org/prop/statement/>
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#>
#Tutti gli elementi interessati dall'import dal Sistema Cultura
#defaultView:Map
SELECT DISTINCT ?i ?iLabel ?iDescription ?coord ?inst ?instLabel
WHERE {
?i p:P17 [ps:P17 ?c ; prov:wasDerivedFrom [pr:P248 wd:Q80199870] ] .
?i wdt:P131 ?inst .
?inst wdt:P625 ?instcoord .
OPTIONAL { ?i wdt:P625 ?icoord . }
BIND(IF(BOUND(?icoord),?icoord,?instcoord) AS ?coord)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?c")
v6("?coord"):::projected
v2("?i"):::projected
v5("?icoord")
v3("?inst"):::projected
v4("?instcoord")
a1((" "))
a2((" "))
c11(["#91;AUTO_LANGUAGE#93;,it,en"]):::literal
c9(["bd:serviceParam"]):::iri
c3(["wd:Q80199870"]):::iri
a1 --"p:statement/P17"--> v1
a2 --"p:reference/P248"--> c3
a1 --"prov:wasDerivedFrom"--> a2
v2 --"p:P17"--> a1
v2 --"p:direct/P131"--> v3
v3 --"p:direct/P625"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P625".-> v5
end
bind0[/"if(bound(?icoord),?icoord,?instcoord)"/]
v5 --o bind0
v4 --o bind0
bind0 --as--o v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end