Dreams:effect-index

From DREAMS
Jump to navigation Jump to search

Effekter

PREFIX target: <https://dreams.wikibase.cloud/entity/Q153>
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
  ?mønstre

  ?effekt ?effektLabel
  (CONCAT("#effect/", SUBSTR(STR(?effekt), 38)) AS ?effektUrl)  

  ?eksempel_mønster ?eksempel_mønsterLabel
  (CONCAT("#pattern/", SUBSTR(STR(?eksempel_mønster), 38)) AS ?eksempel_mønsterUrl)  
 
WITH {
  SELECT 
    (COUNT(?pattern) AS ?mønstre)
    (SAMPLE(?pattern) AS ?eksempel_mønster)
    ?effekt
  WHERE {
    ?pattern dreamst:P2 dreams:Q263 .
    ?pattern dreamst:P33