From 906735c7205cff5c29c3c9ff78934ccae337f0e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Schl=C3=B6gl?= Date: Fri, 27 Sep 2024 10:18:17 +0200 Subject: [PATCH] fix: change DNB person sparql to make name retrieval more flexible resolves #303 --- apis_ontology/rdfimport/PersonFromDNB.toml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/apis_ontology/rdfimport/PersonFromDNB.toml b/apis_ontology/rdfimport/PersonFromDNB.toml index 99ab1dc..26d9904 100644 --- a/apis_ontology/rdfimport/PersonFromDNB.toml +++ b/apis_ontology/rdfimport/PersonFromDNB.toml @@ -14,6 +14,16 @@ WHERE { } """ [[attributes]] +# name +sparql = """ +PREFIX gndo: +SELECT ?surname +WHERE { + ?subject gndo:preferredNameEntityForThePerson/gndo:nameAddition ?name . + BIND(?name AS ?surname) +} +""" +[[attributes]] # first_name sparql = """ PREFIX gndo: @@ -24,6 +34,16 @@ WHERE { } """ [[attributes]] +# first_name +sparql = """ +PREFIX gndo: +SELECT ?forename +WHERE { + ?subject gndo:preferredNameEntityForThePerson/gndo:personalName ?first_name . + BIND(?first_name as ?forename) +} +""" +[[attributes]] # profession sparql = """ PREFIX gndo: