16,603
edits
(Edited recipient) |
(→Pattern data: Add mitigation) |
||
Line 1: | Line 1: | ||
== Pattern data == | == Pattern data == | ||
{{SPARQL | query= | {{SPARQL | query= | ||
PREFIX target: <https://dreams.wikibase.cloud/entity/ | PREFIX target: <https://dreams.wikibase.cloud/entity/Q922> | ||
PREFIX dreams: <https://dreams.wikibase.cloud/entity/> | PREFIX dreams: <https://dreams.wikibase.cloud/entity/> | ||
PREFIX dreamst: <https://dreams.wikibase.cloud/prop/direct/> | PREFIX dreamst: <https://dreams.wikibase.cloud/prop/direct/> | ||
Line 56: | Line 56: | ||
BIND("Significance" AS ?description) | BIND("Significance" AS ?description) | ||
?pattern dreamst:P21 ?value . | ?pattern dreamst:P21 ?value . | ||
} | |||
UNION | |||
{ | |||
BIND(12 AS ?order) | |||
BIND("Mitigation" AS ?description) | |||
OPTIONAL { | |||
?pattern dreamst:P56 ?value . | |||
?value rdfs:label ?value_label . | |||
FILTER (LANG(?value_label) = 'da') | |||
BIND(CONCAT("#effect/", SUBSTR(STR(?value), 38)) AS ?valueUrl) | |||
} | |||
OPTIONAL { ?pattern dreamst:P53 ?value_text } | |||
BIND(COALESCE(?value, ?value_text) AS ?value) | |||
BIND(CONCAT(COALESCE(?value_label, ""), ' ("', ?value_text, '")') AS ?valueLabel) | |||
} | } | ||
UNION | UNION |