Information about venues

From MtM
Revision as of 16:58, 28 November 2025 by Admin (talk | contribs) (Created page with "Back to the overview of all query topics: back == Pictures of the theatre buildings == <syntaxhighlight lang="sparql" line="1"> PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX mmd: <https://mtm.uni-trier.de/entity/> PREFIX mmdt: <https://mtm.uni-trier.de/prop/direct/> #defaultView:ImageGrid SELECT ?theatreBuildingLabel ?image WHERE { ?theatreBuilding mmdt:P3 mmd:Q239. # Theatre building is...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Back to the overview of all query topics: back

Pictures of the theatre buildings

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX mmd: <https://mtm.uni-trier.de/entity/> 
PREFIX mmdt: <https://mtm.uni-trier.de/prop/direct/>

#defaultView:ImageGrid

SELECT ?theatreBuildingLabel ?image WHERE {
    ?theatreBuilding mmdt:P3 mmd:Q239.  # Theatre building is an instance of Theatre Building (Q239)
    ?theatreBuilding mmdt:P2 ?WikiDataEntity. # Exact match to a Wikidata item
  
    SERVICE <https://query.wikidata.org/sparql> {
        ?WikiDataEntity wdt:P18 ?image.  # P18 = image in Wikidata
    }
  
    SERVICE wikibase:label {                          
        bd:serviceParam wikibase:language "en".  # Add readable labels in English
    }
}

Click here: Test SPARQL query

Which productions were staged in Berlin?

PREFIX wdt: <https://mtm.uni-trier.de/prop/direct/>
PREFIX wd: <https://mtm.uni-trier.de/entity/>

SELECT ?spielortLabel ?inszenierung ?inszenierungLabel WHERE {   
   ?inszenierung wdt:P3 wd:Q309.   # Production is an instance of Production (Q309)
   ?inszenierung wdt:P8 ?spielort. # Production has a venue (e.g., a theatre) (P8)
   ?spielort wdt:P21 wd:Q237.      # The venue is located in a place – in this case Berlin (Q237)
   
   SERVICE wikibase:label {        # Adds readable labels
       bd:serviceParam wikibase:language "en".
   }
}

Click here: Test SPARQL query

Welche Inszenierungen fanden in Theatergebäuden statt?

Which productions did not take place in theatre buildings?

What productions took place in courthouses?