bids-standard / BEP028_BIDSprov

Organizing and coordinating BIDS extension proposal 28 : BIDS Provenance
https://bids.neuroimaging.io/bep028
Creative Commons Attribution 4.0 International
4 stars 13 forks source link

[Bug]: Current jsonld files do not store jsonld graphs #121

Closed satra closed 1 year ago

satra commented 1 year ago

batch name and line

No response

What happened?

this is taking one of the examples to jsonld playground.

https://tinyurl.com/ynhdr9ek

you'll see all forms of it are empty. i haven't tracked the context changes, but likely the culprit. we should also add tests for jsonld expansion and compactness in the github workflow.

Describe the expected ground-truth ?

to be able to visualize the graph

What soft is concerned

No response

cmaumet commented 1 year ago

Hi @satra ! Thanks for spotting this! You are right: this example is outdated and do not match the current context.

Am I right this is the one you looked at: https://github.com/bids-standard/BEP028_BIDSprov/tree/master/examples/spm_default ?

All examples created by the parsers work fine, see for example spm_default on JSON-LD playground%3B%22%7D%2C%7B%22%40id%22%3A%22urn%3A23e90369-5cf2-465e-a4b0-c4ac55508925%22%2C%22Label%22%3A%22Gunzip%22%2C%22Used%22%3A%5B%22urn%3Aae14ed40-d28f-491f-ad7f-f9364a2daeca%22%5D%2C%22AssociatedWith%22%3A%22urn%3A62e3812e-a3e8-4836-8119-a98496a70101%22%2C%22Command%22%3A%22matlabbatch%7B4%7D.cfg_basicio.file_dir.file_ops.cfg_gunzip_files.files(1)%20%3D%20cfg_dep('Move%2FDelete%20Files%3A%20Moved%2FCopied%20Files'%2C%20substruct('.'%2C'val'%2C%20'%7B%7D'%2C%7B2%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D)%2C%20substruct('.'%2C'files'))%3B%22%7D%2C%7B%22%40id%22%3A%22urn%3Adad480ac-f312-4758-89c9-2c6765d6393a%22%2C%22Label%22%3A%22Realign%22%2C%22Used%22%3A%5B%22urn%3Aa949df0d-6e4b-497e-be36-a43818510275%22%5D%2C%22AssociatedWith%22%3A%22urn%3A62e3812e-a3e8-4836-8119-a98496a70101%22%2C%22Command%22%3A%22matlabbatch%7B5%7D.spm.spatial.realign.estwrite.data%7B1%7D(1)%20%3D%20cfg_dep('GunZip%20Files%3A%20GunZipped%20Files'%2C%20substruct('.'%2C'val'%2C%20'%7B%7D'%2C%7B3%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D)%2C%20substruct('()'%2C%7B'%3A'%7D))%3B%5Cnmatlabbatch%7B5%7D.spm.spatial.realign.estwrite.eoptions.quality%20%3D%200.9%3B%5Cnmatlabbatch%7B5%7D.spm.spatial.realign.estwrite.eoptions.sep%20%3D%204%3B%5Cnmatlabbatch%7B5%7D.spm.spatial.realign.estwrite.eoptions.fwhm%20%3D%205%3B%5Cnmatlabbatch%7B5%7D.spm.spatial.realign.estwrite.eoptions.rtm%20%3D%201%3B%5Cnmatlabbatch%7B5%7D.spm.spatial.realign.estwrite.eoptions.interp%20%3D%202%3B%5Cnmatlabbatch%7B5%7D.spm.spatial.realign.estwrite.eoptions.wrap%20%3D%20%5B0%200%200%5D%3B%5Cnmatlabbatch%7B5%7D.spm.spatial.realign.estwrite.eoptions.weight%20%3D%20''%3B%5Cnmatlabbatch%7B5%7D.spm.spatial.realign.estwrite.roptions.which%20%3D%20%5B0%201%5D%3B%5Cnmatlabbatch%7B5%7D.spm.spatial.realign.estwrite.roptions.interp%20%3D%204%3B%5Cnmatlabbatch%7B5%7D.spm.spatial.realign.estwrite.roptions.wrap%20%3D%20%5B0%200%200%5D%3B%5Cnmatlabbatch%7B5%7D.spm.spatial.realign.estwrite.roptions.mask%20%3D%201%3B%5Cnmatlabbatch%7B5%7D.spm.spatial.realign.estwrite.roptions.prefix%20%3D%20'r'%3B%22%2C%22Parameters%22%3A%7B%22eoptions.quality%22%3A%220.9%22%2C%22eoptions.sep%22%3A%224%22%2C%22eoptions.fwhm%22%3A%225%22%2C%22eoptions.rtm%22%3A%221%22%2C%22eoptions.interp%22%3A%222%22%2C%22eoptions.wrap%22%3A%22%5B0%2C%200%2C%200%5D%22%2C%22eoptions.weight%22%3A%22''%22%2C%22roptions.which%22%3A%22%5B0%2C%201%5D%22%2C%22roptions.interp%22%3A%224%22%2C%22roptions.wrap%22%3A%22%5B0%2C%200%2C%200%5D%22%2C%22roptions.mask%22%3A%221%22%2C%22roptions.prefix%22%3A%22'r'%22%7D%7D%2C%7B%22%40id%22%3A%22urn%3Ac5da5c16-852c-4a75-a6e6-f70fcc9bc766%22%2C%22Label%22%3A%22Coregister%22%2C%22Used%22%3A%5B%22urn%3A0657b059-0285-4d8a-8fae-2fb268511c34%22%2C%22urn%3Abed01f22-b1b7-4c60-939d-4caa877b5cf6%22%5D%2C%22AssociatedWith%22%3A%22urn%3A62e3812e-a3e8-4836-8119-a98496a70101%22%2C%22Command%22%3A%22matlabbatch%7B6%7D.spm.spatial.coreg.estimate.ref(1)%20%3D%20cfg_dep('Realign%3A%20Estimate%20%26%20Reslice%3A%20Mean%20Image'%2C%20substruct('.'%2C'val'%2C%20'%7B%7D'%2C%7B5%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D)%2C%20substruct('.'%2C'rmean'))%3B%5Cnmatlabbatch%7B6%7D.spm.spatial.coreg.estimate.source(1)%20%3D%20cfg_dep('GunZip%20Files%3A%20GunZipped%20Files'%2C%20substruct('.'%2C'val'%2C%20'%7B%7D'%2C%7B4%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D)%2C%20substruct('()'%2C%7B'%3A'%7D))%3B%5Cnmatlabbatch%7B6%7D.spm.spatial.coreg.estimate.other%20%3D%20%7B''%7D%3B%5Cnmatlabbatch%7B6%7D.spm.spatial.coreg.estimate.eoptions.cost_fun%20%3D%20'nmi'%3B%5Cnmatlabbatch%7B6%7D.spm.spatial.coreg.estimate.eoptions.sep%20%3D%20%5B4%202%5D%3B%5Cnmatlabbatch%7B6%7D.spm.spatial.coreg.estimate.eoptions.tol%20%3D%20%5B0.02%200.02%200.02%200.001%200.001%200.001%200.01%200.01%200.01%200.001%200.001%200.001%5D%3B%5Cnmatlabbatch%7B6%7D.spm.spatial.coreg.estimate.eoptions.fwhm%20%3D%20%5B7%207%5D%3B%22%2C%22Parameters%22%3A%7B%22other%22%3A%22%7B''%7D%22%2C%22eoptions.cost_fun%22%3A%22'nmi'%22%2C%22eoptions.sep%22%3A%22%5B4%2C%202%5D%22%2C%22eoptions.tol%22%3A%22%5B0.02%2C%200.02%2C%200.02%2C%200.001%2C%200.001%2C%200.001%2C%200.01%2C%200.01%2C%200.01%2C%200.001%2C%200.001%2C%200.001%5D%22%2C%22eoptions.fwhm%22%3A%22%5B7%2C%207%5D%22%7D%7D%2C%7B%22%40id%22%3A%22urn%3Af63bd3cb-5e25-43e7-9b62-0a6b714b9fd0%22%2C%22Label%22%3A%22Segment%22%2C%22Used%22%3A%5B%22urn%3Abed01f22-b1b7-4c60-939d-4caa877b5cf6%22%5D%2C%22AssociatedWith%22%3A%22urn%3A62e3812e-a3e8-4836-8119-a98496a70101%22%2C%22Command%22%3A%22matlabbatch%7B7%7D.spm.spatial.preproc.channel.vols(1)%20%3D%20cfg_dep('GunZip%20Files%3A%20GunZipped%20Files'%2C%20substruct('.'%2C'val'%2C%20'%7B%7D'%2C%7B4%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D)%2C%20substruct('()'%2C%7B'%3A'%7D))%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.channel.biasreg%20%3D%200.001%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.channel.biasfwhm%20%3D%2060%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.channel.write%20%3D%20%5B0%201%5D%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(1).tpm%20%3D%20%7B'%2Fstorage%2Fessicd%2Fdata%2FNIDM-Ex%2Fspm12_update%2Ftpm%2FTPM.nii%2C1'%7D%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(1).ngaus%20%3D%201%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(1).native%20%3D%20%5B1%200%5D%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(1).warped%20%3D%20%5B0%200%5D%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(2).tpm%20%3D%20%7B'%2Fstorage%2Fessicd%2Fdata%2FNIDM-Ex%2Fspm12_update%2Ftpm%2FTPM.nii%2C2'%7D%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(2).ngaus%20%3D%201%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(2).native%20%3D%20%5B1%200%5D%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(2).warped%20%3D%20%5B0%200%5D%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(3).tpm%20%3D%20%7B'%2Fstorage%2Fessicd%2Fdata%2FNIDM-Ex%2Fspm12_update%2Ftpm%2FTPM.nii%2C3'%7D%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(3).ngaus%20%3D%202%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(3).native%20%3D%20%5B1%200%5D%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(3).warped%20%3D%20%5B0%200%5D%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(4).tpm%20%3D%20%7B'%2Fstorage%2Fessicd%2Fdata%2FNIDM-Ex%2Fspm12_update%2Ftpm%2FTPM.nii%2C4'%7D%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(4).ngaus%20%3D%203%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(4).native%20%3D%20%5B1%200%5D%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(4).warped%20%3D%20%5B0%200%5D%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(5).tpm%20%3D%20%7B'%2Fstorage%2Fessicd%2Fdata%2FNIDM-Ex%2Fspm12_update%2Ftpm%2FTPM.nii%2C5'%7D%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(5).ngaus%20%3D%204%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(5).native%20%3D%20%5B1%200%5D%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(5).warped%20%3D%20%5B0%200%5D%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(6).tpm%20%3D%20%7B'%2Fstorage%2Fessicd%2Fdata%2FNIDM-Ex%2Fspm12_update%2Ftpm%2FTPM.nii%2C6'%7D%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(6).ngaus%20%3D%202%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(6).native%20%3D%20%5B0%200%5D%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.tissue(6).warped%20%3D%20%5B0%200%5D%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.warp.mrf%20%3D%201%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.warp.cleanup%20%3D%201%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.warp.reg%20%3D%20%5B0%200.001%200.5%200.05%200.2%5D%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.warp.affreg%20%3D%20'mni'%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.warp.fwhm%20%3D%200%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.warp.samp%20%3D%203%3B%5Cnmatlabbatch%7B7%7D.spm.spatial.preproc.warp.write%20%3D%20%5B0%201%5D%3B%22%2C%22Parameters%22%3A%7B%22channel.biasreg%22%3A%220.001%22%2C%22channel.biasfwhm%22%3A%2260%22%2C%22channel.write%22%3A%22%5B0%2C%201%5D%22%2C%22tissue(1).tpm%22%3A%22%7B'%2Fstorage%2Fessicd%2Fdata%2FNIDM-Ex%2Fspm12_update%2Ftpm%2FTPM.nii%2C1'%7D%22%2C%22tissue(1).ngaus%22%3A%221%22%2C%22tissue(1).native%22%3A%22%5B1%2C%200%5D%22%2C%22tissue(1).warped%22%3A%22%5B0%2C%200%5D%22%2C%22tissue(2).tpm%22%3A%22%7B'%2Fstorage%2Fessicd%2Fdata%2FNIDM-Ex%2Fspm12_update%2Ftpm%2FTPM.nii%2C2'%7D%22%2C%22tissue(2).ngaus%22%3A%221%22%2C%22tissue(2).native%22%3A%22%5B1%2C%200%5D%22%2C%22tissue(2).warped%22%3A%22%5B0%2C%200%5D%22%2C%22tissue(3).tpm%22%3A%22%7B'%2Fstorage%2Fessicd%2Fdata%2FNIDM-Ex%2Fspm12_update%2Ftpm%2FTPM.nii%2C3'%7D%22%2C%22tissue(3).ngaus%22%3A%222%22%2C%22tissue(3).native%22%3A%22%5B1%2C%200%5D%22%2C%22tissue(3).warped%22%3A%22%5B0%2C%200%5D%22%2C%22tissue(4).tpm%22%3A%22%7B'%2Fstorage%2Fessicd%2Fdata%2FNIDM-Ex%2Fspm12_update%2Ftpm%2FTPM.nii%2C4'%7D%22%2C%22tissue(4).ngaus%22%3A%223%22%2C%22tissue(4).native%22%3A%22%5B1%2C%200%5D%22%2C%22tissue(4).warped%22%3A%22%5B0%2C%200%5D%22%2C%22tissue(5).tpm%22%3A%22%7B'%2Fstorage%2Fessicd%2Fdata%2FNIDM-Ex%2Fspm12_update%2Ftpm%2FTPM.nii%2C5'%7D%22%2C%22tissue(5).ngaus%22%3A%224%22%2C%22tissue(5).native%22%3A%22%5B1%2C%200%5D%22%2C%22tissue(5).warped%22%3A%22%5B0%2C%200%5D%22%2C%22tissue(6).tpm%22%3A%22%7B'%2Fstorage%2Fessicd%2Fdata%2FNIDM-Ex%2Fspm12_update%2Ftpm%2FTPM.nii%2C6'%7D%22%2C%22tissue(6).ngaus%22%3A%222%22%2C%22tissue(6).native%22%3A%22%5B0%2C%200%5D%22%2C%22tissue(6).warped%22%3A%22%5B0%2C%200%5D%22%2C%22warp.mrf%22%3A%221%22%2C%22warp.cleanup%22%3A%221%22%2C%22warp.reg%22%3A%22%5B0%2C%200.001%2C%200.5%2C%200.05%2C%200.2%5D%22%2C%22warp.affreg%22%3A%22'mni'%22%2C%22warp.fwhm%22%3A%220%22%2C%22warp.samp%22%3A%223%22%2C%22warp.write%22%3A%22%5B0%2C%201%5D%22%7D%7D%2C%7B%22%40id%22%3A%22urn%3Aff211113-f43c-49ad-acba-57fd339badeb%22%2C%22Label%22%3A%22Normalize%22%2C%22Used%22%3A%5B%22urn%3Acb038b70-f5e5-4619-a661-3b6f816e4043%22%2C%22urn%3A0657b059-0285-4d8a-8fae-2fb268511c34%22%5D%2C%22AssociatedWith%22%3A%22urn%3A62e3812e-a3e8-4836-8119-a98496a70101%22%2C%22Command%22%3A%22matlabbatch%7B8%7D.spm.spatial.normalise.write.subj.def(1)%20%3D%20cfg_dep('Segment%3A%20Forward%20Deformations'%2C%20substruct('.'%2C'val'%2C%20'%7B%7D'%2C%7B7%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D)%2C%20substruct('.'%2C'fordef'%2C%20'()'%2C%7B'%3A'%7D))%3B%5Cnmatlabbatch%7B8%7D.spm.spatial.normalise.write.subj.resample(1)%20%3D%20cfg_dep('Realign%3A%20Estimate%20%26%20Reslice%3A%20Realigned%20Images%20(Sess%201)'%2C%20substruct('.'%2C'val'%2C%20'%7B%7D'%2C%7B5%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D)%2C%20substruct('.'%2C'sess'%2C%20'()'%2C%7B1%7D%2C%20'.'%2C'cfiles'))%3B%5Cnmatlabbatch%7B8%7D.spm.spatial.normalise.write.woptions.bb%20%3D%20%5B-78%20-112%20-70%2078%2076%2085%5D%3B%5Cnmatlabbatch%7B8%7D.spm.spatial.normalise.write.woptions.vox%20%3D%20%5B2%202%202%5D%3B%5Cnmatlabbatch%7B8%7D.spm.spatial.normalise.write.woptions.interp%20%3D%204%3B%5Cnmatlabbatch%7B8%7D.spm.spatial.normalise.write.woptions.prefix%20%3D%20'w'%3B%22%2C%22Parameters%22%3A%7B%22woptions.bb%22%3A%22%5B-78%2C%20-112%2C%20-70%2C%2078%2C%2076%2C%2085%5D%22%2C%22woptions.vox%22%3A%22%5B2%2C%202%2C%202%5D%22%2C%22woptions.interp%22%3A%224%22%2C%22woptions.prefix%22%3A%22'w'%22%7D%7D%2C%7B%22%40id%22%3A%22urn%3A7ccada4d-6e81-49f3-83c6-d266594f0c20%22%2C%22Label%22%3A%22Normalize%22%2C%22Used%22%3A%5B%22urn%3Acb038b70-f5e5-4619-a661-3b6f816e4043%22%2C%22urn%3Acb038b70-f5e5-4619-a661-3b6f816e4043%22%5D%2C%22AssociatedWith%22%3A%22urn%3A62e3812e-a3e8-4836-8119-a98496a70101%22%2C%22Command%22%3A%22matlabbatch%7B9%7D.spm.spatial.normalise.write.subj.def(1)%20%3D%20cfg_dep('Segment%3A%20Forward%20Deformations'%2C%20substruct('.'%2C'val'%2C%20'%7B%7D'%2C%7B7%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D)%2C%20substruct('.'%2C'fordef'%2C%20'()'%2C%7B'%3A'%7D))%3B%5Cnmatlabbatch%7B9%7D.spm.spatial.normalise.write.subj.resample(1)%20%3D%20cfg_dep('Segment%3A%20Bias%20Corrected%20(1)'%2C%20substruct('.'%2C'val'%2C%20'%7B%7D'%2C%7B7%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D)%2C%20substruct('.'%2C'channel'%2C%20'()'%2C%7B1%7D%2C%20'.'%2C'biascorr'%2C%20'()'%2C%7B'%3A'%7D))%3B%5Cnmatlabbatch%7B9%7D.spm.spatial.normalise.write.woptions.bb%20%3D%20%5B-78%20-112%20-70%2078%2076%2085%5D%3B%5Cnmatlabbatch%7B9%7D.spm.spatial.normalise.write.woptions.vox%20%3D%20%5B2%202%202%5D%3B%5Cnmatlabbatch%7B9%7D.spm.spatial.normalise.write.woptions.interp%20%3D%204%3B%5Cnmatlabbatch%7B9%7D.spm.spatial.normalise.write.woptions.prefix%20%3D%20'w'%3B%22%2C%22Parameters%22%3A%7B%22woptions.bb%22%3A%22%5B-78%2C%20-112%2C%20-70%2C%2078%2C%2076%2C%2085%5D%22%2C%22woptions.vox%22%3A%22%5B2%2C%202%2C%202%5D%22%2C%22woptions.interp%22%3A%224%22%2C%22woptions.prefix%22%3A%22'w'%22%7D%7D%2C%7B%22%40id%22%3A%22urn%3A2e82d6a1-9e2a-446b-b508-0e5df37dbdfb%22%2C%22Label%22%3A%22Smooth%22%2C%22Used%22%3A%5B%22urn%3Ac3457a35-c5f9-45de-931c-89a71bb169f0%22%5D%2C%22AssociatedWith%22%3A%22urn%3A62e3812e-a3e8-4836-8119-a98496a70101%22%2C%22Command%22%3A%22matlabbatch%7B10%7D.spm.spatial.smooth.data(1)%20%3D%20cfg_dep('Normalise%3A%20Write%3A%20Normalised%20Images%20(Subj%201)'%2C%20substruct('.'%2C'val'%2C%20'%7B%7D'%2C%7B8%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D)%2C%20substruct('()'%2C%7B1%7D%2C%20'.'%2C'files'))%3B%5Cnmatlabbatch%7B10%7D.spm.spatial.smooth.fwhm%20%3D%20%5B6%206%206%5D%3B%5Cnmatlabbatch%7B10%7D.spm.spatial.smooth.dtype%20%3D%200%3B%5Cnmatlabbatch%7B10%7D.spm.spatial.smooth.im%20%3D%200%3B%5Cnmatlabbatch%7B10%7D.spm.spatial.smooth.prefix%20%3D%20's'%3B%22%2C%22Parameters%22%3A%7B%22fwhm%22%3A%22%5B6%2C%206%2C%206%5D%22%2C%22dtype%22%3A%220%22%2C%22im%22%3A%220%22%2C%22prefix%22%3A%22's'%22%7D%7D%2C%7B%22%40id%22%3A%22urn%3Ad13633e4-0e1f-4847-aa4b-872c2aaee8dc%22%2C%22Label%22%3A%22Stat%20Design%22%2C%22Used%22%3A%5B%22urn%3A49eefed4-4311-4ede-80a1-8ed5501adc77%22%2C%22urn%3A9c331ad8-b671-4cd6-9d35-d2c9da897c4b%22%5D%2C%22AssociatedWith%22%3A%22urn%3A62e3812e-a3e8-4836-8119-a98496a70101%22%2C%22Command%22%3A%22matlabbatch%7B11%7D.spm.stats.fmri_spec.dir%20%3D%20%7B'%2Fstorage%2Fessicd%2Fdata%2FNIDM-Ex%2FBIDS_Data%2FRESULTS%2FTEST%2Fnidmresults-examples%2Fspm_voxelwise_p0001'%7D%3B%5Cnmatlabbatch%7B11%7D.spm.stats.fmri_spec.timing.units%20%3D%20'secs'%3B%5Cnmatlabbatch%7B11%7D.spm.stats.fmri_spec.timing.RT%20%3D%202%3B%5Cnmatlabbatch%7B11%7D.spm.stats.fmri_spec.timing.fmri_t%20%3D%2016%3B%5Cnmatlabbatch%7B11%7D.spm.stats.fmri_spec.timing.fmri_t0%20%3D%208%3B%5Cnmatlabbatch%7B11%7D.spm.stats.fmri_spec.sess.scans(1)%20%3D%20cfg_dep('Smooth%3A%20Smoothed%20Images'%2C%20substruct('.'%2C'val'%2C%20'%7B%7D'%2C%7B10%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D)%2C%20substruct('.'%2C'files'))%3B%5Cnmatlabbatch%7B11%7D.spm.stats.fmri_spec.sess.cond%20%3D%20struct('name'%2C%20%7B%7D%2C%20'onset'%2C%20%7B%7D%2C%20'duration'%2C%20%7B%7D%2C%20'tmod'%2C%20%7B%7D%2C%20'pmod'%2C%20%7B%7D%2C%20'orth'%2C%20%7B%7D)%3B%5Cnmatlabbatch%7B11%7D.spm.stats.fmri_spec.sess.multi%20%3D%20%7B'%2Fstorage%2Fessicd%2Fdata%2FNIDM-Ex%2FBIDS_Data%2FRESULTS%2FEXAMPLES%2Fds011%2FSPM%2FPREPROCESSING%2FONSETS%2Fsub-01-MultiCond.mat'%7D%3B%5Cnmatlabbatch%7B11%7D.spm.stats.fmri_spec.sess.regress%20%3D%20struct('name'%2C%20%7B%7D%2C%20'val'%2C%20%7B%7D)%3B%5Cnmatlabbatch%7B11%7D.spm.stats.fmri_spec.sess.multi_reg%20%3D%20%7B''%7D%3B%5Cnmatlabbatch%7B11%7D.spm.stats.fmri_spec.sess.hpf%20%3D%20128%3B%5Cnmatlabbatch%7B11%7D.spm.stats.fmri_spec.fact%20%3D%20struct('name'%2C%20%7B%7D%2C%20'levels'%2C%20%7B%7D)%3B%5Cnmatlabbatch%7B11%7D.spm.stats.fmri_spec.bases.hrf.derivs%20%3D%20%5B0%200%5D%3B%5Cnmatlabbatch%7B11%7D.spm.stats.fmri_spec.volt%20%3D%201%3B%5Cnmatlabbatch%7B11%7D.spm.stats.fmri_spec.global%20%3D%20'None'%3B%5Cnmatlabbatch%7B11%7D.spm.stats.fmri_spec.mthresh%20%3D%200.8%3B%5Cnmatlabbatch%7B11%7D.spm.stats.fmri_spec.mask%20%3D%20%7B''%7D%3B%5Cnmatlabbatch%7B11%7D.spm.stats.fmri_spec.cvi%20%3D%20'AR(1)'%3B%22%2C%22Parameters%22%3A%7B%22dir%22%3A%22%7B'%2Fstorage%2Fessicd%2Fdata%2FNIDM-Ex%2FBIDS_Data%2FRESULTS%2FTEST%2Fnidmresults-examples%2Fspm_voxelwise_p0001'%7D%22%2C%22timing.units%22%3A%22'secs'%22%2C%22timing.RT%22%3A%222%22%2C%22timing.fmri_t%22%3A%2216%22%2C%22timing.fmri_t0%22%3A%228%22%2C%22sess.cond%22%3A%22struct('name'%2C%20%7B%7D%2C%20'onset'%2C%20%7B%7D%2C%20'duration'%2C%20%7B%7D%2C%20'tmod'%2C%20%7B%7D%2C%20'pmod'%2C%20%7B%7D%2C%20'orth'%2C%20%7B%7D)%22%2C%22sess.regress%22%3A%22struct('name'%2C%20%7B%7D%2C%20'val'%2C%20%7B%7D)%22%2C%22sess.multi_reg%22%3A%22%7B''%7D%22%2C%22sess.hpf%22%3A%22128%22%2C%22fact%22%3A%22struct('name'%2C%20%7B%7D%2C%20'levels'%2C%20%7B%7D)%22%2C%22bases.hrf.derivs%22%3A%22%5B0%2C%200%5D%22%2C%22volt%22%3A%221%22%2C%22global%22%3A%22'None'%22%2C%22mthresh%22%3A%220.8%22%2C%22mask%22%3A%22%7B''%7D%22%2C%22cvi%22%3A%22'AR(1)'%22%7D%7D%2C%7B%22%40id%22%3A%22urn%3A32e9944d-72b1-4e01-8c59-14a8ffb09a0f%22%2C%22Label%22%3A%22Estimate%20stat.%22%2C%22Used%22%3A%5B%22urn%3Afd74433b-972f-43cf-a1b4-dfc0eda30f74%22%5D%2C%22AssociatedWith%22%3A%22urn%3A62e3812e-a3e8-4836-8119-a98496a70101%22%2C%22Command%22%3A%22matlabbatch%7B12%7D.spm.stats.fmri_est.spmmat(1)%20%3D%20cfg_dep('fMRI%20model%20specification%3A%20SPM.mat%20File'%2C%20substruct('.'%2C'val'%2C%20'%7B%7D'%2C%7B11%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D)%2C%20substruct('.'%2C'spmmat'))%3B%5Cnmatlabbatch%7B12%7D.spm.stats.fmri_est.write_residuals%20%3D%200%3B%5Cnmatlabbatch%7B12%7D.spm.stats.fmri_est.method.Classical%20%3D%201%3B%22%2C%22Parameters%22%3A%7B%22write_residuals%22%3A%220%22%2C%22method.Classical%22%3A%221%22%7D%7D%2C%7B%22%40id%22%3A%22urn%3A73538065-1ce0-4b7e-b73a-e06e0bf72f6b%22%2C%22Label%22%3A%22Estimate%20contrast%22%2C%22Used%22%3A%5B%22urn%3A3c3330f9-e4c8-4073-b802-98d8d99c58e4%22%5D%2C%22AssociatedWith%22%3A%22urn%3A62e3812e-a3e8-4836-8119-a98496a70101%22%2C%22Command%22%3A%22matlabbatch%7B13%7D.spm.stats.con.spmmat(1)%20%3D%20cfg_dep('Model%20estimation%3A%20SPM.mat%20File'%2C%20substruct('.'%2C'val'%2C%20'%7B%7D'%2C%7B12%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D)%2C%20substruct('.'%2C'spmmat'))%3B%5Cnmatlabbatch%7B13%7D.spm.stats.con.consess%7B1%7D.tcon.name%20%3D%20'tone%20counting%20vs%20baseline'%3B%5Cnmatlabbatch%7B13%7D.spm.stats.con.consess%7B1%7D.tcon.weights%20%3D%20%5B1%200%5D%3B%5Cnmatlabbatch%7B13%7D.spm.stats.con.consess%7B1%7D.tcon.sessrep%20%3D%20'none'%3B%5Cnmatlabbatch%7B13%7D.spm.stats.con.delete%20%3D%200%3B%22%2C%22Parameters%22%3A%7B%22consess%7B1%7D.tcon.name%22%3A%22'tone%20counting%20vs%20baseline'%22%2C%22consess%7B1%7D.tcon.weights%22%3A%22%5B1%2C%200%5D%22%2C%22consess%7B1%7D.tcon.sessrep%22%3A%22'none'%22%2C%22delete%22%3A%220%22%7D%7D%2C%7B%22%40id%22%3A%22urn%3Afdc26ec5-1cc2-4ccd-b9a1-399b018d25cc%22%2C%22Label%22%3A%22Threshold%22%2C%22Used%22%3A%5B%22urn%3A2fc29d78-7b54-4548-b14f-ab9bc8df945d%22%5D%2C%22AssociatedWith%22%3A%22urn%3A62e3812e-a3e8-4836-8119-a98496a70101%22%2C%22Command%22%3A%22matlabbatch%7B14%7D.spm.stats.results.spmmat(1)%20%3D%20cfg_dep('Contrast%20Manager%3A%20SPM.mat%20File'%2C%20substruct('.'%2C'val'%2C%20'%7B%7D'%2C%7B13%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D%2C%20'.'%2C'val'%2C%20'%7B%7D'%2C%7B1%7D)%2C%20substruct('.'%2C'spmmat'))%3B%5Cnmatlabbatch%7B14%7D.spm.stats.results.conspec.titlestr%20%3D%20''%3B%5Cnmatlabbatch%7B14%7D.spm.stats.results.conspec.contrasts%20%3D%20Inf%3B%5Cnmatlabbatch%7B14%7D.spm.stats.results.conspec.threshdesc%20%3D%20'none'%3B%5Cnmatlabbatch%7B14%7D.spm.stats.results.conspec.thresh%20%3D%200.001%3B%5Cnmatlabbatch%7B14%7D.spm.stats.results.conspec.extent%20%3D%200%3B%5Cnmatlabbatch%7B14%7D.spm.stats.results.conspec.conjunction%20%3D%201%3B%5Cnmatlabbatch%7B14%7D.spm.stats.results.conspec.mask.none%20%3D%201%3B%5Cnmatlabbatch%7B14%7D.spm.stats.results.units%20%3D%201%3B%5Cnmatlabbatch%7B14%7D.spm.stats.results.print%20%3D%20'pdf'%3B%5Cnmatlabbatch%7B14%7D.spm.stats.results.write.tspm.basename%20%3D%20'thresh'%3B%22%2C%22Parameters%22%3A%7B%22conspec.titlestr%22%3A%22''%22%2C%22conspec.contrasts%22%3A%22Inf%22%2C%22conspec.threshdesc%22%3A%22'none'%22%2C%22conspec.thresh%22%3A%220.001%22%2C%22conspec.extent%22%3A%220%22%2C%22conspec.conjunction%22%3A%221%22%2C%22conspec.mask.none%22%3A%221%22%2C%22units%22%3A%221%22%2C%22print%22%3A%22'pdf'%22%2C%22write.tspm.basename%22%3A%22'thresh'%22%7D%7D%5D%2C%22Entities%22%3A%5B%7B%22%40id%22%3A%22urn%3A26741b71-6f61-4097-8aac-3b7a6f95efa2%22%2C%22Label%22%3A%22func_sub-01_task-tonecounting_bold.nii.gz%22%2C%22AtLocation%22%3A%22%2Fstorage%2Fessicd%2Fdata%2FNIDM-Ex%2FBIDS_Data%2FDATA%2FBIDS%2Fds011%2Fsub-01%2Ffunc%2Fsub-01_task-tonecounting_bold.nii.gz%22%2C%22digest%22%3A%7B%22sha256%22%3A%2252cc2a3822512db5be3accc8263f2ac1338f32fad8af63cc81fb5af2f335c509%22%7D%7D%2C%7B%22%40id%22%3A%22urn%3A2d69372f-2ec8-4e73-8214-ca95009895aa%22%2C%22Label%22%3A%22anat_sub-01_T1w.nii.gz%22%2C%22AtLocation%22%3A%22%2Fstorage%2Fessicd%2Fdata%2FNIDM-Ex%2FBIDS_Data%2FDATA%2FBIDS%2Fds011%2Fsub-01%2Fanat%2Fsub-01_T1w.nii.gz%22%2C%22digest%22%3A%7B%22sha256%22%3A%223d9457fa7712b355d6569522ca80a6dfd70a40b82e6aa0a9364513cf04916dbb%22%7D%7D%2C%7B%22%40id%22%3A%22urn%3A6a63c416-cfed-47a4-8f47-eea9d7eb01dd%22%2C%22Label%22%3A%22func_sub-01_task-tonecounting_bold.nii.gz%22%2C%22GeneratedBy%22%3A%22urn%3Aa32dfe88-22f5-4e9b-b025-9892df2eb81a%22%7D%2C%7B%22%40id%22%3A%22urn%3Aae14ed40-d28f-491f-ad7f-f9364a2daeca%22%2C%22Label%22%3A%22anat_sub-01_T1w.nii.gz%22%2C%22GeneratedBy%22%3A%22urn%3A8e7762a4-60d2-4b68-a52a-b1cdecaa5a5b%22%7D%2C%7B%22%40id%22%3A%22urn%3Aa949df0d-6e4b-497e-be36-a43818510275%22%2C%22Label%22%3A%22func_sub-01_task-tonecounting_bold.nii%22%2C%22GeneratedBy%22%3A%22urn%3A3daddd79-e238-4f90-a46e-a7ee2638e983%22%7D%2C%7B%22%40id%22%3A%22urn%3A0657b059-0285-4d8a-8fae-2fb268511c34%22%2C%22Label%22%3A%22meanfunc_sub-01_task-tonecounting_bold.nii%22%2C%22GeneratedBy%22%3A%22urn%3Adad480ac-f312-4758-89c9-2c6765d6393a%22%7D%2C%7B%22%40id%22%3A%22urn%3Abed01f22-b1b7-4c60-939d-4caa877b5cf6%22%2C%22Label%22%3A%22anat_sub-01_T1w.nii%22%2C%22GeneratedBy%22%3A%22urn%3A23e90369-5cf2-465e-a4b0-c4ac55508925%22%7D%2C%7B%22%40id%22%3A%22urn%3Acb038b70-f5e5-4619-a661-3b6f816e4043%22%2C%22Label%22%3A%22segment1%22%2C%22Atlocation%22%3A%22c1xxx.nii.gz%22%2C%22GeneratedBy%22%3A%22urn%3Af63bd3cb-5e25-43e7-9b62-0a6b714b9fd0%22%2C%22AtLocation%22%3A%22c1anat_sub-01_T1w.nii%22%2C%22digest%22%3A%7B%22sha256%22%3A%2261ca923955d0a5c9088df9e258f41644067ec964e1c9a83284ba03b0515079b0%22%7D%7D%2C%7B%22%40id%22%3A%22urn%3A4db91689-fc53-437a-a4d4-465f1df3c016%22%2C%22Label%22%3A%22segment2%22%2C%22Atlocation%22%3A%22c2xxx.nii.gz%22%2C%22GeneratedBy%22%3A%22urn%3Af63bd3cb-5e25-43e7-9b62-0a6b714b9fd0%22%2C%22AtLocation%22%3A%22c2anat_sub-01_T1w.nii%22%2C%22digest%22%3A%7B%22sha256%22%3A%2210ad88ebeebebd0bd03ccbdd4df92d500d28d14715fa5375fd35589caddf49a6%22%7D%7D%2C%7B%22%40id%22%3A%22urn%3Ac3457a35-c5f9-45de-931c-89a71bb169f0%22%2C%22Label%22%3A%22wsegment1%22%2C%22GeneratedBy%22%3A%22urn%3Aff211113-f43c-49ad-acba-57fd339badeb%22%7D%2C%7B%22%40id%22%3A%22urn%3A9c331ad8-b671-4cd6-9d35-d2c9da897c4b%22%2C%22Label%22%3A%22ONSETS_sub-01-MultiCond.mat%22%2C%22AtLocation%22%3A%22%2Fstorage%2Fessicd%2Fdata%2FNIDM-Ex%2FBIDS_Data%2FRESULTS%2FEXAMPLES%2Fds011%2FSPM%2FPREPROCESSING%2FONSETS%2Fsub-01-MultiCond.mat%22%2C%22digest%22%3A%7B%22sha256%22%3A%22be4671d4f9dc480dd3e5be19aeeab2756f7afdc3b32d81e071685d7a4eafcfed%22%7D%7D%2C%7B%22%40id%22%3A%22urn%3A49eefed4-4311-4ede-80a1-8ed5501adc77%22%2C%22Label%22%3A%22swsegment1%22%2C%22GeneratedBy%22%3A%22urn%3A2e82d6a1-9e2a-446b-b508-0e5df37dbdfb%22%7D%2C%7B%22%40id%22%3A%22urn%3Afd74433b-972f-43cf-a1b4-dfc0eda30f74%22%2C%22Label%22%3A%22SPM.mat%22%2C%22GeneratedBy%22%3A%22urn%3Ad13633e4-0e1f-4847-aa4b-872c2aaee8dc%22%7D%2C%7B%22%40id%22%3A%22urn%3A3c3330f9-e4c8-4073-b802-98d8d99c58e4%22%2C%22Label%22%3A%22SPM.mat%22%2C%22GeneratedBy%22%3A%22urn%3A32e9944d-72b1-4e01-8c59-14a8ffb09a0f%22%7D%2C%7B%22%40id%22%3A%22urn%3A2fc29d78-7b54-4548-b14f-ab9bc8df945d%22%2C%22Label%22%3A%22SPM.mat%22%2C%22GeneratedBy%22%3A%22urn%3A73538065-1ce0-4b7e-b73a-e06e0bf72f6b%22%7D%5D%7D%7D) which is a copy of https://github.com/bids-standard/BEP028_BIDSprov/blob/master/examples/from_parsers/spm/spm_default_batch.jsonld vizualised as (using our vizualizer based on pyld+rdflib+prov lib):

I'll into this and will likely remove this outdated example as we now have many others generated by the parsers.