Managing Metadata¶
In this section we’ll take a look at how to access archive metadata from the command line. There is also a python version.
Viewing Metadata¶
We’ll keep working with my_archive
that we created earlier. Right now we’ll take a look at our metadata.
$ datafs metadata my_archive # doctest: +SKIP
{u'description': u'my example archive',
u'source': u'Burke et al. (2016)',
u'doi': u'10.1038/nature15725',
u'author': u'fBurke'}
Updating Metadata¶
$ datafs update_metadata my_archive \
> --description 'Spatial impact meta-analysis' \
> --method 'downscaled Burke et al (2015) data'
We’ll need to read the metadata again to check to see if we succeeded
$ datafs metadata my_archive # doctest: +SKIP
{u'description': u'Spatial impact meta-analysis',
u'source': u'Burke et al. (2016)',
u'doi': u'10.1038/nature15725',
u'author': u'Burke',
u'method': u'downscaled Burke et al (2015) data'}
Great!
It should be noted that the command line tool does not deal with whitespaces well so you’ll need to wrap text in quotes if it refers to a single entry.