diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_niwrecks2.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_niwrecks2.sparql
index 6009496..62b4b62 100644
--- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_niwrecks2.sparql
+++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_niwrecks2.sparql
@@ -9,6 +9,7 @@ INSERT DATA {
};
PREFIX aocat:
INSERT { GRAPH { ?record aocat:has_ARIADNE_subject ?as. } }
+USING
WHERE {
?record aocat:is_part_of ?collection.
?collection aocat:has_ARIADNE_subject ?as.
@@ -16,6 +17,7 @@ WHERE {
};
PREFIX aocat:
INSERT { GRAPH { ?record aocat:was_modified ?modified. } }
+USING
WHERE {
?record aocat:is_part_of ?collection.
?collection aocat:was_modified ?modified.
@@ -23,21 +25,45 @@ WHERE {
};
PREFIX aocat:
INSERT { GRAPH { ?record aocat:was_issued ?date. } }
+USING
WHERE {
?record aocat:is_part_of ?collection.
?collection aocat:was_issued ?date.
MINUS { ?record aocat:was_issued ?thedate. }
};
+
PREFIX aocat:
INSERT { GRAPH { ?record aocat:has_contributor ?agent. } }
+USING
WHERE {
?record aocat:is_part_of ?collection.
?collection aocat:has_contributor ?agent.
MINUS { ?record aocat:has_contributor ?x. }
};
+
+PREFIX aocat:
+INSERT { GRAPH { ?record aocat:has_creator ?agent. } }
+USING
+WHERE {
+ ?record aocat:is_part_of ?collection.
+ ?collection aocat:has_creator ?agent.
+ MINUS { ?record aocat:has_creator ?x. }
+};
+
+PREFIX aocat:
+PREFIX rdfs:
+INSERT { GRAPH { ?creator aocat:has_name ?name. } }
+USING
+WHERE {
+ ?record aocat:has_creator ?creator.
+ ?creator rdfs:label ?name.
+ MINUS { ?creator aocat:has_name ?cname. }
+};
+
PREFIX aocat:
PREFIX rdfs:
INSERT { GRAPH { ?contributor aocat:has_name ?name. } }
+USING
WHERE {
?record aocat:has_contributor ?contributor.
?contributor rdfs:label ?name.
@@ -45,6 +71,7 @@ WHERE {
};
PREFIX aocat:
INSERT { GRAPH { ?record aocat:has_responsible ?agent. } }
+USING
WHERE {
?record aocat:is_part_of ?collection.
?collection aocat:has_responsible ?agent.
@@ -52,6 +79,7 @@ WHERE {
};
PREFIX aocat:
INSERT { GRAPH { ?record aocat:has_owner ?agent. } }
+USING
WHERE {
?record aocat:is_part_of ?collection.
?collection aocat:has_owner ?agent.
@@ -59,6 +87,7 @@ WHERE {
};
PREFIX aocat:
INSERT { GRAPH { ?record aocat:has_publisher ?agent. } }
+USING
WHERE {
?record aocat:is_part_of ?collection.
?collection aocat:has_publisher ?agent.
@@ -66,6 +95,7 @@ WHERE {
};
PREFIX aocat:
INSERT { GRAPH { ?record aocat:has_access_rights ?ar. } }
+USING
WHERE {
?record aocat:is_part_of ?collection.
?collection aocat:has_access_rights ?ar.
@@ -74,6 +104,8 @@ WHERE {
PREFIX aocat:
PREFIX skos:
INSERT { GRAPH { ?record aocat:has_derived_subject ?aat. } }
+USING
+USING
WHERE {
{
?record aocat:has_native_subject ?native_subject.
@@ -110,9 +142,9 @@ WHERE {
?temporal aocat:has_native_period ?native_period.
?native_period skos:prefLabel ?native_label.
GRAPH {
- ?periodO skos:altLabel ?native_label;
- skos:inScheme ;
- time:intervalStartedBy ?intervalStartedBy.
+ ?periodO skos:altLabel ?native_label .
+ ?periodO skos:inScheme .
+ ?periodO time:intervalStartedBy ?intervalStartedBy.
?intervalStartedBy skos:prefLabel ?temporalFrom.
?periodO time:intervalFinishedBy ?intervalFinishedBy.
?intervalFinishedBy skos:prefLabel ?temporalUntil.