Dreams:effect: Difference between revisions

From DREAMS
Jump to navigation Jump to search
No edit summary
Line 31: Line 31:
     BIND(CONCAT("#value/", ?q) AS ?valueUrl)
     BIND(CONCAT("#value/", ?q) AS ?valueUrl)
   }
   }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". }
}}
}}

Revision as of 15:05, 11 August 2022

Data

PREFIX target: <https://dreams.wikibase.cloud/entity/Q12>
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 DISTINCT ?description ?value ?valueLabel ?valueUrl
WHERE {
  BIND(target: AS ?effect)
  {
    BIND(1 AS ?order)
    BIND("Effect" AS ?description)
    ?effect dreamst:P1 ?value .
  }
  UNION
  {
    BIND(5 AS ?order)
    BIND("Superconcept" AS ?description)
    target: dreamst:P10 ?value .
    BIND(SUBSTR(STR(?value), 38) AS ?q) 
    BIND(CONCAT("#value/", ?q) AS ?valueUrl)
  }
  UNION
  {
    BIND(6 AS ?order)
    BIND("Subconcepts" AS ?description)
    target: ^dreamst:P10 ?value .
    BIND(SUBSTR(STR(?value), 38) AS ?q) 
    BIND(CONCAT("#value/", ?q) AS ?valueUrl)
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". }