CLARIAH / COW

Integrated CSV to RDF converter, using CSVW and nanopublications
MIT License
46 stars 9 forks source link

specify metadata file by command line option #145

Open rlzijdeman opened 2 years ago

rlzijdeman commented 2 years ago

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

bblfish commented 2 years ago

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.