From 9851afe6e0ecff50ee9d4a4f0d45d809ddb2b4c3 Mon Sep 17 00:00:00 2001 From: Enrico Ottonello Date: Thu, 24 Mar 2022 14:55:26 +0100 Subject: [PATCH] added sites and sediments collections for cenieh --- .../ordered_sparql_insert_cenieh_cir.sparql | 20 ++ ...ered_sparql_insert_cenieh_sediments.sparql | 273 ++++++++++++++++++ .../ordered_sparql_insert_cenieh_sites.sparql | 273 ++++++++++++++++++ 3 files changed, 566 insertions(+) create mode 100644 dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/CENIEH/ordered_sparql_insert_cenieh_sediments.sparql create mode 100644 dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/CENIEH/ordered_sparql_insert_cenieh_sites.sparql diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/CENIEH/ordered_sparql_insert_cenieh_cir.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/CENIEH/ordered_sparql_insert_cenieh_cir.sparql index 2eb9713..1fccd29 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/CENIEH/ordered_sparql_insert_cenieh_cir.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/CENIEH/ordered_sparql_insert_cenieh_cir.sparql @@ -18,6 +18,26 @@ PREFIX aocat: } } }; + + PREFIX aocat: + PREFIX skos: + PREFIX rdf: + PREFIX rdfs: + INSERT { + GRAPH { + ?s aocat:was_issued "2022-01-24"^^xsd:dateTime . + ?s aocat:was_modified "2022-01-24"^^xsd:dateTime . + } + } + USING + WHERE { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:was_issued ?issued . + ?s aocat:was_modified ?modified . + } + }; PREFIX aocat: diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/CENIEH/ordered_sparql_insert_cenieh_sediments.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/CENIEH/ordered_sparql_insert_cenieh_sediments.sparql new file mode 100644 index 0000000..035ea11 --- /dev/null +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/CENIEH/ordered_sparql_insert_cenieh_sediments.sparql @@ -0,0 +1,273 @@ +PREFIX aocat: + PREFIX skos: + PREFIX rdf: + PREFIX rdfs: + 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 skos: +PREFIX rdf: +PREFIX rdfs: +INSERT { + GRAPH { + ?s aocat:was_issued "2022-03-24"^^xsd:dateTime . + ?s aocat:was_modified "2022-03-24"^^xsd:dateTime . + } +} +USING +WHERE { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:was_issued ?issued . + ?s aocat:was_modified ?modified . + } +}; + + PREFIX aocat: + PREFIX rdf: + PREFIX rdfs: + INSERT { + GRAPH { + ?s aocat:has_owner . + rdf:type . + rdfs:label "Not provided" . + aocat:has_name "Not provided" . + } + } + WHERE { + GRAPH { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:has_owner ?agent . + } + } + }; + + PREFIX aocat: + PREFIX rdf: + PREFIX rdfs: + INSERT { + GRAPH { + ?s aocat:has_responsible . + rdf:type . + rdfs:label "Not provided" . + aocat:has_name "Not provided" . + } + } + WHERE { + GRAPH { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:has_responsible ?agent . + } + } + }; + + PREFIX aocat: + PREFIX rdf: + INSERT { + GRAPH { + ?s aocat:was_modified "Not provided" . + } + } + WHERE { + GRAPH { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:was_modified ?d . + } + } + }; + + PREFIX aocat: + PREFIX rdf: + INSERT { + GRAPH { + ?s aocat:was_issued "Not provided" . + } + } + WHERE { + GRAPH { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:was_issued ?d . + } + } + }; + + PREFIX aocat: + PREFIX skos: + PREFIX rdf: + INSERT { + GRAPH { + ?s aocat:has_language . + skos:prefLabel "und" . + } + } + WHERE { + GRAPH { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:has_language ?ns . + } + } + }; + + PREFIX aocat: + PREFIX skos: + PREFIX rdf: +INSERT { + GRAPH { + ?s aocat:has_creator . + rdf:type . + rdfs:label "Not provided" . + aocat:has_name "Not provided" . + } + } + WHERE { + GRAPH { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:has_creator ?agent . + } + } +}; + + 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_access_rights "Not provided" . + } + } + WHERE { + GRAPH { + ?s rdf:type aocat:AO_Individual_Data_Resource . + MINUS { + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:has_access_rights ?ar . + } + } + }; + + PREFIX aocat: + PREFIX skos: + PREFIX ariadneplus: + + INSERT { + GRAPH { + ?record aocat:has_ARIADNE_subject ?archeologicalResourceType . + ?record aocat:has_owner ?owner . + ?record aocat:has_responsible ?legalResponsible . + ?record aocat:has_contributor ?contributor . + } + } + USING + WHERE { + ?record aocat:is_part_of ?collection . + ?collection aocat:has_ARIADNE_subject ?archeologicalResourceType . + ?collection aocat:has_owner ?owner . + ?collection aocat:has_responsible ?legalResponsible . + ?collection aocat:has_contributor ?contributor . + }; + + PREFIX aocat: + PREFIX skos: + INSERT { + GRAPH { + ?record aocat:has_derived_subject ?aat . + } + } + USING + USING + WHERE { + { + ?record aocat:has_native_subject ?native_subject . + ?native_subject skos:exactMatch ?aat . + } + union + { + ?record aocat:has_native_subject ?native_subject . + ?native_subject skos:broadMatch ?aat . + } + union + { + ?record aocat:has_native_subject ?native_subject . + ?native_subject skos:closeMatch ?aat . + } + union + { + ?record aocat:has_native_subject ?native_subject . + ?native_subject skos:narrowMatch ?aat . + } + }; + + 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 { + ?record aocat:has_temporal_coverage ?temporal . + ?temporal aocat:has_native_period ?native_period . + ?native_period skos:prefLabel ?native_label . + optional { + GRAPH { + ?periodO skos:altLabel ?native_label . + ?periodO skos:inScheme . + ?periodO time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom . + ?periodO time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil . + } + } + } + }; \ No newline at end of file diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/CENIEH/ordered_sparql_insert_cenieh_sites.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/CENIEH/ordered_sparql_insert_cenieh_sites.sparql new file mode 100644 index 0000000..b4077ab --- /dev/null +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/CENIEH/ordered_sparql_insert_cenieh_sites.sparql @@ -0,0 +1,273 @@ +PREFIX aocat: + PREFIX skos: + PREFIX rdf: + PREFIX rdfs: + 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 skos: +PREFIX rdf: +PREFIX rdfs: +INSERT { + GRAPH { + ?s aocat:was_issued "2022-03-24"^^xsd:dateTime . + ?s aocat:was_modified "2022-03-24"^^xsd:dateTime . + } +} +USING +WHERE { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:was_issued ?issued . + ?s aocat:was_modified ?modified . + } +}; + + PREFIX aocat: + PREFIX rdf: + PREFIX rdfs: + INSERT { + GRAPH { + ?s aocat:has_owner . + rdf:type . + rdfs:label "Not provided" . + aocat:has_name "Not provided" . + } + } + WHERE { + GRAPH { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:has_owner ?agent . + } + } + }; + + PREFIX aocat: + PREFIX rdf: + PREFIX rdfs: + INSERT { + GRAPH { + ?s aocat:has_responsible . + rdf:type . + rdfs:label "Not provided" . + aocat:has_name "Not provided" . + } + } + WHERE { + GRAPH { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:has_responsible ?agent . + } + } + }; + + PREFIX aocat: + PREFIX rdf: + INSERT { + GRAPH { + ?s aocat:was_modified "Not provided" . + } + } + WHERE { + GRAPH { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:was_modified ?d . + } + } + }; + + PREFIX aocat: + PREFIX rdf: + INSERT { + GRAPH { + ?s aocat:was_issued "Not provided" . + } + } + WHERE { + GRAPH { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:was_issued ?d . + } + } + }; + + PREFIX aocat: + PREFIX skos: + PREFIX rdf: + INSERT { + GRAPH { + ?s aocat:has_language . + skos:prefLabel "und" . + } + } + WHERE { + GRAPH { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:has_language ?ns . + } + } + }; + + PREFIX aocat: + PREFIX skos: + PREFIX rdf: +INSERT { + GRAPH { + ?s aocat:has_creator . + rdf:type . + rdfs:label "Not provided" . + aocat:has_name "Not provided" . + } + } + WHERE { + GRAPH { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:has_creator ?agent . + } + } +}; + + 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_access_rights "Not provided" . + } + } + WHERE { + GRAPH { + ?s rdf:type aocat:AO_Individual_Data_Resource . + MINUS { + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:has_access_rights ?ar . + } + } + }; + + PREFIX aocat: + PREFIX skos: + PREFIX ariadneplus: + + INSERT { + GRAPH { + ?record aocat:has_ARIADNE_subject ?archeologicalResourceType . + ?record aocat:has_owner ?owner . + ?record aocat:has_responsible ?legalResponsible . + ?record aocat:has_contributor ?contributor . + } + } + USING + WHERE { + ?record aocat:is_part_of ?collection . + ?collection aocat:has_ARIADNE_subject ?archeologicalResourceType . + ?collection aocat:has_owner ?owner . + ?collection aocat:has_responsible ?legalResponsible . + ?collection aocat:has_contributor ?contributor . + }; + + PREFIX aocat: + PREFIX skos: + INSERT { + GRAPH { + ?record aocat:has_derived_subject ?aat . + } + } + USING + USING + WHERE { + { + ?record aocat:has_native_subject ?native_subject . + ?native_subject skos:exactMatch ?aat . + } + union + { + ?record aocat:has_native_subject ?native_subject . + ?native_subject skos:broadMatch ?aat . + } + union + { + ?record aocat:has_native_subject ?native_subject . + ?native_subject skos:closeMatch ?aat . + } + union + { + ?record aocat:has_native_subject ?native_subject . + ?native_subject skos:narrowMatch ?aat . + } + }; + + 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 { + ?record aocat:has_temporal_coverage ?temporal . + ?temporal aocat:has_native_period ?native_period . + ?native_period skos:prefLabel ?native_label . + optional { + GRAPH { + ?periodO skos:altLabel ?native_label . + ?periodO skos:inScheme . + ?periodO time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom . + ?periodO time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil . + } + } + } + }; \ No newline at end of file