From b08ea26370f38ead9dc20045e696358fc794e201 Mon Sep 17 00:00:00 2001 From: Alex Nelson Date: Fri, 4 Oct 2024 16:45:45 -0400 Subject: [PATCH] Fix capitalization typo References: * https://www.w3.org/TR/shacl/#LanguageInConstraintComponent Signed-off-by: Alex Nelson --- pyshacl/constraints/core/string_based_constraints.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyshacl/constraints/core/string_based_constraints.py b/pyshacl/constraints/core/string_based_constraints.py index fbe0547..279f758 100644 --- a/pyshacl/constraints/core/string_based_constraints.py +++ b/pyshacl/constraints/core/string_based_constraints.py @@ -392,15 +392,15 @@ def _evaluate_string_rule(self, r, target_graph, f_v_dict): try: if not isinstance(lang_in, rdflib.Literal) or not isinstance(lang_in.value, str): raise ReportableRuntimeError( - "All languages in sh:LanugageIn must be a Literal with type xsd:string" + "All languages in sh:lanugageIn must be a Literal with type xsd:string" ) except (AssertionError, AttributeError): raise ReportableRuntimeError( - "All languages in sh:LanugageIn must be a Literal with type xsd:string" + "All languages in sh:lanugageIn must be a Literal with type xsd:string" ) languages_need.add(str(lang_in.value).lower()) except (KeyError, AttributeError, ValueError): - raise ReportableRuntimeError("Value of sh:LanguageIn must be a RDF List") + raise ReportableRuntimeError("Value of sh:languageIn must be a RDF List") wildcard = False if '*' in languages_need: wildcard = True