Dreams:report-index: Difference between revisions

From DREAMS
Jump to navigation Jump to search
(Created page with "[https://dreams.wikibase.cloud/query/#PREFIX%20dreams%3A%20%3Chttps%3A%2F%2Fdreams.wikibase.cloud%2Fentity%2F%3E%0APREFIX%20dreamst%3A%20%3Chttps%3A%2F%2Fdreams.wikibase.cloud%2Fprop%2Fdirect%2F%3E%0A%0ASELECT%20%0A%20%20%3Fpublication_datetime%20%0A%20%20%3Freport%0A%20%20%3Ftitle%0AWHERE%20%7B%0A%20%20%3Freport%20dreamst%3AP2%20%2F%20dreamst%3AP10%2a%20dreams%3AQ8%20.%0A%20%20OPTIONAL%20%7B%0A%20%20%20%20%3Freport%20dreamst%3AP1%20%3Ftitle%20.%0A%20%20%7D%0A%20%20OPTIO...")
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
[https://dreams.wikibase.cloud/query/#PREFIX%20dreams%3A%20%3Chttps%3A%2F%2Fdreams.wikibase.cloud%2Fentity%2F%3E%0APREFIX%20dreamst%3A%20%3Chttps%3A%2F%2Fdreams.wikibase.cloud%2Fprop%2Fdirect%2F%3E%0A%0ASELECT%20%0A%20%20%3Fpublication_datetime%20%0A%20%20%3Freport%0A%20%20%3Ftitle%0AWHERE%20%7B%0A%20%20%3Freport%20dreamst%3AP2%20%2F%20dreamst%3AP10%2a%20dreams%3AQ8%20.%0A%20%20OPTIONAL%20%7B%0A%20%20%20%20%3Freport%20dreamst%3AP1%20%3Ftitle%20.%0A%20%20%7D%0A%20%20OPTIONAL%20%7B%0A%20%20%20%20%3Freport%20dreamst%3AP6%20%3Fpublication_datetime%20.%20%0A%20%20%7D%0A%7D%0AORDER%20BY%20%3Fpublication_datetime%20]
== Rapporter ==
 
{{SPARQL | query=
 
PREFIX target: <https://dreams.wikibase.cloud/entity/Q158>
{{SPARQL | query =
PREFIX dreams: <https://dreams.wikibase.cloud/entity/>
PREFIX dreams: <https://dreams.wikibase.cloud/entity/>
PREFIX dreamst: <https://dreams.wikibase.cloud/prop/direct/>
PREFIX dreamst: <https://dreams.wikibase.cloud/prop/direct/>
PREFIX dreamsp: <https://dreams.wikibase.cloud/prop/>
PREFIX dreamspsv: <https://dreams.wikibase.cloud/prop/statement/value/>


SELECT  
SELECT  
   ?publication_datetime
   ?udgivelsesdato
   ?report
   ?titel ?titelUrl
   ?title
   ?miljøportal ?miljøportalUrl
WHERE {
WHERE {
   ?report dreamst:P2 / dreamst:P10* dreams:Q8 .
   ?report dreamst:P2 / dreamst:P10* dreams:Q8 .
   OPTIONAL {
   OPTIONAL {
     ?report dreamst:P1 ?title .
     ?report dreamst:P1 ?titel .
    BIND(CONCAT("#report/", SUBSTR(STR(?report), 38)) AS ?titelUrl)
  }
  OPTIONAL {
    ?report dreamsp:P6 / dreamspsv:P6 ?udgivelsesdato_value .
    ?udgivelsesdato_value wikibase:timePrecision ?time_precision ;
                            wikibase:timeValue ?udgivelsesdato_ .
    BIND(IF(?time_precision = 9, YEAR(?udgivelsesdato_), xsd:date(?udgivelsesdato_)) AS ?udgivelsesdato)
   }
   }
   OPTIONAL {
   OPTIONAL {
     ?report dreamst:P6 ?publication_datetime .  
     ?report dreamst:P40 ?miljøportal .
    BIND(IRI(CONCAT("https://daieproddreamspdfsto.blob.core.windows.net/files/", ?miljøportal)) AS ?miljøportalUrl)
   }
   }
}
}
ORDER BY ?publication_datetime
ORDER BY DESC(?udgivelsesdato)
}}
}}

Latest revision as of 14:10, 9 December 2022

Rapporter

PREFIX target: <https://dreams.wikibase.cloud/entity/Q158>
PREFIX dreams: <https://dreams.wikibase.cloud/entity/>
PREFIX dreamst: <https://dreams.wikibase.cloud/prop/direct/>
PREFIX dreamsp: <https://dreams.wikibase.cloud/prop/>
PREFIX dreamspsv: <https://dreams.wikibase.cloud/prop/statement/value/> 

SELECT 
  ?udgivelsesdato 
  ?titel ?titelUrl
  ?miljøportal ?miljøportalUrl
WHERE {
  ?report dreamst:P2 / dreamst:P10* dreams:Q8 .
  OPTIONAL {
    ?report dreamst:P1 ?titel .
    BIND(CONCAT("#report/", SUBSTR(STR(?report), 38)) AS ?titelUrl)
  }
  OPTIONAL {
    ?report dreamsp:P6 / dreamspsv:P6 ?udgivelsesdato_value .
    ?udgivelsesdato_value wikibase:timePrecision ?time_precision ;
                            wikibase:timeValue ?udgivelsesdato_ .
    BIND(IF(?time_precision = 9, YEAR(?udgivelsesdato_), xsd:date(?udgivelsesdato_)) AS ?udgivelsesdato)
  }
  OPTIONAL {
    ?report dreamst:P40 ?miljøportal .
    BIND(IRI(CONCAT("https://daieproddreamspdfsto.blob.core.windows.net/files/", ?miljøportal)) AS ?miljøportalUrl)
  }
}
ORDER BY DESC(?udgivelsesdato)