Zur Übersicht dieser Wikibase

From MtM
Revision as of 18:24, 10 March 2025 by Admin (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Liste aller Properties:

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

  1. 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(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

  1. 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?