Dreams:pattern: Difference between revisions

From DREAMS
Jump to navigation Jump to search
No edit summary
Line 8: Line 8:


SELECT  
SELECT  
  ?description
   ?value ?valueLabel ?valueUrl
   ?value ?valueLabel ?valueUrl
WHERE {
WHERE {
Line 13: Line 14:
   {
   {
     BIND(1 AS ?order)
     BIND(1 AS ?order)
    BIND("Subject" AS ?description)
     ?pattern dreamst:P33 ?value .
     ?pattern dreamst:P33 ?value .
     BIND(CONCAT("#effect/", SUBSTR(STR(?value), 38)) AS ?valueUrl)
     BIND(CONCAT("#effect/", SUBSTR(STR(?value), 38)) AS ?valueUrl)

Revision as of 14:24, 11 August 2022

Data

PREFIX target: <https://dreams.wikibase.cloud/entity/Q196>
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 
  ?description
  ?value ?valueLabel ?valueUrl
WHERE {
  BIND(target: AS ?pattern)
  {
    BIND(1 AS ?order)
    BIND("Subject" AS ?description)
    ?pattern dreamst:P33 ?value .
    BIND(CONCAT("#effect/", SUBSTR(STR(?value), 38)) AS ?valueUrl)
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". }
}
ORDER BY ?order