Dreams:pattern: Difference between revisions

→‎Pattern data: Object class/text
(→‎Pattern data: Subject class/text)
(→‎Pattern data: Object class/text)
Line 24: Line 24:
   UNION
   UNION
   {
   {
     BIND(4 AS ?order)
     BIND(2 AS ?order)
     BIND("Object (class)" AS ?description)
     BIND("Object (affected)" AS ?description)
     ?pattern dreamst:P34 ?value .
     OPTIONAL {
      ?pattern dreamst:P34 ?value .
      ?value rdfs:label ?value_label .
      FILTER (LANG(?value_label) = 'da')
    }
    OPTIONAL { ?pattern dreamst:P49 ?value_text }
    BIND(CONCAT(COALESCE(?value_label, ""), ' ("', ?value_text, '")') AS ?valueLabel)
     BIND(CONCAT("#effect/", SUBSTR(STR(?value), 38)) AS ?valueUrl)
     BIND(CONCAT("#effect/", SUBSTR(STR(?value), 38)) AS ?valueUrl)
   }
   }