Skip to content

Commit

Permalink
fix: change DNB person sparql to make name retrieval more flexible
Browse files Browse the repository at this point in the history
resolves #303
  • Loading branch information
sennierer committed Sep 27, 2024
1 parent 3b5721d commit b9916f0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions apis_ontology/rdfimport/PersonFromDNB.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ WHERE {
}
"""
[[attributes]]
# name
sparql = """
PREFIX gndo: <https://d-nb.info/standards/elementset/gnd#>
SELECT ?surname
WHERE {
?subject gndo:preferredNameEntityForThePerson/gndo:nameAddition ?name .
BIND(?name AS ?surname)
}
"""
[[attributes]]
# first_name
sparql = """
PREFIX gndo: <https://d-nb.info/standards/elementset/gnd#>
Expand All @@ -24,6 +34,16 @@ WHERE {
}
"""
[[attributes]]
# first_name
sparql = """
PREFIX gndo: <https://d-nb.info/standards/elementset/gnd#>
SELECT ?forename
WHERE {
?subject gndo:preferredNameEntityForThePerson/gndo:personalName ?first_name .
BIND(?first_name as ?forename)
}
"""
[[attributes]]
# profession
sparql = """
PREFIX gndo: <https://d-nb.info/standards/elementset/gnd#>
Expand Down

0 comments on commit b9916f0

Please sign in to comment.