Dreams:report: Difference between revisions

No edit summary
Line 119: Line 119:
   OPTIONAL { ?pattern dreamst:P19 ?project_phase . }
   OPTIONAL { ?pattern dreamst:P19 ?project_phase . }
   OPTIONAL { ?pattern dreamst:P16 ?project_type . }
   OPTIONAL { ?pattern dreamst:P16 ?project_type . }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". }
}
}}
== Locations ==
{{SPARQL | query=
PREFIX target: <https://dreams.wikibase.cloud/entity/Q158>
PREFIX dreams: <https://dreams.wikibase.cloud/entity/>
PREFIX dreamst: <https://dreams.wikibase.cloud/prop/direct/>
PREFIX dreamsp: <https://dreams.wikibase.cloud/prop/>
PREFIX dreamspr: <https://dreams.wikibase.cloud/prop/reference/>
PREFIX dreamsps: <https://dreams.wikibase.cloud/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
SELECT
  ?location ?locationLabel
  (CONCAT("#location/", SUBSTR(STR(?location), 38)) AS ?locationUrl)
  ?locationDescription
  ?quote
WHERE {
  target: dreamsp:P12 ?location_statement .
  ?location_statement dreamsps:P12 ?location .
  OPTIONAL {
    ?location_statement prov:wasDerivedFrom / dreamspr:P18 ?quote .
  }
 
   SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". }
   SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en". }
}
}