Skip to content

An approximation of a DCMI Application Profile Processor

Notifications You must be signed in to change notification settings

philbarker/APProcs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Usage

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

About

An approximation of a DCMI Application Profile Processor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages