You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During validation, in the function _shacl_path_to_sparql_path in sparql_query_helper.py I get the following error: AttributeError: 'ShapesGraph' object has no attribute 'items'
In the code I see
if len(sequence_list) > 0:
all_collected = []
for s in sg.items(sequence_list):
which indeed refers to a non-existent function items on the ShapesGraph object. Is this a bug, or am I doing something wrong?
The text was updated successfully, but these errors were encountered:
Thanks @Martijn-Y-ai
Yes, indeed I think this looks like a bug! Great reporting.
This must be coming from a section of code that is not covered by the standard W3C SHACL test suite, nor the DASH Test suite.
It is a simple fix (I think it should be sg.graph.items()) but the fact this bug code has been present in the code for at least 20 versions, means I also need to add a new test to cover that section of code.
I am using pyshacl 0.17.1 and declared a shape as follows:
During validation, in the function
_shacl_path_to_sparql_path
insparql_query_helper.py
I get the following error:AttributeError: 'ShapesGraph' object has no attribute 'items'
In the code I see
which indeed refers to a non-existent function
items
on the ShapesGraph object. Is this a bug, or am I doing something wrong?The text was updated successfully, but these errors were encountered: