Skip to content

Commit

Permalink
Add ProvenanceRecord to satisfy local shape
Browse files Browse the repository at this point in the history
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:
* RDFLib/pySHACL#213
* casework/CASE#136

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
  • Loading branch information
ajnelson-nist committed Nov 9, 2023
1 parent 80e0e21 commit 16828ee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions catalog/datasets/digitalcorpora-android-7/supplemental.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -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 ,
Expand Down Expand Up @@ -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" ;
Expand Down

0 comments on commit 16828ee

Please sign in to comment.