COW icon indicating copy to clipboard operation
COW copied to clipboard

specify metadata file by command line option

Open rlzijdeman opened this issue 3 years ago • 1 comments

Original issue posted via cattle repo by @bblfish. See: https://github.com/CLARIAH/cattle/issues/29 I would like to specify the metadata file via the command line so that I can use the same metadata file for different csv files that implement the same schema. Using Swirrl/csv2rdf I can do something like this

$ csv2rdf -t 20220204.csv -u 20220204.csv-metadata.json -m minimal > out.ttl

rlzijdeman avatar Jun 24 '22 18:06 rlzijdeman

Thanks for moving the issue. I had not noticed I was on the wrong repository.

A better example from the one I gave above would be one where the csv and the metadata don't fit the naming conventations and are located in different directories.

$ csv2rdf -t ../data/20220204.csv -u 20220204.csv-meta.json -m minimal > out.ttl

This is using the https://github.com/Swirrl/csv2rdf implementation which I found very nice, but a bit limiting in that it does not have conditional features, which I was starting to find a need for.

bblfish avatar Jun 25 '22 09:06 bblfish