Closed remiadon closed 4 years ago
@remiadon +1 on this. In practice, usage will be limited as SPM now uses 4D files instead of collections of 3D files. Maybe we should update our example to make it more representative of what happens 'in the wild'?
@cmaumet OK so i'll make sure my next example uses 4D files
For now we use globbing to represent collections of files Quoting the W3C-prov doc:
Collections
are defined as entities proving structures on top of other entities. In the context of file enumeration I found easier to use a syntax that many users are familiar withAnother aspect of entities in our framework is the "sha" field, which is used for quick equality checking between entities. A simple solution with files is simply to call a sha function on each file. In order to fill the "sha" field for a collection a files, we can simply pipe sha functions, i.e
apply a sha function on the result of individual sha results
.Having many images in directory named 'fM00223', this gives
which yields a single value for all .img files in this directory
This proposition aims to facilitate integration with existing software (eg. globbing is used in the SPM GUI to select files) as well as keeping our prov files as concise as possible