From ea4ed22b4de02395ec415926f7b705f1a2d1c26d Mon Sep 17 00:00:00 2001 From: Alessia Bardi Date: Tue, 15 Sep 2020 15:21:07 +0200 Subject: [PATCH 1/2] Collection 272 does not exist, we have 272_monument and 272_event --- .../ADS/ordered_sparql_insert_272.sparql | 238 ------------------ 1 file changed, 238 deletions(-) delete mode 100644 dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_272.sparql diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_272.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_272.sparql deleted file mode 100644 index 0416f6a..0000000 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_272.sparql +++ /dev/null @@ -1,238 +0,0 @@ -PREFIX aocat: -PREFIX skos: -PREFIX rdf: -PREFIX rdfs: -INSERT { - GRAPH { - ?collection aocat:has_ARIADNE_subject ?archeologicalResourceType . - ?archeologicalResourceType skos:prefLabel ?archeologicalResourceTypeName . - ?archeologicalResourceType rdfs:label ?archeologicalResourceTypeName . - } -} -WHERE { - ?collection rdf:type . - ?collection aocat:has_ARIADNE_subject ?archeologicalResourceType . - ?archeologicalResourceType skos:prefLabel ?archeologicalResourceTypeName . - ?collection aocat:has_original_id "1000272" . -}; -PREFIX aocat: -PREFIX rdf: -PREFIX rdfs: -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_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: - INSERT { - GRAPH { - ?record aocat:was_issued ?issued . - ?record aocat:was_modified ?modified . - ?record aocat:has_contributor ?contributor . - ?record aocat:has_responsible ?legalResponsible . - ?record aocat:has_owner ?owner . - ?record aocat:has_publisher ?publisher . - ?record aocat:has_access_rights ?accessRights . - ?record aocat:has_ARIADNE_subject ?archeologicalResourceType . - } - } - USING - WHERE { - ?record aocat:is_part_of ?collection . - ?collection aocat:was_issued ?issued . - ?collection aocat:was_modified ?modified . - ?collection aocat:has_contributor ?contributor . - ?collection aocat:has_responsible ?legalResponsible . - ?collection aocat:has_owner ?owner . - ?collection aocat:has_publisher ?publisher . - ?collection aocat:has_access_rights ?accessRights . - ?collection aocat:has_ARIADNE_subject ?archeologicalResourceType . - }; - - PREFIX skos: - PREFIX aocat: - PREFIX rdf: - INSERT { - GRAPH { - ?s aocat:has_native_subject . - skos:prefLabel "Not provided" . - } - } - WHERE { - GRAPH { - ?s rdf:type aocat:AO_Individual_Data_Resource . - MINUS { - ?s rdf:type aocat:AO_Individual_Data_Resource . - ?s aocat:has_native_subject ?ns . - } - } - }; - PREFIX skos: - PREFIX aocat: - PREFIX rdf: - INSERT { - GRAPH { - ?s aocat:has_language . - skos:prefLabel "und" . - } - } - WHERE { - GRAPH { - ?s rdf:type aocat:AO_Individual_Data_Resource . - MINUS { - ?s rdf:type aocat:AO_Individual_Data_Resource . - ?s aocat:has_language ?ns . - } - } - }; - - PREFIX aocat: - PREFIX rdf: - INSERT { - GRAPH { - ?s aocat:has_creator . - aocat:has_name "Not provided" . - } - } - WHERE { - GRAPH { - ?s rdf:type aocat:AO_Individual_Data_Resource . - MINUS { - ?s rdf:type aocat:AO_Individual_Data_Resource . - ?s aocat:has_creator ?creator . - } - } - }; - - PREFIX aocat: - PREFIX rdf: - INSERT { - GRAPH { - ?s aocat:has_title "Title not provided" . - } - } - WHERE { - GRAPH { - ?s rdf:type aocat:AO_Individual_Data_Resource . - MINUS { - ?s rdf:type aocat:AO_Individual_Data_Resource . - ?s aocat:has_title ?title . - } - } - }; - - - PREFIX skos: - PREFIX aocat: - 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 ariadneplus: -INSERT { - GRAPH { - ?temporal aocat:has_period ?periodO . - ?temporal aocat:from ?temporalFrom . - ?temporal aocat:until ?temporalUntil . - } - } - WHERE { - GRAPH { - ?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 ?intervalStartedBy . - ?intervalStartedBy skos:prefLabel ?temporalFrom . - ?periodO time:intervalFinishedBy ?intervalFinishedBy . - ?intervalFinishedBy skos:prefLabel ?temporalUntil . - } - } - } - }; - From ca3818695ecc1a85cd65a0cae8262dcea336913f Mon Sep 17 00:00:00 2001 From: Alessia Bardi Date: Tue, 22 Sep 2020 16:40:51 +0200 Subject: [PATCH 2/2] ignore test that uses remote services/resources --- .../eu/dnetlib/ariadneplus/GraphDbReaderAndESIndexTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnet-ariadneplus-graphdb-publisher/test/java/eu/dnetlib/ariadneplus/GraphDbReaderAndESIndexTest.java b/dnet-ariadneplus-graphdb-publisher/test/java/eu/dnetlib/ariadneplus/GraphDbReaderAndESIndexTest.java index 22fbd70..8a098ba 100644 --- a/dnet-ariadneplus-graphdb-publisher/test/java/eu/dnetlib/ariadneplus/GraphDbReaderAndESIndexTest.java +++ b/dnet-ariadneplus-graphdb-publisher/test/java/eu/dnetlib/ariadneplus/GraphDbReaderAndESIndexTest.java @@ -21,7 +21,7 @@ import java.util.Properties; * @author enrico.ottonello * */ -//@Ignore +@Ignore public class GraphDbReaderAndESIndexTest { private RunSPARQLQueryService runSPQRLQuery;