Dreams:report: Difference between revisions

Line 205: Line 205:
}}
}}


== Locations ==
== Steder ==
SPARQL | query=
SPARQL | query=
PREFIX target: <https://dreams.wikibase.cloud/entity/Q158>
PREFIX target: <https://dreams.wikibase.cloud/entity/Q158>
Line 216: Line 216:


SELECT  
SELECT  
   ?location ?locationLabel
   ?sted ?stedLabel
   (CONCAT("#location/", SUBSTR(STR(?location), 38)) AS ?locationUrl)
   (CONCAT("#location/", SUBSTR(STR(?sted), 38)) AS ?stedUrl)
   ?locationDescription
   ?stedDescription


   ?quote
   ?citat
WHERE {
WHERE {
   target: dreamsp:P12 ?location_statement .
   target: dreamsp:P12 ?sted_statement .
   ?location_statement dreamsps:P12 ?location .
   ?sted_statement dreamsps:P12 ?sted .
   OPTIONAL {
   OPTIONAL {
     ?location_statement prov:wasDerivedFrom / dreamspr:P18 ?quote .
     ?sted_statement prov:wasDerivedFrom / dreamspr:P18 ?citat .
   }
   }