Zur Übersicht dieser Wikibase: Difference between revisions

From MtM
No edit summary
No edit summary
Line 1: Line 1:
Zurück zur Übersicht aller Abfragethemen: [[SPARQL-Abfragen|zurück]]
Zurück zur Übersicht aller Abfragethemen: [[SPARQL-Abfragen|zurück]]


<h2>Liste aller Properties</h2><syntaxhighlight lang="sparql" line="1" start="1">
== Liste aller Properties ==
<syntaxhighlight lang="sparql" line="1" start="1">
PREFIX wdt: <https://mtm.uni-trier.de/prop/direct/>
PREFIX wdt: <https://mtm.uni-trier.de/prop/direct/>
PREFIX wd: <https://mtm.uni-trier.de/entity/>
PREFIX wd: <https://mtm.uni-trier.de/entity/>
Line 12: Line 13:
}
}
}
}
</syntaxhighlight><h2>Welche Inszenierungen sind auf dieser Wikibase angelegt?</h2>
</syntaxhighlight>


== Welche Inszenierungen sind auf dieser Wikibase angelegt? ==


<h2>Karte aller Inszenierungsorte</h2><syntaxhighlight lang="sparql" line="1" start="1">
 
 
== Karte aller Inszenierungsorte ==
<syntaxhighlight lang="sparql" line="1" start="1">
PREFIX wd: <http://www.wikidata.org/entity/> #wikidata wd
PREFIX wd: <http://www.wikidata.org/entity/> #wikidata wd
PREFIX wdt: <http://www.wikidata.org/prop/direct/> #wikidata wdt
PREFIX wdt: <http://www.wikidata.org/prop/direct/> #wikidata wdt
Line 36: Line 41:
   SERVICE wikibase:label {    bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de".  }
   SERVICE wikibase:label {    bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de".  }
}
}
</syntaxhighlight><h2>Welche und wie viele Personen sind auf dieser Wikibase angelegt?</h2>
</syntaxhighlight>
 
== Welche und wie viele Personen sind auf dieser Wikibase angelegt? ==

Revision as of 20:48, 10 March 2025

Zurück zur Übersicht aller Abfragethemen: zurück

Liste aller Properties

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

SELECT ?inszenierung ?inszenierungLabel ?theaterregisseurIn ?theaterregisseurInLabel ?gender ?genderLabel WHERE {
    ?inszenierung wdt:P15 ?theaterregisseurIn.  #Inszenierung hat ein:e Regisseur:in [P15]
    ?theaterregisseurIn wdt:P17 ?gender.        #Regisseur:in hat ein Gender [P17]
    SERVICE wikibase:label {                    #Fügt lesbare Labels hinzu
        bd:serviceParam wikibase:language "[AUTO_LANGUAGE]".
}
}

Welche Inszenierungen sind auf dieser Wikibase angelegt?

Karte aller Inszenierungsorte

PREFIX wd: <http://www.wikidata.org/entity/> #wikidata wd
PREFIX wdt: <http://www.wikidata.org/prop/direct/> #wikidata wdt

PREFIX mmd: <https://mtm.uni-trier.de/entity/> #mtm mmd
PREFIX mmdt: <https://mtm.uni-trier.de/prop/direct/> #mtm mmdt
#defaultView:Map
SELECT ?item ?itemLabel ?locLabel ?WikiDataEntity ?coordinateLocation WHERE {
  # Abfrage auf meiner Wikibase
  ?item mmdt:P8 ?loc.
  ?loc mmdt:P2 ?o.  # P2 = exakte Übereinstimmung Wikidata-item
  
  # Wikidata-Abfrage
  BIND(IRI(REPLACE(STR(?o), "https://www.wikidata.org/wiki", "http://www.wikidata.org/entity", "i")) as ?WikiDataEntity).
SERVICE <https://query.wikidata.org/sparql> {
    ?WikiDataEntity wdt:P625 ?coordinateLocation  # P625 = Koordinaten in Wikidata
  }
  
  # Label-Service für lokale Wikibase
  SERVICE wikibase:label {     bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de".   }
}

Welche und wie viele Personen sind auf dieser Wikibase angelegt?