diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu.dnetlib.ariadneplus.sparql.enrich.FI/ordered_sparql_insert_FI_Isleif-collection.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu.dnetlib.ariadneplus.sparql.enrich.FI/ordered_sparql_insert_FI_Isleif-collection.sparql new file mode 100644 index 0000000..022b7a2 --- /dev/null +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu.dnetlib.ariadneplus.sparql.enrich.FI/ordered_sparql_insert_FI_Isleif-collection.sparql @@ -0,0 +1,90 @@ +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 ariadneplus: +PREFIX aocat: +PREFIX owl: +PREFIX skos: +INSERT { + GRAPH { + ?record aocat:has_derived_subject ?aat . + } +} +USING +USING +WHERE { + { + ?record aocat:has_native_subject ?concept . + ?concept skos:exactMatch ?aat . + } + union + { + ?record aocat:has_native_subject ?concept . + ?concept skos:broadMatch ?aat . + } + union + { + ?record aocat:has_native_subject ?concept . + ?concept skos:closeMatch ?aat . + } + union + { + ?record aocat:has_native_subject ?concept . + ?concept skos:narrowMatch ?aat . + } +}; + + + PREFIX skos: + PREFIX aocat: + PREFIX rdfs: + INSERT { + GRAPH { + ?native_period skos:prefLabel ?lab + } + } + WHERE { + GRAPH { + ?temporal aocat:has_native_period ?native_period . + ?native_period rdfs:label ?lab + } + }; + + PREFIX skos: + PREFIX aocat: + PREFIX time: + INSERT { + GRAPH { + ?temporal aocat:has_period ?periodO . + ?temporal aocat:from ?temporalFrom . + ?temporal aocat:until ?temporalUntil . + } + } + WHERE { + GRAPH { + ?temporal aocat:has_native_period ?native_period . + ?temporal aocat:from ?temporalFrom . + ?temporal aocat:until ?temporalUntil . + } + }; + diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu.dnetlib.ariadneplus.sparql.enrich.FI/ordered_sparql_insert_FI_Isleif.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu.dnetlib.ariadneplus.sparql.enrich.FI/ordered_sparql_insert_FI_Isleif.sparql index 73cccb4..a260c31 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu.dnetlib.ariadneplus.sparql.enrich.FI/ordered_sparql_insert_FI_Isleif.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu.dnetlib.ariadneplus.sparql.enrich.FI/ordered_sparql_insert_FI_Isleif.sparql @@ -255,30 +255,27 @@ USING USING WHERE { { - ?record aocat:has_native_subject ?native_subject . - ?concept owl:sameAs ?native_subject . + ?record aocat:has_native_subject ?concept . ?concept skos:exactMatch ?aat . } union { - ?record aocat:has_native_subject ?native_subject . - ?concept owl:sameAs ?native_subject . + ?record aocat:has_native_subject ?concept . ?concept skos:broadMatch ?aat . } union { - ?record aocat:has_native_subject ?native_subject . - ?concept owl:sameAs ?native_subject . + ?record aocat:has_native_subject ?concept . ?concept skos:closeMatch ?aat . } union { - ?record aocat:has_native_subject ?native_subject . - ?concept owl:sameAs ?native_subject . + ?record aocat:has_native_subject ?concept . ?concept skos:narrowMatch ?aat . } }; + PREFIX skos: PREFIX aocat: PREFIX time: