Dreams:pattern-index: Difference between revisions

(→‎Patterns: Removed quotation mark)
Line 15: Line 15:


   ?recipient ?recipientLabel ?recipientUrl
   ?recipient ?recipientLabel ?recipientUrl
  ?mitigation ?mitigationLabel ?mitigationUrl


   ?quote  
   ?quote  
Line 57: Line 59:
   BIND(COALESCE(?recipient, ?recipient_text) AS ?recipient)
   BIND(COALESCE(?recipient, ?recipient_text) AS ?recipient)
   BIND(CONCAT(COALESCE(?recipient_label, ""), ' (', ?recipient_text, ')') AS ?recipientLabel)
   BIND(CONCAT(COALESCE(?recipient_label, ""), ' (', ?recipient_text, ')') AS ?recipientLabel)
  OPTIONAL {
    ?pattern dreamst:P56 ?mitigation .
    ?mitigation rdfs:label ?mitigation_label .
    FILTER (LANG(?mitigation_label) = 'da')
    BIND(CONCAT("#effect/", SUBSTR(STR(?mitigation), 38)) AS ?mitigationUrl)
  }
  OPTIONAL { ?pattern dreamst:P53 ?mitigation_text }
  BIND(COALESCE(?mitigation, ?mitigation_text) AS ?mitigation)
  BIND(CONCAT(COALESCE(?mitigation_label, ""), ' (', ?mitigation_text, ')') AS ?mitigationLabel)


   OPTIONAL { ?pattern dreamst:P18 ?quote . }
   OPTIONAL { ?pattern dreamst:P18 ?quote . }