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 fd02f16..8cd7bef 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
@@ -28,8 +28,6 @@ INSERT {
?record aocat:was_issued ?issued .
?record aocat:was_modified ?modified .
?record aocat:has_contributor ?contributor .
- ?record aocat:has_responsible ?legalResponsible .
- ?record aocat:has_owner ?owner .
?record aocat:has_publisher ?publisher .
?record aocat:has_access_rights ?accessRights .
?record aocat:has_ARIADNE_subject ?archeologicalResourceType .
@@ -41,8 +39,6 @@ WHERE {
?collection aocat:was_issued ?issued .
?collection aocat:was_modified ?modified .
?collection aocat:has_contributor ?contributor .
- ?collection aocat:has_responsible ?legalResponsible .
- ?collection aocat:has_owner ?owner .
?collection aocat:has_publisher ?publisher .
?collection aocat:has_access_rights ?accessRights .
?collection aocat:has_ARIADNE_subject ?archeologicalResourceType .
@@ -98,10 +94,28 @@ WHERE {
}
};
+PREFIX dcterms:
+INSERT {
+ GRAPH {
+ ?periodO ?pred ?o .
+ ?o ?pred2 ?o2 .
+ ?o2 ?pred3 ?o3 .
+ }
+ }
+ WHERE {
+ GRAPH {
+ ?periodO dcterms:spatial .
+ ?periodO ?pred ?o .
+ optional {
+ ?o ?pred2 ?o2 .
+ optional {
+ ?o2 ?pred3 ?o3 .
+ }
+ }
+ }
+ };
-
-
-PREFIX skos:
+ PREFIX skos:
PREFIX aocat:
PREFIX time:
PREFIX dcterms:
@@ -124,4 +138,4 @@ PREFIX skos:
}
}
}
- };
\ No newline at end of file
+ };
diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ZRC/ordered_sparql_insert_zrc_zbiva.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ZRC/ordered_sparql_insert_zrc_zbiva.sparql
index bf946b6..ea04d95 100644
--- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ZRC/ordered_sparql_insert_zrc_zbiva.sparql
+++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ZRC/ordered_sparql_insert_zrc_zbiva.sparql
@@ -1,74 +1,3 @@
-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 .
- ?s aocat:was_created_on ?created_on .
-};
-
-PREFIX aocat:
-PREFIX rdf:
-PREFIX rdfs:
-INSERT {
- GRAPH {
- ?s aocat:has_temporal_coverage .
- rdf:type .
- rdfs:label "Not provided" .
-
- }
-}
-WHERE {
- GRAPH {
- ?s rdf:type .
- MINUS {
- ?s rdf:type .
- ?s aocat:has_temporal_coverage ?tc .
- }
- }
-};
-
-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:
-INSERT {
- GRAPH {
- ?coll ?p ?value
- }
-}
-WHERE {
- GRAPH {
- ?coll ?p ?value .
- ?coll aocat:has_original_id ?id .
- }
- FILTER(?id="Zbiva")
-};
-
PREFIX aocat:
PREFIX skos:
INSERT {
@@ -144,4 +73,96 @@ PREFIX skos:
}
}
}
- };
\ No newline at end of file
+ };
+
+PREFIX skos:
+PREFIX aocat:
+PREFIX rdf:
+PREFIX rdfs:
+PREFIX dcterms:
+PREFIX dc:
+PREFIX ariadneplus:
+PREFIX xsd:
+ insert
+ {
+ GRAPH {
+ ?s aocat:was_issued ?year .
+ }
+ }
+ WHERE
+ {
+ GRAPH {
+ ?s rdf:type aocat:AO_Individual_Data_Resource .
+ ?s aocat:was_issued ?o .
+ FILTER(contains(str(?o), "."))
+ BIND( strdt( strafter(strafter(str(?o),"."),".") , xsd:datetime) AS ?year)
+ }
+ };
+
+PREFIX skos:
+PREFIX aocat:
+PREFIX rdf:
+PREFIX rdfs:
+PREFIX dcterms:
+PREFIX dc:
+PREFIX ariadneplus:
+PREFIX xsd:
+ delete {
+ GRAPH {
+ ?s aocat:was_issued ?o .
+ }
+ }
+ where {
+ GRAPH {
+ ?s rdf:type aocat:AO_Individual_Data_Resource .
+ ?s aocat:was_issued ?o .
+ FILTER(contains(str(?o), "."))
+ }
+
+ };
+
+ PREFIX skos:
+ PREFIX aocat:
+ PREFIX rdf:
+ PREFIX rdfs:
+ PREFIX dcterms:
+ PREFIX dc:
+ PREFIX ariadneplus:
+ PREFIX xsd:
+ insert
+ {
+ GRAPH {
+ ?s aocat:was_modified ?year .
+ }
+ }
+ WHERE
+ {
+ GRAPH {
+ ?s rdf:type aocat:AO_Individual_Data_Resource .
+ ?s aocat:was_modified ?o .
+ FILTER(contains(str(?o), "."))
+ BIND( strdt( strafter(strafter(str(?o),"."),".") , xsd:datetime) AS ?year)
+ }
+ };
+
+ PREFIX skos:
+ PREFIX aocat:
+ PREFIX rdf:
+ PREFIX rdfs:
+ PREFIX dcterms:
+ PREFIX dc:
+ PREFIX ariadneplus:
+ PREFIX xsd:
+ delete {
+ GRAPH {
+ ?s aocat:was_modified ?o .
+ }
+ }
+ where {
+ GRAPH {
+ ?s rdf:type aocat:AO_Individual_Data_Resource .
+ ?s aocat:was_modified ?o .
+ FILTER(contains(str(?o), "."))
+ }
+
+ };
\ No newline at end of file