Skip to content

Commit

Permalink
fix: added allow_warnings default value
Browse files Browse the repository at this point in the history
  • Loading branch information
farouktelicent committed Aug 2, 2024
1 parent 7c82d7b commit f132cea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shacltool/owl2shacl.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,15 @@ def create_shacl(ontology: str | Path | Graph) -> tuple[Graph, Graph]:
return ont_graph, sh_graph


def rdf_validate(data_file: str | Graph, ont_graph: str | Graph, sh_graph: str | Graph) -> tuple[bool, Graph, str]:
def rdf_validate(data_file: str | Graph, ont_graph: str | Graph, sh_graph: str | Graph, allow_warnings: bool = False) -> tuple[bool, Graph, str]:

Check failure on line 208 in shacltool/owl2shacl.py

View workflow job for this annotation

GitHub Actions / Python Test and Build (3.11) / test_and_build

Ruff (E501)

shacltool/owl2shacl.py:208:121: E501 Line too long (145 > 120)
# run shacl validation
conforms, results_graph, results_text = validate(data_file,
shacl_graph=sh_graph,
ont_graph=ont_graph,
inference='none',
abort_on_first=False,
allow_infos=False,
allow_warnings=True,
allow_warnings=allow_warnings,
meta_shacl=False,
advanced=True,
js=False,
Expand Down

0 comments on commit f132cea

Please sign in to comment.