diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/OEAW/ordered_sparql_insert_collection_oeaw.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/OEAW/ordered_sparql_insert_collection_oeaw.sparql new file mode 100644 index 0000000..7aa6564 --- /dev/null +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/OEAW/ordered_sparql_insert_collection_oeaw.sparql @@ -0,0 +1,19 @@ +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 . + } + } +}; \ No newline at end of file diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/OEAW/ordered_sparql_insert_oeaw.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/OEAW/ordered_sparql_insert_oeaw.sparql new file mode 100644 index 0000000..8ac805f --- /dev/null +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/OEAW/ordered_sparql_insert_oeaw.sparql @@ -0,0 +1,54 @@ +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: +INSERT { + GRAPH { + ?record aocat:has_contributor ?contributor . + ?contributor aocat:has_name ?contrib . + ?record aocat:has_responsible ?legalResponsible . + ?legalResponsible aocat:has_name ?resp . + ?record aocat:has_owner ?owner . + ?owner aocat:has_name ?own . + ?record aocat:has_publisher ?publisher . + ?publisher aocat:has_name ?pub . + ?record aocat:has_creator ?creator . + ?creator aocat:has_name ?creatorName . + ?record aocat:has_access_rights ?accessRights . + } +} +USING +USING +WHERE { + ?record aocat:is_part_of ?collection . + ?collection aocat:has_contributor ?contributor . + ?contributor aocat:has_name ?contrib . + ?collection aocat:has_responsible ?legalResponsible . + ?legalResponsible aocat:has_name ?resp . + ?collection aocat:has_owner ?owner . + ?owner aocat:has_name ?own . + ?collection aocat:has_publisher ?publisher . + ?publisher aocat:has_name ?pub . + ?collection aocat:has_creator ?creator . + ?creator aocat:has_name ?creatorName . + ?collection aocat:has_access_rights ?accessRights . +}; \ No newline at end of file