shex-to-shexj

ShExC to ShExJ conversion utility


Keywords
fhir, shex, shexc, shexj
License
UPL-1.0
Install
pip install shex-to-shexj==0.1.2

Documentation

shex_to_shexj

Pyversions

PyPi

ShExC to ShExJ conversion utility. Convert the ShEx compact syntax (ShExC) to the ShEx JSON syntax (ShExJ). This conversion is useful for:

  • Tools that do processing directly on the ShEx AST
  • Large ShEx files that may take a while to compile (although another solution would be to enhance the compiler itself...)

Installation

pipenv install shex_to_shexj

Usage

pipenv run shex_to_shexj

usage: shex_to_shexj [-h] [-i [INFILE [INFILE ...]]] [-id INDIR]
                              [-o [OUTFILE [OUTFILE ...]]] [-od OUTDIR] [-f]
                              [-s]

ShEx to ShExJ converter

optional arguments:
  -h, --help            show this help message and exit
  -i [INFILE [INFILE ...]], --infile [INFILE [INFILE ...]]
                        Input file(s)
  -id INDIR, --indir INDIR
                        Input directory
  -o [OUTFILE [OUTFILE ...]], --outfile [OUTFILE [OUTFILE ...]]
                        Output file(s)
  -od OUTDIR, --outdir OUTDIR
                        Output directory
  -f, --flatten         Flatten output directory
  -s, --stoponerror     Stop on processing error