Skip to content

SHACL parsing error with real data #9

@alexisimo

Description

@alexisimo

I've found an error while parsing a subset of the RINF data together with some of its shapes.
The error I've got is the following:

Traceback (most recent call last):
  File "/home/user/GitHub/ERA-SHACL-Benchmark/engines/trav_shacl/validate.py", line 60, in <module>
    trav_shacl_validate(args.data, args.shapes, args.report)
  File "/home/user/GitHub/ERA-SHACL-Benchmark/engines/trav_shacl/validate.py", line 29, in trav_shacl_validate
    shape_schema = ShapeSchema(
  File "/home/user/.local/lib/python3.10/site-packages/TravSHACL/core/ShapeSchema.py", line 50, in __init__
    self.shapes = ShapeParser().parse_ttl(
  File "/home/user/.local/lib/python3.10/site-packages/TravSHACL/core/ShapeParser.py", line 176, in parse_ttl
    constraints = self.parse_constraints_ttl(const_array, target_def, id_)
  File "/home/user/.local/lib/python3.10/site-packages/TravSHACL/core/ShapeParser.py", line 461, in parse_constraints_ttl
    constraints.extend(self.parse_constraint(var_generator, constraint, constraints_id + '_c' + str(i + 1), target_def, None))
TypeError: 'NoneType' object is not iterable

You can find attached below the data, script, and shapes used to reproduce the error.
shacl_parsing_bug.zip

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