diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/NIAM/ordered_sparql_insert_niam.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/NIAM/ordered_sparql_insert_niam.sparql
index 98327bb..4fda5bc 100644
--- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/NIAM/ordered_sparql_insert_niam.sparql
+++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/NIAM/ordered_sparql_insert_niam.sparql
@@ -1,47 +1,19 @@
+
PREFIX aocat:
PREFIX rdf:
PREFIX rdfs:
INSERT {
GRAPH {
- ?s aocat:has_temporal_coverage .
- rdf:type .
- rdfs:label "Not provided" .
-
+ ?s aocat:has_title "Title not provided".
}
}
WHERE {
GRAPH {
- ?s rdf:type .
- MINUS {
- ?s rdf:type .
- ?s aocat:has_temporal_coverage ?tc .
- }
- }
-};
-
-PREFIX aocat:
-PREFIX skos:
-PREFIX ariadneplus:
-
-INSERT {
- GRAPH {
- ?record aocat:was_issued ?issued .
- ?record aocat:was_modified ?modified .
- ?record aocat:has_contributor ?contributor .
- ?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_publisher ?publisher .
- ?collection aocat:has_access_rights ?accessRights .
- ?collection aocat:has_ARIADNE_subject ?archeologicalResourceType .
+ ?s rdf:type aocat:AO_Individual_Data_Resource .
+ MINUS {
+ ?s aocat:has_title ?t .
+ }
+ }
};
PREFIX aocat:
@@ -63,6 +35,63 @@ WHERE {
}
};
+PREFIX aocat:
+PREFIX skos:
+PREFIX ariadneplus:
+
+INSERT {
+ GRAPH {
+ ?record aocat:was_issued ?issued .
+ }
+}
+USING
+WHERE {
+ ?record aocat:is_part_of ?collection .
+ ?collection aocat:was_issued ?issued .
+ MINUS {
+ ?record aocat:is_part_of ?collection .
+ ?record aocat:was_issued ?x .
+ }
+};
+
+PREFIX aocat:
+PREFIX skos:
+PREFIX ariadneplus:
+
+INSERT {
+ GRAPH {
+ ?record aocat:has_ARIADNE_subject ?subj .
+ }
+}
+USING
+WHERE {
+ ?record aocat:is_part_of ?collection .
+ ?collection aocat:has_ARIADNE_subject ?subj .
+ MINUS {
+ ?record aocat:is_part_of ?collection .
+ ?record aocat:has_ARIADNE_subject ?x .
+ }
+};
+
+PREFIX aocat:
+PREFIX skos:
+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 aocat:
PREFIX skos:
INSERT {
@@ -94,24 +123,7 @@ WHERE {
}
};
-PREFIX aocat:
-PREFIX skos:
-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 dcterms:
INSERT {