From 67cde041988d10377a891feeaf9d83d80c4c74d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Schl=C3=B6gl?= Date: Mon, 25 Nov 2024 15:15:53 +0100 Subject: [PATCH] fix: allow for more event types resolves #376 adds support for `gndo:ConferenceOrEvent` --- apis_ontology/rdfimport/EventFromDNB.toml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/apis_ontology/rdfimport/EventFromDNB.toml b/apis_ontology/rdfimport/EventFromDNB.toml index b0f9b6f..d278e34 100644 --- a/apis_ontology/rdfimport/EventFromDNB.toml +++ b/apis_ontology/rdfimport/EventFromDNB.toml @@ -14,6 +14,16 @@ WHERE { } """ [[attributes]] +# name +sparql = """ +PREFIX gndo: +SELECT ?name +WHERE { + ?subject a gndo:ConferenceOrEvent ; + gndo:preferredNameForTheConferenceOrEvent ?name . +} +""" +[[attributes]] # start_date_written sparql = """ PREFIX gndo: @@ -24,6 +34,16 @@ WHERE { } """ [[attributes]] +# start_date_written +sparql = """ +PREFIX gndo: +SELECT ?start_date_written +WHERE { + ?subject a gndo:ConferenceOrEvent ; + gndo:dateOfConferenceOrEvent ?start_date_written . +} +""" +[[attributes]] # related_place sparql = """ PREFIX gndo: