query-aaf0f707cc8c9ef69bbfb0aec304077f

rq turtle/ttl

Colorize stations by connecting lineHello! I'm trying to colorize dots in this map according to connecting line:

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#>
SELECT ?item ?coords ?itemLabel ?layer WHERE {
  ?item (wdt:P31/wdt:P279*) wd:Q928830.
  ?item wdt:P625 ?coords.
  ?item wdt:P361 wd:Q325309.
  ?item wdt:P81 ?connecting_line.
  BIND (?connecting_line AS ?layer).

SERVICE wikibase:label { bd:serviceParam wikibase:language "eu". }
}
ORDER BY ?itemLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?connecting_line") v3("?coords"):::projected v2("?item"):::projected v1("?itemLabel"):::projected v5("?layer"):::projected a1((" ")) c3(["wd:Q928830"]):::iri c11(["eu"]):::literal c6(["wd:Q325309"]):::iri c9(["bd:serviceParam"]):::iri v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v2 --"wdt:P625"--> v3 v2 --"wdt:P361"--> c6 v2 --"wdt:P81"--> v4 bind0[/"?connecting_line"/] v4 --o bind0 bind0 --as--o v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end