diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/FASTI/ordered_sparql_insert_collection_fasti.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/FASTI/ordered_sparql_insert_collection_fasti.sparql
new file mode 100644
index 0000000..874ee1d
--- /dev/null
+++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/FASTI/ordered_sparql_insert_collection_fasti.sparql
@@ -0,0 +1,41 @@
+PREFIX aocat:
+PREFIX skos:
+PREFIX rdf:
+PREFIX rdfs:
+INSERT {
+ GRAPH {
+ ?s aocat:was_issued ?date .
+ ?s aocat:was_modified ?date .
+ }
+}
+USING
+WHERE {
+ ?s rdf:type .
+ ?s aocat:was_created_on ?date .
+ MINUS {
+ ?s rdf:type .
+ ?s aocat:was_issued ?issued .
+ ?s aocat:was_modified ?modified .
+ }
+};
+
+PREFIX aocat:
+PREFIX rdf:
+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 .
+ }
+ }
+};
+
diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/FASTI/ordered_sparql_insert_fasti.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/FASTI/ordered_sparql_insert_fasti.sparql
index 0cc4802..b84034a 100644
--- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/FASTI/ordered_sparql_insert_fasti.sparql
+++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/FASTI/ordered_sparql_insert_fasti.sparql
@@ -1,48 +1,8 @@
-PREFIX aocat:
-PREFIX skos:
-PREFIX rdf:
-PREFIX rdfs:
-INSERT {
- GRAPH {
- ?s aocat:was_issued "2020-10-16"^^xsd:dateTime .
- ?s aocat:was_modified "2020-10-16"^^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 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 skos:
-INSERT {
- GRAPH {
+ GRAPH {
?coll ?p ?value
}
}
@@ -56,14 +16,14 @@ PREFIX aocat:
PREFIX skos:
PREFIX ariadneplus:
INSERT {
- GRAPH {
+ GRAPH {
?record aocat:has_contributor ?contributor .
?record aocat:has_responsible ?legalResponsible .
?record aocat:has_access_rights ?accessRights .
?record aocat:has_ARIADNE_subject ?archeologicalResourceType .
}
}
-USING
+USING
WHERE {
?record aocat:is_part_of ?collection .
?collection aocat:has_contributor ?contributor .
@@ -75,12 +35,12 @@ WHERE {
PREFIX aocat:
PREFIX rdf:
INSERT {
- GRAPH {
+ GRAPH {
?s aocat:was_issued ?collectionIssued .
}
}
WHERE {
- GRAPH {
+ GRAPH {
?s rdf:type aocat:AO_Individual_Data_Resource .
?s aocat:is_part_of ?collection .
?collection aocat:was_issued ?collectionIssued .
@@ -93,12 +53,12 @@ WHERE {
PREFIX aocat:
PREFIX rdf:
INSERT {
- GRAPH {
+ GRAPH {
?s aocat:was_modified ?collectionModified .
}
}
WHERE {
- GRAPH {
+ GRAPH {
?s rdf:type aocat:AO_Individual_Data_Resource .
?s aocat:is_part_of ?collection .
?collection aocat:was_modified ?collectionModified .
@@ -112,7 +72,7 @@ PREFIX aocat:
PREFIX rdf:
PREFIX rdfs:
INSERT {
- GRAPH {
+ GRAPH {
?s aocat:has_spatial_coverage .
rdf:type .
rdfs:label "Name not provided" .
@@ -120,7 +80,7 @@ INSERT {
}
}
WHERE {
- GRAPH {
+ GRAPH {
?s rdf:type aocat:AO_Individual_Data_Resource .
MINUS {
?s rdf:type aocat:AO_Individual_Data_Resource .
@@ -133,13 +93,13 @@ WHERE {
PREFIX aocat:
PREFIX skos:
INSERT {
- GRAPH {
+ GRAPH {
?s aocat:has_language .
skos:prefLabel "und" .
}
}
WHERE {
- GRAPH {
+ GRAPH {
?s rdf:type aocat:AO_Individual_Data_Resource .
MINUS {
?s rdf:type aocat:AO_Individual_Data_Resource .
@@ -153,14 +113,14 @@ PREFIX rdf:
PREFIX rdfs:
PREFIX skos:
INSERT {
- GRAPH {
+ GRAPH {
?s aocat:has_type .
rdf:type .
skos:prefLabel "provided record"
}
}
WHERE {
- GRAPH {
+ GRAPH {
?s rdf:type aocat:AO_Individual_Data_Resource .
MINUS {
?s rdf:type aocat:AO_Individual_Data_Resource .
@@ -171,14 +131,34 @@ INSERT {
PREFIX aocat:
PREFIX rdf:
+PREFIX rdfs:
+PREFIX skos:
INSERT {
- GRAPH {
+ GRAPH {
+ ?s aocat:has_original_id ?lp
+ }
+ }
+ WHERE {
+ GRAPH {
+ ?s rdf:type aocat:AO_Individual_Data_Resource .
+ ?s aocat:has_landing_page ?lp .
+ MINUS {
+ ?s rdf:type aocat:AO_Individual_Data_Resource .
+ ?s aocat:has_original_id ?id
+ }
+ }
+};
+
+PREFIX aocat:
+PREFIX rdf:
+INSERT {
+ GRAPH {
?s aocat:has_creator .
aocat:has_name "Not provided" .
}
}
WHERE {
- GRAPH {
+ GRAPH {
?s rdf:type aocat:AO_Individual_Data_Resource .
MINUS {
?s rdf:type aocat:AO_Individual_Data_Resource .
@@ -192,13 +172,13 @@ PREFIX rdf:
PREFIX rdfs:
PREFIX skos:
INSERT {
- GRAPH {
+ GRAPH {
?s aocat:has_native_subject .
skos:prefLabel "Not provided" .
}
}
WHERE {
- GRAPH {
+ GRAPH {
?s rdf:type aocat:AO_Individual_Data_Resource .
MINUS {
?s rdf:type aocat:AO_Individual_Data_Resource .
@@ -210,12 +190,12 @@ WHERE {
PREFIX aocat:
PREFIX rdf:
INSERT {
- GRAPH {
+ GRAPH {
?s aocat:has_title "Title not provided" .
}
}
WHERE {
- GRAPH {
+ GRAPH {
?s rdf:type aocat:AO_Individual_Data_Resource .
MINUS {
?s rdf:type aocat:AO_Individual_Data_Resource .
@@ -235,7 +215,7 @@ WHERE {
}
}
WHERE {
- GRAPH {
+ GRAPH {
?temporal aocat:has_native_period ?native_period .
?native_period skos:prefLabel ?native_label .
?temporal aocat:from ?from .