Owlapy

Latest version: v1.4.0

Safety actively analyzes 714772 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

1.2.0

pip install -U owlapy


What's Changed
Owlapi Adaptor extended: 52 53
- Added `infer_and_save` method which you can use to generate inferred class assertion axioms from the given ontology and saves them to a file.
- You can now use all the methods of the abstract class [OWLReasoner ](https://dice-group.github.io/owlapy/autoapi/owlapy/owl_reasoner/index.html#owlapy.owl_reasoner.OWLReasoner)from [OWLAPIAdaptor ](https://dice-group.github.io/owlapy/autoapi/owlapy/owlapi_adaptor/index.html#owlapy.owlapi_adaptor.OWLAPIAdaptor)or from an instance of [SyncReasoner](https://dice-group.github.io/owlapy/autoapi/owlapy/owl_reasoner/index.html#owlapy.owl_reasoner.SyncReasoner).

SyncReasoner updated: 53
- SyncReasoner is no longer depended on _owlready2_ but now syncs directly to an owlapi reasoner like HermiT, etc.
- Every implemented method of OWLReasoner now is forwarded to the synced reasoner.

2 new short form providers added for [DLSyntaxObjectRenderer](https://dice-group.github.io/owlapy/autoapi/owlapy/render/index.html#owlapy.render.DLSyntaxObjectRenderer): 56
- Added `translating_short_form_provider`. This is used for local ontologies mainly. Uses a reasoner to get the label value.
- Added `translating_short_form_endpoint`. This is used for triplestores . Given an endpoint and a set of rules it will provide the desired behavior using SPARQL queries.
- This providers enables the user to set rules for the representation value that will be used in a DL string after rendering.

Initialize using `partial` from `functools`:

python
from functools import partial

partial_provider = partial(translating_short_form_endpoint, endpoint="https://some_endpoint.com/sparql", rules={})
renderer = DLSyntaxObjectRenderer(short_form_provider=partial_provider)

Check the [docstrings](https://dice-group.github.io/owlapy/autoapi/owlapy/render/index.html#owlapy.render.translating_short_form_endpoint) for more details.


**Full Changelog**: https://github.com/dice-group/owlapy/compare/1.1.1...1.2.0

1.1.1

Happy to share this new release where we added owlapi adaptor.

Update/install:

pip install -U owlapy


What's Changed
* Added owlapi adaptor in https://github.com/dice-group/owlapy/pull/46
- Refactoring of owlapi adaptor: https://github.com/dice-group/owlapy/pull/47 https://github.com/dice-group/owlapy/pull/49

About OWLAPIAdaptor
This class serves as a bridge between _owlapi_ and _owlapy_. You can now directly use reasoners such as _HermiT_ , _Pellet_ etc., to retrieve instances for a given class expression in a given ontology. Please check the [documentation ](https://dice-group.github.io/owlapy/usage/owlapi_adaptor.html) and the [example](https://github.com/dice-group/owlapy/blob/develop/examples/using_owlapi_adaptor.py) for more details on what the adaptor offers.

_We will continue to improve this adaptor in the future release._


**Full Changelog**: https://github.com/dice-group/owlapy/compare/1.1.0...1.1.1

1.1.0

We're happy to announce the new release - owlapy 1.1.0.

You can install/update using `pip install -U owlapy`.

What's Changed
* License updated to MIT License by alkidbaci in 94e2809550152a1f081f9663fe35affe9a024a9c.
* New module `owl_hierarchy.py` (expressing OWL hierarchy) and extra utils method which are now all moved to `utils.py` are added by alkidbaci in 38.
* An alternative for the _ForAll_ mapping based on De Morgan's laws is introduced to owl2sparql converter by nkaralis in 39 .
* New examples and modules added and some refactoring changes by alkidbaci in 41 .
* **Classes for ontology manipulation added by alkidbaci in 42** .
* Ontology representation class: `owlapy.owl_ontology.Ontology`.
* Ontology manager class for managing ontologies: `owlapy.owl_ontology_manager.OntologyManager`.
* 3 ontology reasoner classes for reasoning over ontologies in _owlapy/owl_reasoner_: `OntologyReasoner`, `FastInstanceCheckerReasoner` and `SyncReasoner`.

~_Documentation for ontology manipulation will be added soon._~
**Edit: [Documentation](https://dice-group.github.io/owlapy/) is now added.** Check also the [examples](https://github.com/dice-group/owlapy/tree/develop/examples).

**Full Changelog**: https://github.com/dice-group/owlapy/compare/1.0.2...1.1.0

1.0.2

We're happy to announce the new release - owlapy 1.0.2.

You can install/update using `pip install -U owlapy`.

What's Changed
* Fixed bug by alkidbaci in https://github.com/dice-group/owlapy/pull/28
* Issues solved by alkidbaci in https://github.com/dice-group/owlapy/pull/32
* Release by Demirrr in https://github.com/dice-group/owlapy/pull/36


**Full Changelog**: https://github.com/dice-group/owlapy/compare/1.0.0...1.0.2

1.0.0

We're happy to announce the new release - owlapy 1.0.0.

You can install/update using `pip install -U owlapy`.

What's Changed

API refactoring changes:
- **IMPORTANT**: Method `get_iri()` for classes which inherit from `HasIRI` is now completely removed. OWL classes that inherit from `HasIRI` contain 2 new parameters `iri` (to get the IRI - used instead of `get_iri()` ) and `str` (to get string representation of that IRI)
- `model` module is removed.
- added modules: `owl_ontology`, `owl_ontology_manager` and `owl_reasoning`, each has respective classes that were previously located in `model` module.
- `providers.py` is moved directly under `owlapy`. Naming of the methods of this module is changed from _PascalCase_ to _sneak_case_.
- removed module `owl2sparql`. `owl2sparql.converter.py` is now moved directly under `owlapy` module.
- removed module `data_ranges`, added `owl_data_ranges` instead.
- renamed `types.py` to `owl_datatype.py`.
- renamed `owlobject.py` to `owl_object.py`.
- moved class `HasIndex` from `has.py` to `util.py`. Removed `has.py`.
- moved method `move` (renamed from `MOVE`) from `_utils.py` to `util.py`. Removed `_utils.py`.
- conversion methods including: `owl_expression_to_dl`, `owl_expression_to_manchester`, `dl_to_owl_expression`, `manchester_to_owl_expression`, `owl_expression_to_sparql` can now be imported directly from `owlapy`.

Documentation Changes:
- Changed docstrings for owl classes that correspond to entities from OWL 2 Specification according to description found in the specification. Link to the description is also included for each class in case someone is interested to read more.
- Added "About" page in documentation.
- Added "Usage" guide in documentation, showing the essence of owlapy through concrete examples.

Bug fixes:
- fixed a bug where converting an `OWLDataCardinalityRestriction` expression to sparql the corresponding method would check for _Object_ restrictions instead of _Data_ restrictions.
- for parser methods: `dl_to_owl_expression` and `manchester_to_owl_expression` you can now pass the `namespace` argument which is required to successfully parse the given expression.


**Full Changelog**: https://github.com/dice-group/owlapy/compare/0.1.3...1.0.0

0.1.3

We're happy to announce the 0.13 release. You can install it with `pip install -U owlapy`

What's Changed
* Versioning by Demirrr in https://github.com/dice-group/owlapy/pull/10
* Iri owl by Demirrr in https://github.com/dice-group/owlapy/pull/14
* Refactoring sparql mapping by Demirrr in https://github.com/dice-group/owlapy/pull/17
* Refactoring sparql mapping by Demirrr in https://github.com/dice-group/owlapy/pull/18
* WIP:Refactoring:Restriction moved from model by Demirrr in https://github.com/dice-group/owlapy/pull/19
* Docs + convenient methods by alkidbaci in https://github.com/dice-group/owlapy/pull/16
* WIP:Refactoring:OWL axioms, Data Types, and Individuals by Demirrr in https://github.com/dice-group/owlapy/pull/20
* Refactoring OWLAPY/model by Demirrr in https://github.com/dice-group/owlapy/pull/21
* Fixing iri by Demirrr in https://github.com/dice-group/owlapy/pull/22
* Class expression script will become a python module by Demirrr in https://github.com/dice-group/owlapy/pull/23
* Refactoring completed by Demirrr in https://github.com/dice-group/owlapy/pull/24
* New Release by Demirrr in https://github.com/dice-group/owlapy/pull/25


**Full Changelog**: https://github.com/dice-group/owlapy/compare/0.1.2...0.1.3

Page 2 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.