owlapy 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 fromHasIRI
is now completely removed. OWL classes that inherit fromHasIRI
contain 2 new parametersiri
(to get the IRI - used instead ofget_iri()
) andstr
(to get string representation of that IRI) model
module is removed.- added modules:
owl_ontology
,owl_ontology_manager
andowl_reasoning
, each has respective classes that were previously located inmodel
module. providers.py
is moved directly underowlapy
. Naming of the methods of this module is changed from PascalCase to sneak_case.- removed module
owl2sparql
.owl2sparql.converter.py
is now moved directly underowlapy
module. - removed module
data_ranges
, addedowl_data_ranges
instead. - renamed
types.py
toowl_datatype.py
. - renamed
owlobject.py
toowl_object.py
. - moved class
HasIndex
fromhas.py
toutil.py
. Removedhas.py
. - moved method
move
(renamed fromMOVE
) from_utils.py
toutil.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 fromowlapy
.
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
andmanchester_to_owl_expression
you can now pass thenamespace
argument which is required to successfully parse the given expression.
Full Changelog: 0.1.3...1.0.0