query-ad0fb8d5ece7fc3de582f6b910f8451a

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: Mappa distribuzione tipografi e tipografe in Italia
#defaultView:Map
SELECT DISTINCT ?tipograf ?tipografLabel ?luogolavLabel ?coord ?layer WHERE {
?tipograf wdt:P31 wd:Q5; wdt:P937 ?luogolav ; wdt:P106 ?activity .
 values ?activity { wd:Q175151 wd:Q1229025 wd:Q998550 wd:Q2516866 wd:Q40881196 }
?luogolav wdt:P625 ?coord; wdt:P17 wd:Q38. 
OPTIONAL { ?tipograf wdt:P21 wd:Q6581097 . BIND("uomini" as ?layer) }
OPTIONAL { ?tipograf wdt:P21 wd:Q6581072 . BIND("donne" as ?layer) }

  SERVICE wikibase:label { bd:serviceParam wikibase:language "it, en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?activity") v4("?coord"):::projected v6("?layer"):::projected v2("?luogolav") v1("?tipograf"):::projected c9(["wd:Q6581097"]):::iri c10(["wd:Q6581072"]):::iri c14(["it, en"]):::literal c7(["wd:Q38"]):::iri c12(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri v1 --"wdt:P31"--> c2 v1 --"wdt:P937"--> v2 v1 --"wdt:P106"--> v4 bind0[/VALUES ?activity/] bind0-->v4 bind00(["wd:Q175151"]) bind00 --> bind0 bind01(["wd:Q1229025"]) bind01 --> bind0 bind02(["wd:Q998550"]) bind02 --> bind0 bind03(["wd:Q2516866"]) bind03 --> bind0 bind04(["wd:Q40881196"]) bind04 --> bind0 v2 --"wdt:P625"--> v4 v2 --"wdt:P17"--> c7 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P21".-> c9 bind1[/"'uomini'"/] bind1 --as--o v6 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P21".-> c10 bind2[/"'donne'"/] bind2 --as--o v6 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end