Skip to content

Commit

Permalink
Fix capitalization typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnelson-nist committed Oct 4, 2024
1 parent c1aad57 commit b08ea26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyshacl/constraints/core/string_based_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b08ea26

Please sign in to comment.