Code repository for the BIBFRAME InterOp Group's custom DCTap-to-SHACL parser.
After installing, convert one or more BIBFRAME DCTap files to a SHACL validation graph from the command:
- If installed with uv,
uv run dctap2shacl --dctap admin_metadata.tsv - If installed with pip,
dctap2shacl --dctap admin_metadata.tsv
This will create and save a turtle file, bf-validation.ttl in the same directory.
-h,--helpDisplays help-i,--dctapOne or more DCTap files, seperated by commas-o,--shaclOptional, file name for the validation graph-fmt,--formatOptional, RDF serialization format, can be one of the following:turtle: Turtle (default)xmlorpretty-xml: XMLjson-ld: JSON Linked Data formatnt: N-triples