Skip to content

Commit ef257c7

Browse files
authored
Merge pull request #430 from dice-group/bug_fixing
Bug fixing and new release changes
2 parents 9fe6010 + 2a1a442 commit ef257c7

File tree

8 files changed

+8
-10
lines changed

8 files changed

+8
-10
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
[![Coverage](docs/images/tag_coverage.png)](https://ontolearn-docs-dice-group.netlify.app/usage/09_further_resources#code-coverage)
2-
[![Pypi](docs/images/tag_version.png)](https://pypi.org/project/ontolearn/0.7.2/)
3-
[![Docs](docs/images/tag_docs.png)](https://ontolearn-docs-dice-group.netlify.app/usage/01_introduction)
1+
[![Coverage](https://img.shields.io/badge/coverage-95%25-green)](https://ontolearn-docs-dice-group.netlify.app/usage/09_further_resources#code-coverage)
2+
[![Pypi](https://img.shields.io/badge/pypi-0.7.3-blue)](https://pypi.org/project/ontolearn/0.7.3/)
3+
[![Docs](https://img.shields.io/badge/documentation-0.7.3-yellow)](https://ontolearn-docs-dice-group.netlify.app/usage/01_introduction)
44

55
 
66

docs/images/tag_coverage.png

-1.24 KB
Binary file not shown.

docs/images/tag_docs.png

-1.73 KB
Binary file not shown.

docs/images/tag_version.png

-970 Bytes
Binary file not shown.

docs/usage/01_introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# About Ontolearn
22

3-
**Version:** ontolearn 0.7.2
3+
**Version:** ontolearn 0.7.3
44

55
**GitHub repository:** [https://github.com/dice-group/Ontolearn](https://github.com/dice-group/Ontolearn)
66

ontolearn/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
# SOFTWARE.
2323
# -----------------------------------------------------------------------------
2424

25-
__version__ = '0.7.2'
25+
__version__ = '0.7.3'

ontolearn/base_concept_learner.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,21 @@
3030
from typing import List, Tuple, Dict, Optional, Iterable, Generic, TypeVar, ClassVar, Final, Union, cast, Callable, Type
3131
import numpy as np
3232
import pandas as pd
33-
import os
3433

3534
from owlapy.class_expression import OWLClass, OWLClassExpression, OWLThing
3635
from owlapy.iri import IRI
3736
from owlapy.owl_axiom import OWLDeclarationAxiom, OWLEquivalentClassesAxiom, OWLAxiom
3837
from owlapy.owl_individual import OWLNamedIndividual
3938
from owlapy.owl_ontology import OWLOntology
4039
from owlapy.owl_ontology_manager import OWLOntologyManager, AddImport, OWLImportsDeclaration
41-
from owlapy.owl_reasoner import OWLReasoner
40+
from owlapy.owl_reasoner import OWLReasoner, FastInstanceCheckerReasoner, OntologyReasoner
4241

4342
from ontolearn.heuristics import CELOEHeuristic
4443
from ontolearn.knowledge_base import KnowledgeBase
4544
from ontolearn.metrics import F1
4645
from ontolearn.refinement_operators import ModifiedCELOERefinement
4746
from owlapy.owl_ontology import Ontology
4847
from owlapy.owl_ontology_manager import OntologyManager
49-
from owlapy.owl_reasoner import SyncReasoner
5048
from owlapy.render import DLSyntaxObjectRenderer
5149
from .abstracts import BaseRefinement, AbstractScorer, AbstractHeuristic, \
5250
AbstractConceptNode, AbstractLearningProblem
@@ -307,7 +305,7 @@ def predict(self, individuals: List[OWLNamedIndividual],
307305
for axiom in axioms:
308306
manager.add_axiom(ontology, axiom)
309307
if reasoner is None:
310-
reasoner = SyncReasoner(ontology)
308+
reasoner = FastInstanceCheckerReasoner(ontology, base_reasoner=OntologyReasoner(ontology))
311309

312310
if hypotheses is None:
313311
hypotheses = [hyp.concept for hyp in self.best_hypotheses(n)]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def deps_list(*pkgs):
9494
setup(
9595
name="ontolearn",
9696
description="Ontolearn is an open-source software library for structured machine learning in Python. Ontolearn includes modules for processing knowledge bases, inductive logic programming and ontology engineering.",
97-
version="0.7.2",
97+
version="0.7.3",
9898
packages=find_packages(),
9999
install_requires=extras["min"],
100100
extras_require=extras,

0 commit comments

Comments
 (0)