Testing the viability of the DCMI TAP CSV format.
Will read a csv file that specifies an application profile and store as a complex python dictionary, and optionally print a representation of the python dict, or (partially) convert the dict to YAMA or ShExJ and print that.
When I say "a csv file...", I mean the one in tests/input/ap_bookclub.csv. Trying with any other will likely find a bug.
Example output: raw, shexj, yama. Also, shexc generated from the schexj using the shexSpec webap.
Please note, this is unfinished and buggy.
usage: python main.py [-h] [-d] [-y] [-s] infile
Read an application profile from simple csv file and output some RDFS for the
profile.
positional arguments:
infile file name of Tabular Application Profile csv
optional arguments:
-h, --help show this help message and exit
-d, --dump Dump (print) the AP once loaded
-y, --yama Convert and dump (print) the AP as YAMA
-s, --shex Convert and dump (print) the AP as shexj