Zur Übersicht dieser Wikibase: Difference between revisions
| Line 6: | Line 6: | ||
PREFIX wd: <https://mtm.uni-trier.de/entity/> | PREFIX wd: <https://mtm.uni-trier.de/entity/> | ||
SELECT ? | SELECT ?property ?propertyLabel | ||
WHERE { | |||
?property a wikibase:Property . | |||
SERVICE wikibase:label { | |||
SERVICE wikibase:label { #Sorgt für lesbare Labels | |||
} | bd:serviceParam wikibase:language "[AUTO_LANGUAGE], de". | ||
}} | |||
ORDER BY ASC(xsd:integer(STRAFTER(STR(?property), 'P'))) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 23: | Line 24: | ||
?inszenierung wdt:P3 wd:Q309. | ?inszenierung wdt:P3 wd:Q309. | ||
SERVICE wikibase:label { #Fügt lesbare Labels hinzu | SERVICE wikibase:label { #Fügt lesbare Labels hinzu | ||
bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". | bd:serviceParam wikibase:language "[AUTO_LANGUAGE], de". | ||
} | } | ||
} | } | ||
| Line 30: | Line 31: | ||
== Karte aller Inszenierungsorte == | == Karte aller Inszenierungsorte == | ||
<syntaxhighlight lang="sparql" line="1" start="1"> | <syntaxhighlight lang="sparql" line="1" start="1"> | ||
PREFIX wd: <http://www.wikidata.org/entity/> | PREFIX wd: <http://www.wikidata.org/entity/> | ||
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | 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:Map | #defaultView:Map | ||
SELECT ? | SELECT ?inszenierung ?inszenierungLabel ?spielortLabel ?WikiDataEntity ?koordinaten WHERE { | ||
? | ?inszenierung mmdt:P8 ?spielort. | ||
? | ?spielort mmdt:P2 ?WikiDataEntity. # P2 = exakte Übereinstimmung Wikidata-item | ||
SERVICE <https://query.wikidata.org/sparql> { | SERVICE <https://query.wikidata.org/sparql> { | ||
?WikiDataEntity wdt:P625 ? | ?WikiDataEntity wdt:P625 ?koordinaten # P625 = Koordinaten in Wikidata | ||
} | } | ||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de". } | SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de". } | ||
} | } | ||
Revision as of 11:02, 23 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 ?property ?propertyLabel
WHERE {
?property a wikibase:Property .
SERVICE wikibase:label { #Sorgt für lesbare Labels
bd:serviceParam wikibase:language "[AUTO_LANGUAGE], de".
}}
ORDER BY ASC(xsd:integer(STRAFTER(STR(?property), 'P')))
Welche Inszenierungen sind auf dieser Wikibase angelegt?
PREFIX wdt: <https://mtm.uni-trier.de/prop/direct/>
PREFIX wd: <https://mtm.uni-trier.de/entity/>
SELECT ?inszenierung ?inszenierungLabel WHERE {
?inszenierung wdt:P3 wd:Q309.
SERVICE wikibase:label { #Fügt lesbare Labels hinzu
bd:serviceParam wikibase:language "[AUTO_LANGUAGE], de".
}
}
Karte aller Inszenierungsorte
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:Map
SELECT ?inszenierung ?inszenierungLabel ?spielortLabel ?WikiDataEntity ?koordinaten WHERE {
?inszenierung mmdt:P8 ?spielort.
?spielort mmdt:P2 ?WikiDataEntity. # P2 = exakte Übereinstimmung Wikidata-item
SERVICE <https://query.wikidata.org/sparql> {
?WikiDataEntity wdt:P625 ?koordinaten # P625 = Koordinaten in Wikidata
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de". }
}