Zur Übersicht dieser Wikibase: Difference between revisions
(Created page with "Liste aller Properties: PREFIX wdt: <https://mtm.uni-trier.de/prop/direct/> PREFIX wd: <https://mtm.uni-trier.de/entity/> # SPARQL-Abfrage für alle P-Items in einer Wikibase SELECT ?property ?propertyLabel WHERE { # Suche nach allen Items, die den Typ "Property" haben ?property a wikibase:Property . # Optional: Hole die Labels der Properties (falls verfügbar) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY ASC(x...") |
No edit summary |
||
| Line 1: | Line 1: | ||
Liste aller Properties: | *Liste aller Properties: | ||
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/> | ||
# SPARQL-Abfrage für alle P-Items in einer Wikibase | # SPARQL-Abfrage für alle P-Items in einer Wikibase | ||
SELECT ?property ?propertyLabel | SELECT ?property ?propertyLabel | ||
WHERE { | WHERE { | ||
?property a wikibase:Property . | ?property a wikibase:Property . | ||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | ||
} | } | ||
Revision as of 18:25, 10 March 2025
- Liste aller Properties:
PREFIX wdt: <https://mtm.uni-trier.de/prop/direct/> PREFIX wd: <https://mtm.uni-trier.de/entity/>
- SPARQL-Abfrage für alle P-Items in einer Wikibase
SELECT ?property ?propertyLabel
WHERE {
?property a wikibase:Property .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY ASC(xsd:integer(STRAFTER(STR(?property), 'P')))
Welche Inszenierungen sind auf dieser Wikibase angelegt?
Karte aller Inszenierungen
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". }
}
Wie viele Personen sind auf dieser Wikibase angelegt?