From a59125e94f40e17f0a18c97080c805ed21fabce5 Mon Sep 17 00:00:00 2001 From: Tobias Kuhn Date: Thu, 15 Feb 2024 16:23:55 +0100 Subject: [PATCH] Create get-declared-manuscripts.rq --- get-declared-manuscripts.rq | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 get-declared-manuscripts.rq diff --git a/get-declared-manuscripts.rq b/get-declared-manuscripts.rq new file mode 100644 index 0000000..f3f626a --- /dev/null +++ b/get-declared-manuscripts.rq @@ -0,0 +1,27 @@ +#+ endpoint: https://query.np.trustyuri.net/repo/type/2b3dd81cf9f6bff6e8dd01c04772508b1b28fd94aa86b1c1c7830b9c51bd4871 + +prefix rdfs: +prefix np: +prefix npa: +prefix npx: +prefix xsd: +prefix dct: +prefix prov: +prefix foaf: + +select ?manuscript ?title ?author ?org ?np ?date ?creator where { + graph npa:graph { + ?np npa:hasValidSignatureForPublicKey ?pubkey . + ?np dct:created ?date . + ?np dct:creator ?creator . + ?np np:hasAssertion ?assertion . + filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . } + } + graph ?assertion { + ?manuscript a . + ?manuscript dct:title ?title . + ?manuscript ?author . + ?manuscript ?org . + } +} +order by desc(?date)