Dreams:pattern: Difference between revisions

no edit summary
(Fix for report)
No edit summary
Line 1: Line 1:
== Data ==
== Pattern data ==
{{SPARQL | query=  
{{SPARQL | query=  
PREFIX target: <https://dreams.wikibase.cloud/entity/Q196>
PREFIX target: <https://dreams.wikibase.cloud/entity/Q196>
PREFIX dreams: <https://dreams.wikibase.cloud/entity/>
PREFIX dreams: <https://dreams.wikibase.cloud/entity/>
PREFIX dreamst: <https://dreams.wikibase.cloud/prop/direct/>
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  
SELECT  
Line 37: Line 35:
     ?pattern dreamst:P20 ?value .
     ?pattern dreamst:P20 ?value .
     BIND(CONCAT("#report/", SUBSTR(STR(?value), 38)) AS ?valueUrl)
     BIND(CONCAT("#report/", SUBSTR(STR(?value), 38)) AS ?valueUrl)
  }
  UNION
  {
    BIND(15 AS ?order)
    BIND("Project type" AS ?description)
    ?pattern dreamst:P16 ?value .
    BIND(CONCAT("#project-type/", SUBSTR(STR(?value), 38)) AS ?valueUrl)
   }
   }
   SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". }
   SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". }