-
Notifications
You must be signed in to change notification settings - Fork 188
[ENH][BEP028] Specification update for BEP028 BIDS-Prov #2099
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Include comment for ProvEntity versus Entity
Hi @rwblair, As discussed earlier, here are the issues I'm currently facing:
Thanks for your help :) |
for more information, see https://pre-commit.ci
@bclenet While thinking about the first two points on how to validate certain parts of the files I started to realize the nature of the changes that will be required of the schema to validate them. Here is my understanding of the main rules that this bep wants to enforce that require information outside of what has historically been used for validation, and the issues they raise.:
The following are all similar:
One thing I like about this proposal is that each json file is simple enough to be immediately understood by a human. I was playing around with alternative ways of organizing data from the examples that might be more amenable to the current expression language and they were all much more difficult to read at a glance. The UID in the Ids makes me think this was not meant to be produced or consumed by humans, but I'm a sucker for looking at any json file that comes across my path. Please let me know if I have misunderstood/misinterpreted any of the rules from the BEP. @effigies Any comments on my characterizations of the schema's short comings with respect to the above rules? @bclenet This only sort of addressed your first two issues, for the remaining four:
|
`MD5`; `SHA1`; `SHA-224` ; `SHA-256` ; `SHA-384` ; `SHA-512` ; | ||
`SHA3-224`; `SHA3-256`; `SHA3-384`; `SHA3-512`; `BLAKE2B-256`; `BLAKE3-256`; | ||
`SHAKE128`; `SHAKE256`. Otherwise, key MAY be an arbitrary label. | ||
The corresponding value is the checksum as computed by the function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The corresponding value is the checksum as computed by the function. | |
The corresponding value is the checksum as computed by the function identified by the key. |
`MD5`; `SHA1`; `SHA-224` ; `SHA-256` ; `SHA-384` ; `SHA-512` ; | ||
`SHA3-224`; `SHA3-256`; `SHA3-384`; `SHA3-512`; `BLAKE2B-256`; `BLAKE3-256`; | ||
`SHAKE128`; `SHAKE256`. Otherwise, key MAY be an arbitrary label. | ||
The corresponding value is the checksum as computed by the function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The corresponding value is the checksum as computed by the function. | |
The corresponding value is the checksum as computed by the function identified by the key. |
|
||
The Resource Description Framework (RDF) is a method to describe and exchange graph data. | ||
|
||
The terms defined in this part of the BIDS specification are based on the [W3C Prov](https://www.w3.org/TR/2013/REC-prov-o-20130430/) standard. Their relations with W3C Prov terms are defined in the [`provenance-context.json`]() file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
provenance-context.json
isn't mentioned any where else on the page. May want to clarify that it exists as json file in the specification itself like metaschema.json.
Further datasets are available from | ||
the [BIDS examples repository](https://bids-website.readthedocs.io/en/latest/datasets/examples.html#provenance). | ||
|
||
## Overview |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd remove this heading and move the sentences under it to the above section (#provenance), I think the opening sentences of a page are generally understood to be an overview.
|
||
This description is based on the [W3C Prov](https://www.w3.org/TR/2013/REC-prov-o-20130430/) standard. | ||
|
||
### General principles |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These principles could be moved into the top level section, other sections of the standard (behavioral, phenotypic, etc) use requirement keywords in their opening salvos. I'd also remove the new lines between the sentences.
- *sub-001_T1w_preproc.nii* is the skull striped image; | ||
- the *"Brain extraction"* activity was performed using the *FSL* software within a *Linux* software environment. | ||
|
||
Provenance objects are described as JSON objects in BIDS. They are stored inside **provenance files** (see [Provenance files](#provenance-files)). Additionally, metadata of provEntities can be stored as BIDS metadata inside sidecar JSON files (see [Provenance of a BIDS file](#provenance-of-a-bids-file)) as well as in `dataset_description.json` files (see [Provenance of a BIDS dataset](#provenance-of-a-bids-dataset)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Provenance objects are described as JSON objects in BIDS. They are stored inside **provenance files** (see [Provenance files](#provenance-files)). Additionally, metadata of provEntities can be stored as BIDS metadata inside sidecar JSON files (see [Provenance of a BIDS file](#provenance-of-a-bids-file)) as well as in `dataset_description.json` files (see [Provenance of a BIDS dataset](#provenance-of-a-bids-dataset)). | |
Provenance objects are described as JSON objects in BIDS. They are stored inside **provenance files** (see [Provenance files](#provenance-files)). Additionally, metadata for provEntities can be stored inside the JSON sidecar file for any BIDS data file (see [Provenance of a BIDS file](#provenance-of-a-bids-file)), as well as in `dataset_description.json` files (see [Provenance of a BIDS dataset](#provenance-of-a-bids-dataset)). |
This is a work in progress PR proposing a specification update for BEP028 BIDS-Prov.
- [ ] being proofread
- [ ] validator error :
/prov/*
NOT_INCLUDED- [ ] validator error :
/prov/*.json
SIDECAR_WITHOUT_DATAFILE- [ ] validator error : derivative files are listed as NOT_INCLUDED / ALL_FILENAME_RULES_HAVE_ISSUES /FILENAME_MISMATCH / ENTITY_WITH_NO_LABEL