diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/UB/ordered_sparql_insert_inscription.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/UB/ordered_sparql_insert_inscription.sparql
new file mode 100644
index 0000000..e2c0dd2
--- /dev/null
+++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/UB/ordered_sparql_insert_inscription.sparql
@@ -0,0 +1,153 @@
+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 rdfs:
+PREFIX skos:
+INSERT {
+ GRAPH {
+ ?s aocat:has_type .
+ rdf:type .
+ skos:prefLabel "provided record"
+ }
+ }
+ WHERE {
+ GRAPH {
+ ?s rdf:type aocat:AO_Individual_Data_Resource .
+ MINUS {
+ ?s rdf:type aocat:AO_Individual_Data_Resource .
+ ?s aocat:has_type ?t .
+ }
+ }
+};
+
+PREFIX aocat:
+PREFIX skos:
+PREFIX rdf:
+PREFIX rdfs:
+INSERT {
+ GRAPH {
+ ?s aocat:was_issued ?created_on .
+ ?s aocat:was_modified ?created_on .
+ }
+}
+USING
+WHERE {
+ ?s rdf:type aocat:AO_Individual_Data_Resource .
+ ?s aocat:was_created_on ?created_on .
+ MINUS {
+ ?s rdf:type aocat:AO_Individual_Data_Resource .
+ ?s aocat:was_issued ?issued .
+ ?s aocat:was_modified ?modified .
+ }
+};
+
+PREFIX aocat:
+PREFIX skos:
+PREFIX rdf:
+PREFIX rdfs:
+INSERT {
+ GRAPH {
+ ?s aocat:has_contributor .
+ rdf:type .
+ rdfs:label "Not provided" .
+ 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_contributor ?contributor .
+ }
+ }
+};
+
+PREFIX aocat:
+PREFIX skos:
+
+INSERT {
+ GRAPH {
+ ?record aocat:has_derived_subject ?derived_subject .
+ }
+}
+USING
+WHERE {
+ {
+ ?record aocat:has_derived_subject ?derived_subject .
+ }
+};
+
+PREFIX aocat:
+PREFIX skos:
+
+INSERT {
+ GRAPH {
+ ?derived_subject skos:prefLabel ?dslabel .
+ }
+}
+USING
+WHERE {
+ {
+ ?record aocat:has_derived_subject ?derived_subject .
+ ?derived_subject skos:prefLabel ?dslabel .
+ }
+};
+
+PREFIX skos:
+ PREFIX aocat:
+ PREFIX time:
+ PREFIX rdfs:
+ INSERT {
+ GRAPH {
+ ?temporal aocat:has_period ?native_period .
+ ?temporal aocat:from ?from .
+ ?temporal aocat:until ?until .
+ }
+ }
+ WHERE {
+ GRAPH {
+ ?temporal aocat:has_native_period ?native_period .
+ ?native_period rdfs:label|skos:prefLabel ?native_label .
+ ?temporal aocat:from ?from .
+ ?temporal aocat:until ?until .
+ }
+ };
+
+ PREFIX skos:
+ PREFIX aocat:
+ PREFIX time:
+ PREFIX rdfs:
+ INSERT {
+ GRAPH {
+ ?native_period skos:prefLabel ?native_label .
+ }
+ }
+ WHERE {
+ GRAPH {
+ ?temporal aocat:has_native_period ?native_period .
+ ?native_period rdfs:label|skos:prefLabel ?native_label .
+ ?temporal aocat:from ?from .
+ ?temporal aocat:until ?until .
+ }
+ };
\ No newline at end of file
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 63b6664..b45b3a9 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
@@ -428,6 +428,15 @@ public class GraphDbReaderAndESIndexTest {
readAndIndexTest(isRecord, recordId, datasource, collectionId);
}
+ @Test
+ public void uploadUBCollectionTest() throws Exception {
+ boolean isRecord = false;
+ String recordId = "https://ariadne-infrastructure.eu/aocat/Collection/UB/F334A035-7757-3787-9849-E38FCD6A1FF5";
+ String datasource = "ub";
+ String collectionId = "inscription";
+ readAndIndexTest(isRecord, recordId, datasource, collectionId);
+ }
+
private class CollectionData {
String URI_ID;
String id;