diff --git a/ontopy/ontology.py b/ontopy/ontology.py index 21fcfc25..50817cc2 100644 --- a/ontopy/ontology.py +++ b/ontopy/ontology.py @@ -1344,7 +1344,7 @@ def sync_reasoner( Keyword arguments are passed to the underlying owlready2 function. """ # pylint: disable=too-many-branches,too-many-locals - # pylint: disable=unexpected-keyword-arg + # pylint: disable=unexpected-keyword-arg,invalid-name removed_gspo = [] # obj: (ontology, s, p, o) removed_gspod = [] # data: (ontology, s, p, o, d) @@ -1356,7 +1356,7 @@ def sync_reasoner( remove_custom_datatypes = False elif reasoner == "HermiT": sync = owlready2.sync_reasoner_hermit - remove_custom_datatypes = False + remove_custom_datatypes = True else: raise ValueError( f"Unknown reasoner '{reasoner}'. Supported reasoners "