diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/BMPAS/ordered_sparql_insert_bmpas_artefacts.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/BMPAS/ordered_sparql_insert_bmpas_artefacts.sparql index c169329..70118af 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/BMPAS/ordered_sparql_insert_bmpas_artefacts.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/BMPAS/ordered_sparql_insert_bmpas_artefacts.sparql @@ -133,27 +133,37 @@ WHERE { PREFIX skos: PREFIX aocat: PREFIX time: - PREFIX dcterms: + PREFIX rdfs: INSERT { GRAPH { - ?temporal aocat:has_period ?periodO . - ?temporal aocat:from ?temporalFrom . - ?temporal aocat:until ?temporalUntil . + ?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 skos:prefLabel ?t_label . - optional { - GRAPH { - ?periodO skos:altLabel ?p_label . - ?periodO time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom . - ?periodO time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil . - } - } - bind(ucase(?t_label) as ?u_t_label) - bind(ucase(?p_label) as ?u_p_label) - filter(?u_t_label=?u_p_label) - } - }; \ No newline at end of file + ?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/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/BMPAS/ordered_sparql_insert_bmpas_coins.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/BMPAS/ordered_sparql_insert_bmpas_coins.sparql index 66065e0..c8a2afd 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/BMPAS/ordered_sparql_insert_bmpas_coins.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/BMPAS/ordered_sparql_insert_bmpas_coins.sparql @@ -133,27 +133,37 @@ WHERE { PREFIX skos: PREFIX aocat: PREFIX time: - PREFIX dcterms: + PREFIX rdfs: INSERT { GRAPH { - ?temporal aocat:has_period ?periodO . - ?temporal aocat:from ?temporalFrom . - ?temporal aocat:until ?temporalUntil . + ?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 skos:prefLabel ?t_label . - optional { - GRAPH { - ?periodO skos:altLabel ?p_label . - ?periodO time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom . - ?periodO time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil . - } - } - bind(ucase(?t_label) as ?u_t_label) - bind(ucase(?p_label) as ?u_p_label) - filter(?u_t_label=?u_p_label) - } - }; \ No newline at end of file + ?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