From 16828eecce2ebc23c80937bb1a3c52484c03c705 Mon Sep 17 00:00:00 2001 From: Alex Nelson Date: Thu, 9 Nov 2023 14:18:27 -0500 Subject: [PATCH] Add ProvenanceRecord to satisfy local shape A local-to-CASE-Corpora shape requires `InvestigativeAction`s to have `ProvenanceRecord`s as outputs. (See `/shapes/local.ttl`, `sh-case-corpora-local:InvestigativeAction-shape`.) That shape used a SHACL mechanism that was not active in this repository's testing until pySHACL Issue 213 was closed. This patch adds a `ProvenanceRecord` as output to the last non-subaction that had the phone as input. Review of the results of this SPARQL query indicate the device is not used in further actions, so this `ProvenanceRecord` has no further impact on the graph today. ```sparql SELECT ?nAction ?lDescription WHERE { ?nAction uco-action:object kb:device-ea732801-7d0e-46ac-a028-69b782c97a46 ; . OPTIONAL { ?nAction uco-core:description ?lDescription ; . } } ORDER BY ?nAction ``` There is some open question on how to tie the subactions' outputs to the parent action's `ProvenanceRecord`; that thread is on CASE Issue 136. A follow-on patch will regenerate Make-managed files. References: * https://github.com/RDFLib/pySHACL/issues/213 * https://github.com/casework/CASE/issues/136 Signed-off-by: Alex Nelson --- catalog/datasets/digitalcorpora-android-7/supplemental.ttl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/catalog/datasets/digitalcorpora-android-7/supplemental.ttl b/catalog/datasets/digitalcorpora-android-7/supplemental.ttl index f8be613..bce7d14 100644 --- a/catalog/datasets/digitalcorpora-android-7/supplemental.ttl +++ b/catalog/datasets/digitalcorpora-android-7/supplemental.ttl @@ -1939,6 +1939,7 @@ kb:investigative-action-6ea701f0-411a-4e9c-aaa7-801f40416214 kb:provenance-record-ca7825bd-e803-48d7-8c91-f57b8018265e ; uco-action:performer kb:person-eab92237-467b-4977-959f-db67afdddee5 ; + uco-action:result kb:provenance-record-7f8080e7-b3c8-43ea-adf1-8a54e187003b ; uco-action:startTime "2018-12-06T21:14:50-05:00"^^xsd:dateTime ; uco-action:subaction kb:action-541265d6-2a57-476e-bff0-45f512f22bd5 , @@ -2454,6 +2455,12 @@ kb:provenance-record-77997f72-643b-4090-8b6c-1b578d696a97 uco-core:object kb:file-b4e89da8-dac1-4b4a-b147-63ccf6ee0359 ; . +kb:provenance-record-7f8080e7-b3c8-43ea-adf1-8a54e187003b + a case-investigation:ProvenanceRecord ; + uco-core:description "Record of having imaged the phone" ; + uco-core:object kb:device-ea732801-7d0e-46ac-a028-69b782c97a46 ; + . + kb:provenance-record-8c357d9b-13a4-4333-9e11-2194bfdd534b a case-investigation:ProvenanceRecord ; uco-core:description "Record of phone imaging process being completed, including log" ;