16,603
edits
Line 73: | Line 73: | ||
PREFIX dreamst: <http://dreams.wiki.opencura.com/prop/direct/> | PREFIX dreamst: <http://dreams.wiki.opencura.com/prop/direct/> | ||
SELECT ?concept2 ?concept2Label | SELECT ?concept1 ?concept1Label ?rgb ?concept2 ?concept2Label { | ||
?concept1 dreamst:P14 ?concept2 . | |||
{ BIND (dreams:Q106 AS ?concept2) } | |||
UNION | |||
{ | |||
?concept1 dreamst:P14+ dreams:Q106 . | |||
? | } | ||
OPTIONAL { | |||
?concept1 dreamst:P19 ?project_phase1 . | |||
BIND( IF(?project_phase1 = dreams:Q97, "3182BD", "E6550D") AS ?rgb) | |||
} | |||
SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". } | SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". } | ||
} | } | ||
</pre> | </pre> |