<data-standard-validator>: a Lit web component that
checks JSON and JSON-LD records against SHACL shapes in the browser, with
plain-English errors that point at the line. It is built on
@theodi/data-standard-validator.
See the example project and its live demo.
Install it from npm:
npm install @theodi/data-standard-validator-componentimport '@theodi/data-standard-validator-component'
document.querySelector('data-standard-validator')!.config = {
standards: [{ name: 'Person', shapes: 'https://example.org/person.ttl' }],
}Without a bundler, load a release from jsDelivr instead (details):
<script type="module" src="https://cdn.jsdelivr.net/npm/@theodi/data-standard-validator-component@1.0.0/standalone/data-standard-validator.js"></script>Documentation: https://theodi.github.io/data-standard-validator-component/
- Usage
- Development (including how to release a new version to npm)
Licensed under the Apache License 2.0. See the LICENSE file for details.