Dreams:pattern: Difference between revisions

Jump to navigation Jump to search
→‎Pattern data: Change display of labels
(→‎Pattern data: Add mitigation)
(→‎Pattern data: Change display of labels)
Line 21: Line 21:
     OPTIONAL { ?pattern dreamst:P47 ?value_text }
     OPTIONAL { ?pattern dreamst:P47 ?value_text }
     BIND(COALESCE(?value, ?value_text) AS ?value)
     BIND(COALESCE(?value, ?value_text) AS ?value)
     BIND(CONCAT(COALESCE(?value_label, ""), ' ("', ?value_text, '")') AS ?valueLabel)
     BIND(CONCAT(?value_text, " (", COALESCE(?value_label, ""), ")") AS ?valueLabel)
   }
   }
   UNION
   UNION
Line 35: Line 35:
     OPTIONAL { ?pattern dreamst:P49 ?value_text }
     OPTIONAL { ?pattern dreamst:P49 ?value_text }
     BIND(COALESCE(?value, ?value_text) AS ?value)
     BIND(COALESCE(?value, ?value_text) AS ?value)
     BIND(CONCAT(COALESCE(?value_label, ""), ' ("', ?value_text, '")') AS ?valueLabel)
     BIND(CONCAT(?value_text, " (", COALESCE(?value_label, ""), ")") AS ?valueLabel)
   }
   }
   UNION
   UNION
Line 49: Line 49:
     OPTIONAL { ?pattern dreamst:P54 ?value_text }
     OPTIONAL { ?pattern dreamst:P54 ?value_text }
     BIND(COALESCE(?value, ?value_text) AS ?value)
     BIND(COALESCE(?value, ?value_text) AS ?value)
     BIND(CONCAT(COALESCE(?value_label, ""), ' ("', ?value_text, '")') AS ?valueLabel)
     BIND(CONCAT(?value_text, " (", COALESCE(?value_label, ""), ")") AS ?valueLabel)
   }
   }
   UNION
   UNION
Line 69: Line 69:
     OPTIONAL { ?pattern dreamst:P53 ?value_text }
     OPTIONAL { ?pattern dreamst:P53 ?value_text }
     BIND(COALESCE(?value, ?value_text) AS ?value)
     BIND(COALESCE(?value, ?value_text) AS ?value)
     BIND(CONCAT(COALESCE(?value_label, ""), ' ("', ?value_text, '")') AS ?valueLabel)
     BIND(CONCAT(?value_text, " (", COALESCE(?value_label, ""), ")") AS ?valueLabel)
   }
   }
   UNION
   UNION

Navigation menu