You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/modality-agnostic-files/provenance.md
+96-6Lines changed: 96 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ For the most part, this metadata consists of **provenance records** of 4 types:
71
71
72
72
Provenance records are described as JSON objects in BIDS. They are stored inside **provenance files** (see [Provenance files](#provenance-files)).
73
73
74
-
Additionally, provenance metadata of entities can be stored inside:
74
+
Additionally, **provenance metadata** of entities can be stored as regular BIDS metadata inside:
75
75
76
76
- sidecar JSON files (see [Provenance of a BIDS file](#provenance-of-a-bids-file));
77
77
-`dataset_description.json` files (see [Provenance of a BIDS dataset](#provenance-of-a-bids-dataset)).
@@ -476,9 +476,11 @@ The uniqueness of this identifier MUST be used to distinguish any activity, soft
476
476
- `bids::prov#fedora-uldfv058` - a Fedora based environment described inside the current dataset.
477
477
- `bids:preprocessing:prov#fmriprep-r4kzzMt8` - the fMRIPrep software described inside the `preprocessing` dataset.
478
478
479
-
## Minimal example
479
+
## Minimal examples
480
480
481
-
Here is a comprehensive example that considers the following dataset:
481
+
### Provenance of a BIDS raw dataset
482
+
483
+
Consider the following BIDS raw dataset:
482
484
483
485
<!-- This block generates a file tree.
484
486
A guide for using macros can be found at
@@ -504,7 +506,7 @@ A guide for using macros can be found at
504
506
}
505
507
) }}
506
508
507
-
The following provenance record is defined in `prov/prov-dcm2niix_soft.json`. As mentioned in the [Consistency and uniqueness of Ids](#consistency-and-uniqueness-of-ids) section, its identifier SHOULD start with `bids:<dataset>:prov#` (here, `bids::` refers to the current dataset).
509
+
Here are the contents of the `prov/prov-dcm2niix_soft.json` file:
508
510
509
511
```JSON
510
512
{
@@ -518,7 +520,9 @@ The following provenance record is defined in `prov/prov-dcm2niix_soft.json`. As
518
520
}
519
521
```
520
522
521
-
The previously described software record is referred to in the `prov/prov-dcm2niix_act.json` file:
523
+
A software package is described using a provenance record inside the `Software` array. As mentioned in the [Consistency and uniqueness of identifiers](#consistency-and-uniqueness-of-identifiers) section, its identifier SHOULD start with `bids:<dataset>:prov#` (here, `bids::` refers to the current dataset).
524
+
525
+
Here are the contents of the `prov/prov-dcm2niix_act.json` file:
522
526
523
527
```JSON
524
528
{
@@ -533,10 +537,96 @@ The previously described software record is referred to in the `prov/prov-dcm2ni
533
537
}
534
538
```
535
539
536
-
The previously described activity record is referred to in the `sub-001/anat/sub-001_T1w.json` sidecar JSON file:
540
+
An activity is described using a provenance record inside the `Activities` array. Note that the identifier of the previously described software package is used here to describe that the software package was associated with this activity.
541
+
542
+
Here are the contents of the `sub-001/anat/sub-001_T1w.json` file:
537
543
538
544
```JSON
539
545
{
540
546
"GeneratedBy": "bids::prov#conversion-00f3a18f"
541
547
}
542
548
```
549
+
550
+
The provenance metadata `GeneratedBy` indicates that the `sub-001/anat/sub-001_T1w.nii.gz` file was generated by the previously described activity.
0 commit comments