Dreams:pattern-index: Difference between revisions

Jump to navigation Jump to search
→‎Patterns: Add report PDF link
(→‎Patterns: Add report PDF link)
Line 22: Line 22:
   ?report ?reportLabel
   ?report ?reportLabel
   (CONCAT("#report/", SUBSTR(STR(?report), 38)) AS ?reportUrl)
   (CONCAT("#report/", SUBSTR(STR(?report), 38)) AS ?reportUrl)
  ?link ?linkUrl


WHERE {
WHERE {
Line 60: Line 62:
   OPTIONAL { ?pattern dreamst:P19 ?project_phase . }
   OPTIONAL { ?pattern dreamst:P19 ?project_phase . }
   OPTIONAL { ?pattern dreamst:P16 ?project_type . }
   OPTIONAL { ?pattern dreamst:P16 ?project_type . }
 
  OPTIONAL {
    ?pattern dreamst:P20 ?report .
    ?report dreamst:P40 ?miljøportal .
    OPTIONAL { ?pattern dreamst:P46 ?page }
    BIND(IF(BOUND(?page), CONCAT(?page, " ↗"), " ↗") AS ?link)
    BIND(CONCAT("https://daieproddreamspdfsto.blob.core.windows.net/files/", STR(?miljøportal),
                IF(BOUND(?page), CONCAT("#page=", ?page), "")) AS ?linkUrl)
  }
 
   SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". }
   SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". }
}
}}}
}}


== Reports ==
== Reports ==

Navigation menu