Skip to content

Commit 50466e0

Browse files
authored
Merge pull request #194 from dice-group/refactoring
Refactoring
2 parents bc2f9f4 + f5965e7 commit 50466e0

4 files changed

Lines changed: 450 additions & 666 deletions

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ print(len(onto.get_abox_axioms()))
349349
<details><summary> Click me!</summary>
350350

351351
```python
352+
from owlapy.owl_axiom import OWLClassAssertionAxiom
352353
from owlapy.owl_individual import OWLNamedIndividual
353354
from owlapy.owl_reasoner import SyncReasoner
354355
from owlapy.owl_ontology import SyncOntology
@@ -360,7 +361,8 @@ manchester_expr_str = "hasChild some Female"
360361
ontology = SyncOntology("../KGs/Family/family-benchmark_rich_background.owl")
361362
reasoner = SyncReasoner(ontology, reasoner="Pellet")
362363
target_class = manchester_to_owl_expression(manchester_expr_str, "http://www.benchmark.org/family#")
363-
justifications = reasoner.create_justifications({individual}, target_class, save=True)
364+
axiom = OWLClassAssertionAxiom(individual, target_class)
365+
justifications = reasoner.create_axiom_justifications(axiom)
364366
[print(justification) for justification in justifications]
365367
```
366368
</details>

docs/usage/owlapi_synchronization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ mapper. They inherit from abstract classes already present in owlapy
2727
(`AbstractOWLOntology` and `AbstractOWLReasoner` respectively) so
2828
the usage is the same as other implementors of these abstract classes.
2929
Additionally, SyncReasoner provides some supplementary methods, such as `infer_axioms`,
30-
`create_justifications`, `has_consistent_ontology`, `is_satisfiable`, etc.
30+
`create_axiom_justifications`, `create_laconic_axiom_justifications`, `create_inconsistency_justifications`, `has_consistent_ontology`, `is_satisfiable`, etc.
3131
For a comprehensive overview of all available methods and their description, refer to the [API](owlapy.owl_reasoner.SyncReasoner) documentation.
3232

3333
To make this guide self-contained, we will go through a simple example

0 commit comments

Comments
 (0)