query-3f5b1b9a1be6990a84bfc66572b62dca
Use differents colorsHi, really need love...) this pageI want to have the ?en in one color and ?fr in another in this query. Can someone help me ? (
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
#defaultView:Map
select ?item ?coord ?en ?fr where {?item wdt:P17 wd:Q16 ; wdt:P131* wd:Q1965 ; wdt:P625 ?coord . {{?en schema:about ?item ; schema:isPartOf <https://en.wikipedia.org/> .} UNION {?fr schema:about ?item ; schema:isPartOf <https://fr.wikipedia.org/> .}}}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?coord"):::projected
v3("?en"):::projected
v4("?fr"):::projected
v1("?item"):::projected
c2(["wd:Q16"]):::iri
c8([https://en.wikipedia.org/]):::iri
c4(["wd:Q1965"]):::iri
c9([https://fr.wikipedia.org/]):::iri
v1 --"wdt:P17"--> c2
v1 --"wdt:P131"--> c4
v1 --"wdt:P625"--> v2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v4 --"schema:about"--> v1
v4 --"schema:isPartOf"--> c9
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v3 --"schema:about"--> v1
v3 --"schema:isPartOf"--> c8
end
union0r <== or ==> union0l
end