diff --git a/apis_ontology/rdfimport/InstitutionFromDNB.toml b/apis_ontology/rdfimport/InstitutionFromDNB.toml deleted file mode 100644 index 50f9444..0000000 --- a/apis_ontology/rdfimport/InstitutionFromDNB.toml +++ /dev/null @@ -1,32 +0,0 @@ -##################################################### -# Create an E74_Group from a d-nb.info RDF endpoint # -##################################################### -superclass = "apis_ontology.models.Institution" -regex = "https://d-nb.info.*" -[[attributes]] -# name -sparql = """ -PREFIX gndo: -SELECT ?name -WHERE { - ?subject gndo:preferredNameForTheCorporateBody ?name -} -""" -[[attributes]] -# start_date_written -sparql = """ -PREFIX gndo: -SELECT ?start_date_written -WHERE { - ?subject gndo:dateOfEstablishment ?start_date_written -} -""" -[[attributes]] -# end_date_written -sparql = """ -PREFIX gndo: -SELECT ?end_date_written -WHERE { - ?subject gndo:dateOfTermination ?end_date_written -} -""" diff --git a/apis_ontology/rdfimport/PersonFromDNB.toml b/apis_ontology/rdfimport/PersonFromDNB.toml deleted file mode 100644 index 989ec81..0000000 --- a/apis_ontology/rdfimport/PersonFromDNB.toml +++ /dev/null @@ -1,92 +0,0 @@ -###################################################### -# Create an E21_Person from a d-nb.info RDF endpoint # -###################################################### -superclass = "apis_ontology.models.Person" -regex = "https://d-nb.info.*" -[[attributes]] -# name -sparql = """ -PREFIX gndo: -SELECT ?surname -WHERE { - ?subject gndo:preferredNameEntityForThePerson/gndo:surname ?name . - BIND(?name AS ?surname) -} -""" -[[attributes]] -# name -sparql = """ -PREFIX gndo: -SELECT ?surname -WHERE { - ?subject gndo:preferredNameEntityForThePerson/gndo:nameAddition ?name . - BIND(?name AS ?surname) -} -""" -[[attributes]] -# first_name -sparql = """ -PREFIX gndo: -SELECT ?forename -WHERE { - ?subject gndo:preferredNameEntityForThePerson/gndo:forename ?first_name . - BIND(?first_name as ?forename) -} -""" -[[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: -SELECT (GROUP_CONCAT(?professionlist) AS ?profession) -WHERE { - ?subject gndo:professionOrOccupation ?profession_seq. - ?profession_seq ?seq ?professionlist -} -GROUP BY ?subject -""" -[[attributes]] -# date_of_birth -sparql = """ -PREFIX gndo: -SELECT ?start_date_written -WHERE { - ?subject gndo:dateOfBirth ?start_date_written . -} -""" -[[attributes]] -# date_of_death -sparql = """ -PREFIX gndo: -SELECT ?end_date_written -WHERE { - ?subject gndo:dateOfDeath ?end_date_written . -} -""" -[[attributes]] -# place_of_birth -sparql = """ -PREFIX gndo: -SELECT ?place_of_birth__Place__WurdeGeborenIn -WHERE { - ?subject gndo:placeOfBirth ?place_of_birth__Place__WurdeGeborenIn -} -""" -[[attributes]] -# place_of_death -sparql = """ -PREFIX gndo: -SELECT ?place_of_death__Place__StarbIn -WHERE { - ?subject gndo:placeOfDeath ?place_of_death__Place__StarbIn -} -"""