Releases: alkidbaci/OntoSample
ontosample 0.2.6
What changed:
Updated to owlapy 1.3.3
This update includes all upstream changes from owlapy 1.3.3. There are no changes to sampler behavior—this is purely a refactoring update.
Bug Fix: Forest Fire sampler
Fixed an issue where random.sample was being used on a set object, which is not supported.
Pinned owlready2 to version 0.40
Due to a bug in newer versions where removing data property assertion axioms during sampling fails, the version is now strictly pinned to 0.40.
Code Refactoring
Various internal refactoring improvements for better code efficiency and maintainability.
Added Testing & CI
Introduced unit tests and a GitHub Actions workflow to automatically verify code integrity on changes.
README Update
Removed paper experiment reproduction steps from README.md.
Full Changelog: v0.2.5...v0.2.6
We recommend using the latest version and make sure to check on pypi for yanked releases.
Install/update:
pip install -U ontosample
As always , in case of any question or possible bug, please open a issue and it will be taken care of.
ontosample 0.2.5
Compatibility update patch
- Some refactoring changes due to owlapy 1.1.0
basemodule removed fromontolearn_light(not needed anymore)
To get the latest release:
pip install -U ontosampleontosample 0.2.3
Bug fixing patch
- Updated imports for owlapy 1.0.2
- Added latest changes from ontolearn into ontolearn_light
To get the latest release:
pip install -U ontosampleontosample 0.2.2
When trying to use ontosample in ontolearn we found that there are some compatibility issues because classes of ontolearn_light are not recognized as classes of ontolearn.
That is why in this release we made ontolearn related imports of ontosample conditional, based on the presence of ontolearn package. This way, when both packages are installed at the same environment, ontosample will use ontolearn module and not ontolearn_light.
In case of any issue please reach us on the Issues tab.
ontosample 0.2.0
Happy to share the new release of Ontosample.
We got some important changes to the base structure this time. The logic of the samplers stays unchanged.
The following changes were made:
- All the generated knowledge bases/ontologies point to different worlds and no longer conflict with each other.
- Because of that a sampler object can now be reused to perform multiple samples on the initial knowledge base.
- The
save_samplemethod now is static and takes 2 arguments:kbthe sampled knowledge base that you want to save andfilenamethe name of the file that will store the ontology (the file will be created at runtime if it does not exist). ontolearnmodule renamed toontolearn_lightso it does not conflict with the main ontolearn package.- Updated
ontolearn_lightsub modules with recent changes from main ontolearn package where triplestore logic is removed (a triple store knowledge base is not able to be sampled anyway because it stored in a server). - Removed methods
get_sampled_nodes(can usesampled_kb.individuals_count()instead). get_removed_nodesis now renamed to_get_removed_nodesindicating that is only for internal usage. Removed individuals can be retrieved as follows:removed_individuals = set(kb.individuals()) - set(sampled_kb.individuals())
As always you can use pip install ontosample to get the lates version via the Python Package index.
Don't hesitate to open an issue in case you are having a problem or you just want to suggest something.
Full Changelog: v0.1.1...v0.2.0
ontosample 0.1.1
We are happy to announce the first release of ontosample.
You can now use pip install ontosample to get it via the Python Package index.
Changes since the initialization commit:
- We are keeping only the ontolearn files that are necessary to make the sampling work. Everything else is removed from ontolearn module.
- Refactored the code of samplers, now the code is more compact and they are divided in three modules:
classic_samplers.pylpc_samplers.pylpf_samplers.py
Note: If you want to try concept learning algorithms of ontolearn, you have to install the whole ontolearn package because ontosample is using a light version of it.