Skip to content

Commit 7e517fb

Browse files
committed
Adding provenance RDF graphs
1 parent 253019d commit 7e517fb

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

provenance_dcm2niix/README.md

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,35 @@ That the `sourcedata/` directory contains the source dataset (DICOM files) known
1111

1212
## Directory tree
1313

14-
After conversion, and adding provenance traces, the directory tree is as follows. Files marked with a ✍️ were generated manually.
15-
`sub-02/anat/sub-02_T1w.json` was generated by `dcm2niix`, then the `GeneratedBy` and `SidecarGeneratedBy` provenance-related fields were added manually.
14+
After conversion, and adding provenance traces, the directory tree is as follows.
15+
16+
Legend:
17+
* files with a ⭐ were generated by `dcm2niix`;
18+
* files marked with a ✍️ were generated manually;
19+
* files marked with a 🤖 were comptued from the manually generated provenance metadata;
20+
* the ⭐✍️ marked `sub-02/anat/sub-02_T1w.json` file was generated by `dcm2niix`, then the `GeneratedBy` and `SidecarGeneratedBy` provenance-related fields were added manually.
21+
22+
> [!NOTE]
23+
> Note that the `docs/` directory contains explanatory data (see [Provenance as a RDF graph](#provenance-as-a-rdf-graph)) that is not required to encode provenance.
1624
1725
```
26+
✍️ docs/
27+
├── 🤖 prov-dcm2niix.jsonld
28+
└── 🤖 prov-dcm2niix.png
1829
✍️ prov/
1930
├── ✍️ prov-dcm2niix_act.json
2031
├── ✍️ prov-dcm2niix_ent.json
2132
├── ✍️ prov-dcm2niix_env.json
2233
└── ✍️ prov-dcm2niix_soft.json
2334
sourcedata/
24-
sub-02/
25-
└── anat
26-
├── ✍️ sub-02_T1w.json
27-
└── sub-02_T1w.nii
35+
sub-02/
36+
└── anat
37+
├── ✍️ sub-02_T1w.json
38+
└── sub-02_T1w.nii
2839
```
40+
41+
## Provenance as a RDF graph
42+
43+
Provenance metadata can be aggregated as a JSON-LD RDF graph, which is available in [`docs/prov-dcm2niix.jsonld`](docs/prov-dcm2niix.jsonld). This is a rendered version of the graph, also available in [`docs/prov-dcm2niix.png`](docs/prov-dcm2niix.png).
44+
45+
![Rendered version of the RDF graph](docs/prov-dcm2niix.png)
6.03 KB
Loading

0 commit comments

Comments
 (0)