Skip to content

Commit

Permalink
Merge pull request #257 from ajnelson-nist/update_conformance_message
Browse files Browse the repository at this point in the history
Update conformance message
  • Loading branch information
ashleysommer authored Oct 1, 2024
2 parents b3f23e9 + 58e45a7 commit 97c645d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyshacl/constraints/core/logical_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def constraint_name(cls):

def make_generic_messages(self, datagraph: GraphLike, focus_node, value_node) -> List[rdflib.Literal]:
if len(self.not_list) == 1:
m = f"Node {stringify_node(datagraph, value_node)} must not to shape {stringify_node(self.shape.sg.graph, self.not_list[0])}"
m = f"Node {stringify_node(datagraph, value_node)} must not conform to shape {stringify_node(self.shape.sg.graph, self.not_list[0])}"
else:
nots_list = " , ".join(stringify_node(self.shape.sg.graph, n) for n in self.not_list)
m = f"Node {stringify_node(datagraph, value_node)} must not conform to any shapes in {nots_list}"
Expand Down

0 comments on commit 97c645d

Please sign in to comment.