Repository navigation
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