diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/THANADOS/ordered_sparql_insert_THANADOS-coll.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/THANADOS/ordered_sparql_insert_THANADOS-coll.sparql
new file mode 100644
index 0000000..a263a0c
--- /dev/null
+++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/THANADOS/ordered_sparql_insert_THANADOS-coll.sparql
@@ -0,0 +1,51 @@
+PREFIX aocat:
+PREFIX rdf:
+PREFIX skos:
+INSERT DATA {
+ GRAPH {
+ aocat:has_type .
+ rdf:type .
+ skos:prefLabel "collection"
+ }
+ };
+
+PREFIX aocat:
+PREFIX skos:
+PREFIX rdf:
+PREFIX rdfs:
+INSERT {
+ GRAPH {
+ ?s aocat:was_issued ?c
+ }
+ }
+ WHERE {
+ GRAPH {
+ ?s rdf:type .
+ ?s aocat:was_created_on ?c .
+ MINUS{
+ ?s rdf:type .
+ ?s aocat:was_issued ?date .
+ }
+ }
+};
+
+PREFIX aocat:
+PREFIX skos:
+PREFIX rdf:
+PREFIX rdfs:
+INSERT {
+ GRAPH {
+ ?s aocat:was_modified ?c
+ }
+ }
+ WHERE {
+ GRAPH {
+ ?s rdf:type .
+ ?s aocat:was_created_on ?c .
+ MINUS{
+ ?s rdf:type .
+ ?s aocat:was_modified ?date .
+ }
+ }
+};
+
diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/THANADOS/ordered_sparql_insert_THANADOS.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/THANADOS/ordered_sparql_insert_THANADOS.sparql
index 56d46d8..0d9dd59 100644
--- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/THANADOS/ordered_sparql_insert_THANADOS.sparql
+++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/THANADOS/ordered_sparql_insert_THANADOS.sparql
@@ -1,16 +1,3 @@
-DELETE {
- GRAPH {
- ?p ?o .
- ?s ?x .
- }
-}
-WHERE {
- GRAPH {
- ?p ?o .
- ?s ?x .
- }
-};
-
PREFIX aocat:
PREFIX rdf:
PREFIX skos:
@@ -26,7 +13,7 @@ INSERT {
?s rdf:type .
MINUS {
?s rdf:type .
- ?s aocat:has_type ?t .
+ ?s aocat:has_type .
}
}
};
@@ -37,33 +24,40 @@ PREFIX rdfs:
INSERT {
GRAPH {
?s aocat:has_temporal_coverage ?tcov .
+ ?tcov ?p ?o .
}
}
+USING
+USING
WHERE {
- GRAPH {
?s rdf:type .
?s aocat:is_part_of ?coll .
?coll aocat:has_temporal_coverage ?tcov .
+ ?tcov ?p ?o .
MINUS {
?s rdf:type .
?s aocat:has_temporal_coverage ?tc .
}
- }
};
+
PREFIX aocat:
+PREFIX skos:
PREFIX rdf:
+PREFIX rdfs:
INSERT {
GRAPH {
- ?s aocat:has_title "Title not provided" .
+ rdf:type .
+ rdfs:label "THANADOS team" .
+ aocat:has_name "THANADOS team"@en .
+ ?s aocat:has_publisher .
}
}
WHERE {
- GRAPH {
- ?s rdf:type aocat:AO_Individual_Data_Resource .
+GRAPH {
+ ?s rdf:type .
MINUS {
- ?s rdf:type aocat:AO_Individual_Data_Resource .
- ?s aocat:has_title ?title .
+ ?s aocat:has_publisher ?x .
}
}
};
@@ -74,20 +68,82 @@ PREFIX rdf:
PREFIX rdfs:
INSERT {
GRAPH {
- rdf:type .
- rdfs:label "THANADOS" .
- aocat:has_name "THANADOS" .
- ?s aocat:has_creator .
- ?s aocat:has_contributor .
- ?s aocat:has_responsible .
- ?s aocat:has_owner .
- ?s aocat:has_publisher .
+ rdf:type .
+ rdfs:label "THANADOS team" .
+ aocat:has_name "THANADOS team"@en .
+ ?s aocat:has_creator .
+ }
+}
+WHERE {
+GRAPH {
+ ?s rdf:type .
+ MINUS {
+ ?s aocat:has_creator ?x .
}
- }
- WHERE {
+ }
+};
+PREFIX aocat:
+PREFIX skos:
+PREFIX rdf:
+PREFIX rdfs:
+INSERT {
GRAPH {
- ?s rdf:type .
+ rdf:type .
+ rdfs:label "THANADOS team" .
+ aocat:has_name "THANADOS team"@en .
+
+ ?s aocat:has_contributor .
+
+ }
+}
+WHERE {
+GRAPH {
+ ?s rdf:type .
+ MINUS {
+ ?s aocat:has_contributor ?x .
}
+ }
+};
+PREFIX aocat:
+PREFIX skos:
+PREFIX rdf:
+PREFIX rdfs:
+INSERT {
+ GRAPH {
+ rdf:type .
+ rdfs:label "THANADOS team" .
+ aocat:has_name "THANADOS team"@en .
+ ?s aocat:has_responsible .
+ }
+}
+WHERE {
+GRAPH {
+ ?s rdf:type .
+ MINUS {
+ ?s aocat:has_responsible ?x .
+ }
+ }
+};
+PREFIX aocat:
+PREFIX skos:
+PREFIX rdf:
+PREFIX rdfs:
+INSERT {
+ GRAPH {
+ rdf:type .
+ rdfs:label "THANADOS team" .
+ aocat:has_name "THANADOS team"@en .
+ ?s aocat:has_owner .
+
+ }
+}
+WHERE {
+GRAPH {
+ ?s rdf:type .
+ MINUS {
+ ?s aocat:has_owner ?x .
+ }
+ }
};
PREFIX aocat:
@@ -145,124 +201,133 @@ INSERT {
WHERE {
GRAPH {
?s rdf:type aocat:AO_Individual_Data_Resource .
- MINUS {
+ }
+};
+
+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_type ?t .
- }
+ ?s aocat:has_title ?title .
}
+ }
};
PREFIX aocat:
+PREFIX skos:
PREFIX rdf:
+PREFIX rdfs:
INSERT {
GRAPH {
-
- ?s aocat:has_creator ?cr .
-
- }
- }
- WHERE {
- GRAPH {
- ?s rdf:type .
- ?s aocat:is_part_of ?coll .
- ?coll aocat:has_creator ?cr .
- MINUS{
- ?s rdf:type .
- ?s aocat:has_creator ?x
- }
-
+ rdf:type .
+ rdfs:label "THANADOS team" .
+ aocat:has_name "THANADOS team"@en .
+ ?s aocat:has_publisher .
+ }
+}
+WHERE {
+GRAPH {
+ ?s rdf:type .
+ MINUS {
+ ?s aocat:has_publisher ?x .
}
+ }
};
PREFIX aocat:
+PREFIX skos:
PREFIX rdf:
+PREFIX rdfs:
INSERT {
GRAPH {
-
- ?s aocat:has_contributor ?cr .
-
- }
- }
- WHERE {
- GRAPH {
- ?s rdf:type .
- ?s aocat:is_part_of ?coll .
- ?coll aocat:has_contributor ?cr .
- MINUS{
- ?s rdf:type .
- ?s aocat:has_contributor ?x
- }
-
+ rdf:type .
+ rdfs:label "THANADOS team" .
+ aocat:has_name "THANADOS team"@en .
+ ?s aocat:has_creator .
+ }
+}
+WHERE {
+GRAPH {
+ ?s rdf:type .
+ MINUS {
+ ?s aocat:has_creator ?x .
}
+ }
};
-
PREFIX aocat:
+PREFIX skos:
PREFIX rdf:
+PREFIX rdfs:
INSERT {
GRAPH {
+ rdf:type .
+ rdfs:label "THANADOS team" .
+ aocat:has_name "THANADOS team"@en .
- ?s aocat:has_responsible ?cr .
-
- }
- }
- WHERE {
- GRAPH {
- ?s rdf:type .
- ?s aocat:is_part_of ?coll .
- ?coll aocat:has_responsible ?cr .
- MINUS{
- ?s rdf:type .
- ?s aocat:has_responsible ?x
- }
+ ?s aocat:has_contributor .
+ }
+}
+WHERE {
+GRAPH {
+ ?s rdf:type .
+ MINUS {
+ ?s aocat:has_contributor ?x .
}
+ }
};
-
PREFIX aocat:
+PREFIX skos:
PREFIX rdf:
+PREFIX rdfs:
INSERT {
GRAPH {
-
- ?s aocat:has_owner ?cr .
-
- }
- }
- WHERE {
- GRAPH {
- ?s rdf:type .
- ?s aocat:is_part_of ?coll .
- ?coll aocat:has_owner ?cr .
- MINUS{
- ?s rdf:type .
- ?s aocat:has_owner ?x
- }
-
+ rdf:type .
+ rdfs:label "THANADOS team" .
+ aocat:has_name "THANADOS team"@en .
+ ?s aocat:has_responsible .
+ }
+}
+WHERE {
+GRAPH {
+ ?s rdf:type .
+ MINUS {
+ ?s aocat:has_responsible ?x .
}
+ }
};
-
PREFIX aocat:
+PREFIX skos:
PREFIX rdf:
+PREFIX rdfs:
INSERT {
GRAPH {
+ rdf:type .
+ rdfs:label "THANADOS team" .
+ aocat:has_name "THANADOS team"@en .
+ ?s aocat:has_owner .
- ?s aocat:has_publisher ?cr .
-
- }
- }
- WHERE {
- GRAPH {
- ?s rdf:type .
- ?s aocat:is_part_of ?coll .
- ?coll aocat:has_publisher ?cr .
- MINUS{
- ?s rdf:type .
- ?s aocat:has_publisher ?x
- }
-
+ }
+}
+WHERE {
+GRAPH {
+ ?s rdf:type .
+ MINUS {
+ ?s aocat:has_owner ?x .
}
+ }
};
+
PREFIX aocat:
PREFIX rdf:
INSERT {
@@ -272,8 +337,9 @@ INSERT {
}
}
+USING
+USING
WHERE {
- GRAPH {
?s rdf:type .
?s aocat:is_part_of ?coll .
?coll aocat:was_issued ?cr .
@@ -282,7 +348,6 @@ INSERT {
?s aocat:was_issued ?x
}
- }
};
PREFIX aocat:
@@ -290,15 +355,13 @@ PREFIX rdf:
INSERT {
GRAPH {
- ?s aocat:has_access_rights ?cr .
+ ?s aocat:has_access_rights "Not provided"
}
}
WHERE {
GRAPH {
?s rdf:type .
- ?s aocat:is_part_of ?coll .
- ?coll aocat:has_access_rights ?cr .
MINUS{
?s rdf:type .
?s aocat:has_access_rights ?x
@@ -306,6 +369,24 @@ INSERT {
}
};
+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: