Skip to content

Commit

Permalink
Minor fix for fact++ (#817)
Browse files Browse the repository at this point in the history
# Description
Minor bugfix. Skip some additional datatypes when running FaCT++ and
HermiT.

Co-authored-by: Francesca L. Bleken <[email protected]>
  • Loading branch information
jesper-friis and francescalb authored Dec 11, 2024
1 parent 6a0a455 commit de542a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ontopy/ontology.py
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,7 @@ def sync_reasoner(
)

if include_imported:
ontologies = self.get_imported_ontologies(recursive=True)
ontologies = [self] + self.get_imported_ontologies(recursive=True)
else:
ontologies = [self]

Expand All @@ -1382,6 +1382,8 @@ def sync_reasoner(
# Datatype instances that are known to crash the reasoner
datatypes = (
"http://www.w3.org/2002/07/owl#rational",
"http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML",
"http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON",
"http://www.w3.org/2001/XMLSchema#NCName",
"http://www.w3.org/2001/XMLSchema#NMTOKEN",
"http://www.w3.org/2001/XMLSchema#Name",
Expand Down

0 comments on commit de542a3

Please sign in to comment.