From c60a41aa328993159534d4168ee99f347065c66b Mon Sep 17 00:00:00 2001 From: Alessia Bardi Date: Fri, 4 Jun 2021 17:31:28 +0200 Subject: [PATCH] Aarhus DIME: enrichment queries merged into one single file --- .../ordered_sparql_insert_dime-TEST.sparql | 143 ++++++++++++++++++ .../ordered_sparql_insert_dime_coll.sparql | 63 -------- .../ordered_sparql_insert_dime_records.sparql | 60 -------- 3 files changed, 143 insertions(+), 123 deletions(-) create mode 100644 dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/AARHUS/ordered_sparql_insert_dime-TEST.sparql delete mode 100644 dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/AARHUS/ordered_sparql_insert_dime_coll.sparql delete mode 100644 dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/AARHUS/ordered_sparql_insert_dime_records.sparql diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/AARHUS/ordered_sparql_insert_dime-TEST.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/AARHUS/ordered_sparql_insert_dime-TEST.sparql new file mode 100644 index 0000000..79253e7 --- /dev/null +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/AARHUS/ordered_sparql_insert_dime-TEST.sparql @@ -0,0 +1,143 @@ +PREFIX aocat: +PREFIX rdf: +PREFIX rdfs: +PREFIX skos: +INSERT { + GRAPH { + ?s aocat:has_type . + rdf:type . + skos:prefLabel "collection" + } + } + WHERE { + GRAPH { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:has_type ?t . + } + } +}; + +PREFIX aocat: +PREFIX rdf: +PREFIX rdfs: +INSERT { + GRAPH { + ?s aocat:has_temporal_coverage . + rdf:type . + rdfs:label "Not provided" . + + } +} +WHERE { + GRAPH { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:has_temporal_coverage ?tc . + } + } +}; + +PREFIX aocat: +PREFIX rdf: +INSERT { + GRAPH { + ?s aocat:has_original_id "DIME" . + } +} +WHERE { + GRAPH { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:has_original_id ?tc . + } + } +}; + +PREFIX aocat: +PREFIX skos: +INSERT { + GRAPH { + ?record aocat:was_issued ?issued . + ?record aocat:was_modified ?modified . + ?record aocat:has_contributor ?contributor . + ?contributor aocat:has_name ?contrib . + ?record aocat:has_responsible ?legalResponsible . + ?legalResponsible aocat:has_name ?resp . + ?record aocat:has_owner ?owner . + ?owner aocat:has_name ?own . + ?record aocat:has_publisher ?publisher . + ?publisher aocat:has_name ?pub . + ?record aocat:has_access_rights ?accessRights . + ?record aocat:has_ARIADNE_subject ?archeologicalResourceType . + ?archeologicalResourceType skos:prefLabel ?alabel . + ?record aocat:has_language ?lang . + ?lang skos:prefLabel ?langL + } +} +USING +USING +WHERE { + ?record aocat:is_part_of ?collection . + ?collection aocat:was_issued ?issued . + ?collection aocat:was_modified ?modified . + ?collection aocat:has_contributor ?contributor . + ?contributor aocat:has_name ?contrib . + ?collection aocat:has_responsible ?legalResponsible . + ?legalResponsible aocat:has_name ?resp . + ?collection aocat:has_owner ?owner . + ?owner aocat:has_name ?own . + ?collection aocat:has_publisher ?publisher . + ?publisher aocat:has_name ?pub . + ?collection aocat:has_access_rights ?accessRights . + ?collection aocat:has_ARIADNE_subject ?archeologicalResourceType . + ?archeologicalResourceType skos:prefLabel ?alabel . + ?collection aocat:has_language ?lang . + ?lang skos:prefLabel ?langL +}; + +PREFIX aocat: +PREFIX skos: +PREFIX rdf: +INSERT { + GRAPH { + ?s aocat:has_type . + skos:prefLabel "provided record" . + } +} +WHERE { + GRAPH { + ?s rdf:type aocat:AO_Individual_Data_Resource . + MINUS { + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:has_type . + } + } +}; + + PREFIX skos: + PREFIX aocat: + PREFIX time: + PREFIX dcterms: + INSERT { + GRAPH { + ?temporal aocat:has_period ?periodO . + ?temporal aocat:from ?temporalFrom . + ?temporal aocat:until ?temporalUntil . + } + } + WHERE { + GRAPH { + ?temporal aocat:has_period ?periodO . + optional { + GRAPH { + ?periodO time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom . + ?periodO time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil . + } + } + } + }; + diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/AARHUS/ordered_sparql_insert_dime_coll.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/AARHUS/ordered_sparql_insert_dime_coll.sparql deleted file mode 100644 index 057e754..0000000 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/AARHUS/ordered_sparql_insert_dime_coll.sparql +++ /dev/null @@ -1,63 +0,0 @@ -PREFIX aocat: -PREFIX rdf: -PREFIX rdfs: -PREFIX skos: -INSERT { - GRAPH { - ?s aocat:has_type . - rdf:type . - skos:prefLabel "collection" - } - } - WHERE { - GRAPH { - ?s rdf:type . - MINUS { - ?s rdf:type . - ?s aocat:has_type ?t . - } - } -}; - -PREFIX aocat: -PREFIX rdf: -PREFIX rdfs: -INSERT { - GRAPH { - ?s aocat:has_temporal_coverage . - rdf:type . - rdfs:label "Not provided" . - - } -} -WHERE { - GRAPH { - ?s rdf:type . - MINUS { - ?s rdf:type . - ?s aocat:has_temporal_coverage ?tc . - } - } -}; - -PREFIX aocat: -PREFIX rdf: -INSERT { - GRAPH { - ?s aocat:has_original_id "DIME" . - } -} -WHERE { - GRAPH { - ?s rdf:type . - MINUS { - ?s rdf:type . - ?s aocat:has_original_id ?tc . - } - } -}; - - - - - diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/AARHUS/ordered_sparql_insert_dime_records.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/AARHUS/ordered_sparql_insert_dime_records.sparql deleted file mode 100644 index 6032f7d..0000000 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/AARHUS/ordered_sparql_insert_dime_records.sparql +++ /dev/null @@ -1,60 +0,0 @@ -PREFIX aocat: -PREFIX skos: -INSERT { - GRAPH { - ?record aocat:was_issued ?issued . - ?record aocat:was_modified ?modified . - ?record aocat:has_contributor ?contributor . - ?contributor aocat:has_name ?contrib . - ?record aocat:has_responsible ?legalResponsible . - ?legalResponsible aocat:has_name ?resp . - ?record aocat:has_owner ?owner . - ?owner aocat:has_name ?own . - ?record aocat:has_publisher ?publisher . - ?publisher aocat:has_name ?pub . - ?record aocat:has_access_rights ?accessRights . - ?record aocat:has_ARIADNE_subject ?archeologicalResourceType . - ?archeologicalResourceType skos:prefLabel ?alabel . - ?record aocat:has_language ?lang . - ?lang skos:prefLabel ?langL - } -} -USING -USING -WHERE { - ?record aocat:is_part_of ?collection . - ?collection aocat:was_issued ?issued . - ?collection aocat:was_modified ?modified . - ?collection aocat:has_contributor ?contributor . - ?contributor aocat:has_name ?contrib . - ?collection aocat:has_responsible ?legalResponsible . - ?legalResponsible aocat:has_name ?resp . - ?collection aocat:has_owner ?owner . - ?owner aocat:has_name ?own . - ?collection aocat:has_publisher ?publisher . - ?publisher aocat:has_name ?pub . - ?collection aocat:has_access_rights ?accessRights . - ?collection aocat:has_ARIADNE_subject ?archeologicalResourceType . - ?archeologicalResourceType skos:prefLabel ?alabel . - ?collection aocat:has_language ?lang . - ?lang skos:prefLabel ?langL -}; - -PREFIX aocat: -PREFIX skos: -PREFIX rdf: -INSERT { - GRAPH { - ?s aocat:has_type . - skos:prefLabel "provided record" . - } -} -WHERE { - GRAPH { - ?s rdf:type aocat:AO_Individual_Data_Resource . - MINUS { - ?s rdf:type aocat:AO_Individual_Data_Resource . - ?s aocat:has_type . - } - } -}; \ No newline at end of file