SPARQL Endpoint
EventKG is currently being updated to a new version. The update should be ready soon!
Search and Example Resources
Example Queries
- Most linked events in the Russian Wikipedia
SELECT (STR(?label) AS ?eventLabel) ?links {
?event rdf:type sem:Event .
GRAPH eventKG-g:wikidata { ?event rdfs:label ?label . FILTER(LANG(?label) = "en") . } . {
SELECT ?event (SUM(?link_count) AS ?links) WHERE {
?relation rdf:type eventKG-s:Relation .
?relation rdf:object ?event .
GRAPH eventKG-g:wikipedia_ru { ?relation eventKG-s:links ?link_count . } .
} GROUP BY ?event
}
} ORDER BY DESC(?links)
LIMIT 7
eventLabel links Eastern Front of World War II 54011 World War II 24880 World War I 23393 Russian Census of 2010 10987 October Revolution 7937 Academy Awards 7801 Russian Civil War 7514 - Sub-events of World War II that started between February 12 and February 28, 1941.
SELECT ?startTime SAMPLE(STR(?description)) (?sa AS ?linkDBpediaEn)
WHERE {
?event owl:sameAs dbr:World_War_II .
?event sem:hasSubEvent* ?subEvent .
?subEvent sem:hasBeginTimeStamp ?startTime .
OPTIONAL {
GRAPH eventKG-g:wikipedia_en { ?subEvent dcterms:description ?description . } .
FILTER(LANGMATCHES(LANG(?description), "en")) .
}
OPTIONAL { GRAPH eventKG-g:dbpedia_en { ?subEvent owl:sameAs ?sa . } . } .
FILTER (?startTime >= "1941-02-12"^^xsd:date) .
FILTER (?startTime < "1941-02-28"^^xsd:date) .
FILTER(BOUND(?sa) || BOUND(?description)) .
}
GROUP BY ?startTime ?subEvent ?sa
ORDER BY ASC(?startTime)
startTime description linkDBpediaEn 1941-02-12 WWII: Erwin Rommel arrives in Tripoli. 1941-02-14 Admiral Kichisaburō Nomura begins his duties as Japanese Ambassador to the United States. 1941-02-17 The Battle of Trebeshina or the Battle of Mal Trebeshinë, was a series of engagements fought between the Greek and Italian armies in south-eastern Albania during the Greco-Italian War. http://dbpedia.org/resource/Battle_of_Trebeshina 1941-02-19 Three Nights' Blitz over Swansea, South Wales: Over these 3 nights of intensive bombing, which lasted a total of 13 hours and 48 minutes, Swansea's town centre is almost completely obliterated by the 896 high explosive bombs employed by the Luftwaffe; 397 casualties and 230 deaths reported. 1941-02-22 Bombards Barawa, on the coast between Kismayo and Mogadishu. 1941-02-25 Operation Abstention was a code name given to a British invasion of the Italian island of Kastelorizo, off Turkey, during the Second World War, in late February 1941. http://dbpedia.org/resource/Operation_Abstention 1941-02-27 The Action of 27 February 1941 was a single ship action between a New Zealand cruiser and an Italian auxiliary cruiser. http://dbpedia.org/resource/Action_of_27_February_1941 1941-02-27 The New Zealand Division cruiser HMS Leander (1931) sinks Italian armed merchant raider Ramb I off the Maldives. - Locations of the Battle of Trafalgar (Links for EventKG, Wikdiata and the English DBpedia)
SELECT ?locationEventKG ?locationWikidata ?locationDBpediaEn
WHERE
{
?event rdf:type sem:Event .
?event owl:sameAs dbr:Battle_of_Trafalgar .
GRAPH eventKG-g:event_kg {?event sem:hasPlace ?loc} .
GRAPH eventKG-g:event_kg {?event sem:hasPlace ?locationEventKG} .
GRAPH eventKG-g:dbpedia_en { ?locationEventKG owl:sameAs ?locationDBpediaEn . }
GRAPH eventKG-g:wikidata { ?locationEventKG owl:sameAs ?locationWikidata . }
}
- Start and end times of World War II from different sources
SELECT ?startTime ?endTime ?graph
WHERE
{
?event owl:sameAs dbr:World_War_II .
GRAPH ?graph { ?event sem:hasBeginTimeStamp ?startTime } .
GRAPH ?graph { ?event sem:hasEndTimeStamp ?endTime } .
}
startTime endTime graph 1939-01-01 1945-09-02 http://eventKG.l3s.uni-hannover.de/graph/dbpedia_fr 1939-01-01 1939-09-01 http://eventKG.l3s.uni-hannover.de/graph/yago 1939-09-01 1945-09-02 http://eventKG.l3s.uni-hannover.de/graph/event_kg 1939-09-01 1945-09-02 http://eventKG.l3s.uni-hannover.de/graph/wikidata