Dreams:report: Difference between revisions

→‎Patterns: Include link
(→‎Patterns: Changed significance display)
(→‎Patterns: Include link)
Line 111: Line 111:
   ?project_type ?project_typeLabel
   ?project_type ?project_typeLabel
   (CONCAT("#projecttype/", SUBSTR(STR(?project_type), 38)) AS ?project_typeUrl)   
   (CONCAT("#projecttype/", SUBSTR(STR(?project_type), 38)) AS ?project_typeUrl)   
  ?link


WHERE {
WHERE {
Line 124: Line 126:
   OPTIONAL { ?pattern dreamst:P21 / dreamst:P44 ?symbol . }
   OPTIONAL { ?pattern dreamst:P21 / dreamst:P44 ?symbol . }
   BIND(IF(BOUND(?symbol), ?symbol, "❓") AS ?significance)
   BIND(IF(BOUND(?symbol), ?symbol, "❓") AS ?significance)
  OPTIONAL {
    ?pattern dreamst:P20 ?report .
    ?report dreamst:P40 ?miljøportal .
    OPTIONAL { ?pattern dreamst:P46 ?page }
    BIND(CONCAT(STR(?miljøportal), IF(BOUND(?page), CONCAT(?page, " ↗"), " ↗")) AS ?value)
    BIND(CONCAT("https://daieproddreamspdfsto.blob.core.windows.net/files/", STR(?miljøportal),
                IF(BOUND(?page), CONCAT("#page=", ?page), "")) AS ?link)
  }


   SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". }
   SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". }