rdf-ext / shacl-engine

A fast RDF/JS SHACL engine
MIT License
29 stars 0 forks source link

Exception with unclear message #16

Closed MarinusVonhof closed 6 months ago

MarinusVonhof commented 6 months ago

Hello, The validator throws "Cannot read properties of null (reading '0')" Probably expecting reading an array?

The exception occurs while validating the combination of the files in the attachment: test shacl.zip

It runs ok when the propertyshape "gwsw_cfk:AfmetingLeiding_card" is removed. Also it runs ok without checking on closed properties.

Hope this helps, with best regards.

bergos commented 6 months ago

I was able to reproduce the problem. See the PR for more details. A test was added and the bug was fixed.

Fixed in #17 released in v0.1.5

MarinusVonhof commented 6 months ago

Ok Thomas, thanks again!