Dreams:index

From DREAMS
Jump to navigation Jump to search

Elementer

PREFIX dreams: <https://dreams.wikibase.cloud/entity/>
PREFIX dreamst: <https://dreams.wikibase.cloud/prop/direct/>

SELECT 
  ?type ?typeLabel
  ?elementer ?elementerLabel ?elementerUrl
WHERE {
   {
     BIND(dreams:Q4 AS ?type)
     ?elementer dreamst:P2 ?type .
     BIND(CONCAT("#report/", SUBSTR(STR(?elementer), 38)) AS ?elementerUrl)
   }
   UNION
   {
     BIND(dreams:Q91 AS ?type)
     ?elementer dreamst:P10* ?type .
     BIND(CONCAT("#projecttype/", SUBSTR(STR(?elementer), 38)) AS ?elementerUrl)
   }
   UNION
   {
     BIND(dreams:Q263 AS ?type)
     ?elementer dreamst:P2 ?type .
     BIND(CONCAT("#pattern/", SUBSTR(STR(?elementer), 38)) AS ?elementerUrl)
   }
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],da,en". }
}