Dreams:sdg

From DREAMS
Jump to navigation Jump to search
PREFIX target: <https://dreams.wikibase.cloud/entity/Q36>
PREFIX dreams: <https://dreams.wikibase.cloud/entity/>
PREFIX dreamst: <https://dreams.wikibase.cloud/prop/direct/>

SELECT DISTINCT
  ?beskrivelse
  ?værdi ?værdiLabel ?værdiUrl
WHERE {
  BIND(target: AS ?work)
  {
    BIND(1 AS ?order)
    BIND("Name" AS ?beskrivelse)
    BIND(target: AS ?værdi)
  }
  UNION
  {
    BIND(21 AS ?order)
    BIND("Scholia" AS ?beskrivelse)
    ?work dreamst:P3 ?værdi_ .
    BIND(CONCAT(STR(?værdi_), " ↗") AS ?værdi)
    BIND(CONCAT("https://scholia.toolforge.org/work/", STR(?værdi_)) AS ?værdiUrl)
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],da,en". }
} 
ORDER BY ?order


Effekter

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

SELECT DISTINCT
  (COUNT(DISTINCT ?mønster) AS ?mønstre)
  ?effekt ?effektLabel 
  (CONCAT("#effect/", SUBSTR(STR(?effekt), 38)) AS ?effektUrl)
  ?effektDescription
WHERE {
  ?effekt dreamst:P10* / dreamst:P42 / dreamst:P10* target: .
  OPTIONAL { ?mønster dreamst:P33