We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to have one instance and validate for multiple classes?
The text was updated successfully, but these errors were encountered:
You can pass a list of shapes to the .validate() method.
.validate()
If you use grapoi, you can directly pass the pointer:
grapoi
await validator.validate({ dataset }, ptr)
Otherwise, the structure must contain a terms property:
terms
await validator.validate({ dataset }, [{ terms: [rdf.namedNode('...')] }])
Sorry, something went wrong.
Okay, that works. It fails when there is no shape loaded for a class.
file:///home/daniel/Development/centergraph/node_modules/shacl-engine/Validator.js:69 targets = shape.resolveTargets(shapeContext) ^ TypeError: Cannot read properties of null (reading 'resolveTargets') at Validator.validate (file:///home/daniel/Development/centergraph/node_modules/shacl-engine/Validator.js:69:25)
If you agree that that should be fixed, I can do a PR.
I will have a closer look. I'm not sure yet if it should be ignored when the shapes are explicitly given and don't exist.
No branches or pull requests
Is it possible to have one instance and validate for multiple classes?
The text was updated successfully, but these errors were encountered: