diff --git a/shacltool/owl2shacl.py b/shacltool/owl2shacl.py index 4d3e1c7..12f9912 100644 --- a/shacltool/owl2shacl.py +++ b/shacltool/owl2shacl.py @@ -205,7 +205,8 @@ 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]: # run shacl validation conforms, results_graph, results_text = validate(data_file, shacl_graph=sh_graph, @@ -213,7 +214,7 @@ def rdf_validate(data_file: str | Graph, ont_graph: str | Graph, sh_graph: str | inference='none', abort_on_first=False, allow_infos=False, - allow_warnings=False, + allow_warnings=allow_warnings, meta_shacl=False, advanced=True, js=False,