From f8a3bc5a0ed21a8442d0ac9cafe59fd43cff653f Mon Sep 17 00:00:00 2001 From: Alessia Bardi Date: Fri, 7 Aug 2020 12:28:17 +0200 Subject: [PATCH] sparql query to get the collections without mandatory fields --- ...check_missing_mandatory_coll_fields.sparql | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/check_missing_mandatory_coll_fields.sparql diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/check_missing_mandatory_coll_fields.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/check_missing_mandatory_coll_fields.sparql new file mode 100644 index 0000000..ab8e6f4 --- /dev/null +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/check_missing_mandatory_coll_fields.sparql @@ -0,0 +1,74 @@ +PREFIX skos: +PREFIX aocat: +PREFIX rdf: +PREFIX rdfs: + +SELECT * WHERE { + GRAPH ?g { + { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:has_access_rights ?o . + } + } + UNION { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:has_ARIADNE_subject ?ariadneSubject . + } + } + UNION { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:has_access_rights ?ar . + } + } + UNION { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:has_publisher ?agent . + } + } + UNION { + + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:has_owner ?agent . + } + } + UNION { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:has_responsible ?agent . + } + } + UNION{ + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:has_contributor ?agent . + } + } + UNION{ + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:was_issued ?agent . + } + } + UNION{ + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:was_modified ?agent . + } + } +} + FILTER(?g != ) +} \ No newline at end of file