Skip to content

Provide a CLI #90

@tpluscode

Description

@tpluscode

Would it be nice to have a simple CLI provided by this package. I would propose a simple interface which would load data+shapes to memory and offer at least two output "modes"

Standard mode

Writes the validation report to standard output, optionally using type specified in --format

npx rdf-validate-shacl \
  --shapes Person.shape.ttl \
  --data people.nq \
  --format application/ld+json

Without --format it would send n-quads so that the report can be piped easily to other tools

npx rdf-validate-shacl | other-cli-tool

Quiet mode

This would print nothing just return an exit code != 0 when validation failed

npx rdf-validate-shacl \
  --shapes Person.shape.ttl \
  --data people.nq \
  --quiet

Globs for loading the graphs

npx rdf-validate-shacl --shapes shapes/*.ttl --data input/*

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions