Skip to content

Commit

Permalink
feat(rdfimport): import institutions from DNB
Browse files Browse the repository at this point in the history
Import data for Organisation entity objects from
RDF endpoint of d-nb.info.

Co-authored-by: KK <[email protected]>
  • Loading branch information
b1rger and koeaw committed May 6, 2024
1 parent c4bf2cd commit 5b6217a
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions apis_ontology/rdfimport/InstitutionFromDNB.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#####################################################
# Create an E74_Group from a d-nb.info RDF endpoint #
#####################################################
superclass = "apis_ontology.models.Organisation"
regex = "https://d-nb.info.*"
[[attributes]]
# name
sparql = """
PREFIX gndo: <https://d-nb.info/standards/elementset/gnd#>
SELECT ?name
WHERE {
?subject gndo:preferredNameForTheCorporateBody ?name
}
"""
[[attributes]]
# start_date_written
sparql = """
PREFIX gndo: <https://d-nb.info/standards/elementset/gnd#>
SELECT ?start_date_written
WHERE {
?subject gndo:dateOfEstablishment ?start_date_written
}
"""
[[attributes]]
# end_date_written
sparql = """
PREFIX gndo: <https://d-nb.info/standards/elementset/gnd#>
SELECT ?end_date_written
WHERE {
?subject gndo:dateOfTermination ?end_date_written
}
"""

0 comments on commit 5b6217a

Please sign in to comment.