Dreams:recipient: Difference between revisions

From DREAMS
Jump to navigation Jump to search
(Created page with "== Recipientdata == {{SPARQL | q = 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/værdi/> SELECT DISTINCT (?description AS ?beskrivelse) ?værdi ?værdiLabel ?værdiUrl WHERE { BIND(target: AS ?effect) { BIND(1 AS ?ord...")
 
 
Line 1: Line 1:
== Recipientdata ==
== Recipientdata ==
{{SPARQL | q =  
{{SPARQL | query =  
PREFIX target: <https://dreams.wikibase.cloud/entity/Q12>
PREFIX target: <https://dreams.wikibase.cloud/entity/Q12>
PREFIX dreams: <https://dreams.wikibase.cloud/entity/>
PREFIX dreams: <https://dreams.wikibase.cloud/entity/>

Latest revision as of 15:04, 7 February 2023

Recipientdata

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/værdi/> 

SELECT DISTINCT (?description AS ?beskrivelse) ?værdi ?værdiLabel ?værdiUrl
WHERE {
  BIND(target: AS ?effect)
  {
    BIND(1 AS ?order)
    BIND("Recipient" AS ?description)
    BIND(target: AS ?værdi) .
  }
  UNION
  {
    BIND(5 AS ?order)
    BIND("Overbegreb" AS ?description)
    target: dreamst:P10 ?værdi .
    BIND(SUBSTR(STR(?værdi), 38) AS ?q) 
    BIND(CONCAT("#recipient/", ?q) AS ?værdiUrl)
  }
  UNION
  {
    BIND(6 AS ?order)
    BIND("Underbegreb" AS ?description)
    target: ^dreamst:P10 ?værdi .
    BIND(SUBSTR(STR(?værdi), 38) AS ?q) 
    BIND(CONCAT("#recipient/", ?q) AS ?værdiUrl)
  }
  UNION
  {
    BIND(10 AS ?order)
    BIND("SDG" AS ?description)
    target:  dreamst:P10* / dreamst:P10* / dreamst:P42 ?værdi .
    BIND(CONCAT("#sdg/", SUBSTR(STR(?værdi), 38)) AS ?værdiUrl)
  }
  UNION
  {
    BIND(11 AS ?order)
    BIND("arter.dk" AS ?description)
    target: dreamst:P45 ?værdi_ .
    BIND(CONCAT(?værdi_, " ↗") AS ?værdi)
    BIND(CONCAT("https://arter.dk/taxa/taxon/details/", ?værdi_) AS ?værdiUrl)
  }
  UNION
  {
    BIND(20 AS ?order)
    BIND("Scholia" AS ?description)
    target: dreamst:P3 ?værdi_ .
    BIND(CONCAT(?værdi_, " ↗") AS ?værdi)
    BIND(CONCAT("https://scholia.toolforge.org/topic/", ?værdi_) AS ?værdiUrl)
  }
  
  SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". }
}
ORDER BY ?order