Ontolearn

Latest version: v0.9.0

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

Scan your dependencies

Page 1 of 2

0.9.0

We are happy to share with you the first release of 2025: ontolearn v0.9.0.

Installation/upgrade using PyPI:

pip install -U ontolearn


Changes Summary:
- We have added two new models, namely **ROCES** and **NCES2**.
- Some major refactoring to knowledge base classes, especially the triplestore knowlege base.
- Removed some hyperparameters and caching operations from `KnowledgeBase`.
- `TripleStore` and `TripleStoreKnowlegeBase` merged to a single class.
- TripleStore knowledge base can now be used by all learners except NCES, NCES2 and ROCES.
- NCES, NCES2 and ROCES will be adapted soon to use TripleStore knowledge base.
- Please check PR 510 documentation for additional details.
- Added semantic caching algorithm for OWL reasoners.
- [Documentation](https://ontolearn-docs-dice-group.netlify.app/) is updated.
- Fixed some known bugs and made a few optimizations for Drill.

All Changes (+ PRs)
* DRILL shifts the quality computation to triplestore by Demirrr in https://github.com/dice-group/Ontolearn/pull/505
* Class expression learning on DBpedia by Jean-KOUAGOU in https://github.com/dice-group/Ontolearn/pull/506
* Add ROCES and NCES2 by Jean-KOUAGOU in https://github.com/dice-group/Ontolearn/pull/511
* Merging TripleStore and TripleStroreKnowledgeBase, Refactoring and Documentation update by alkidbaci in https://github.com/dice-group/Ontolearn/pull/510
* Drill bug fix by alkidbaci in https://github.com/dice-group/Ontolearn/pull/513
* Semantic caching algorithm added by Louis-Mozart in https://github.com/dice-group/Ontolearn/pull/512
* Docs update and version increase by alkidbaci in https://github.com/dice-group/Ontolearn/pull/514
* Final changes before 0.9.0 by alkidbaci in https://github.com/dice-group/Ontolearn/pull/517
* Excluded recent tests by alkidbaci in https://github.com/dice-group/Ontolearn/pull/519
* New Release: 0.9.0 by alkidbaci in https://github.com/dice-group/Ontolearn/pull/518


**Full Changelog**: https://github.com/dice-group/Ontolearn/compare/0.8.1...0.9.0

0.8.1

Ontolearn 0.8.1 is out. This version uses owlapy 1.3.3 which brings some fundamental changes and we have mainly done some fixes during the past weeks. Please find the details below.

Install/Update using pip:


pip install -U ontolearn



What's Changed
* Learn SPARQL queries using string literals by nkaralis in https://github.com/dice-group/Ontolearn/pull/460
* updated retrieval_eval_under_incomplete by LckyLke in https://github.com/dice-group/Ontolearn/pull/465
* Fix neural reasoner by LckyLke in https://github.com/dice-group/Ontolearn/pull/466
* Fix for issue 467 and prediction caching lru by LckyLke in https://github.com/dice-group/Ontolearn/pull/469
* fix for test_owl_neural_retrieval fail due to abox method by LckyLke in https://github.com/dice-group/Ontolearn/pull/470
* Owlapy 1.3.2 by Demirrr in https://github.com/dice-group/Ontolearn/pull/473
* Regression Tests for CELOE by Demirrr in https://github.com/dice-group/Ontolearn/pull/474
* Fixing broken examples and import errors by Demirrr in https://github.com/dice-group/Ontolearn/pull/477
* Fix for Main.py by Demirrr in https://github.com/dice-group/Ontolearn/pull/478
* Refactoring examples and adding more tests by Demirrr in https://github.com/dice-group/Ontolearn/pull/480
* Knowledge Base example is updated and included into tests by Demirrr in https://github.com/dice-group/Ontolearn/pull/481
* subconcepts is now recursive by LckyLke in https://github.com/dice-group/Ontolearn/pull/482
* Litserve neural reasoner endpoint + evalutation script by LckyLke in https://github.com/dice-group/Ontolearn/pull/483
* Neural reasoner all values from by LckyLke in https://github.com/dice-group/Ontolearn/pull/485
* KGs with no properties or named concepts now supported by LckyLke in https://github.com/dice-group/Ontolearn/pull/488
* Prediciton caching with dynamic cache size + caching is optional by LckyLke in https://github.com/dice-group/Ontolearn/pull/490
* fixes memory issue by writing csv to disk and sample ratio issue for … by LckyLke in https://github.com/dice-group/Ontolearn/pull/493
* Owlapy 1.3.3 by alkidbaci in https://github.com/dice-group/Ontolearn/pull/486


**Full Changelog**: https://github.com/dice-group/Ontolearn/compare/0.8.0...0.8.1

0.8.0

We are happy to share with you our newest release [v0.8.0](https://pypi.org/project/ontolearn/0.8.0/).

Please upgrade as usual:

pip install -U ontolearn


This new release features some refactoring done to ontolearn, among others, highlighting the removal of `ModelAdapter`, code adjustments due to _owlapy's_ newest versions and refactoring done for Enexa project. Other major changes include integration of NCES in ontolearn-web service as well as fixes DL-learner binding and some changes to our triple store related classes. Work to improve the triple store experience is still in progress.

Louis-Mozart and sapkotaruz11 have made their first contributions to the project. Your contribution is well appreciated.

You can check the notes below about PRs and specific commits of interest:

What's Changed
* repr() is being used at OWLLiteral with string value to adress by Demirrr in https://github.com/dice-group/Ontolearn/pull/431
* Saving data of TDL by Demirrr in https://github.com/dice-group/Ontolearn/pull/434
* Retrieval eval incomplete by Louis-Mozart in https://github.com/dice-group/Ontolearn/pull/436
* update docs Concept_Learning by sapkotaruz11 in https://github.com/dice-group/Ontolearn/pull/437
* Python version bandage and logo + favicon added to docs by alkidbaci in https://github.com/dice-group/Ontolearn/pull/438
* Added to parser by Louis-Mozart in https://github.com/dice-group/Ontolearn/pull/440
* Removing model adapter by alkidbaci in https://github.com/dice-group/Ontolearn/pull/441
* owlapy version increased by Demirrr in https://github.com/dice-group/Ontolearn/pull/442
* Fixing KeyError in max card. by Demirrr in https://github.com/dice-group/Ontolearn/pull/443
* updated to owlapy 1.3.0 by alkidbaci in https://github.com/dice-group/Ontolearn/pull/444
* TripleStoreReasoner.equivalent_classes() only works on named concepts by Demirrr in https://github.com/dice-group/Ontolearn/pull/452
* Refactoring for Enexa by Demirrr in https://github.com/dice-group/Ontolearn/pull/455
* Retrieval eval incomplete by Louis-Mozart in https://github.com/dice-group/Ontolearn/pull/449
* Update 06_concept_learners.md by LckyLke in https://github.com/dice-group/Ontolearn/pull/461
* Integrate NCES in ontolearn-web service and fix dllearner binding script in examples by Jean-KOUAGOU in https://github.com/dice-group/Ontolearn/pull/450
* Incremented to owlapy 1.3.1 and some refactoring on triple_store.py by alkidbaci in https://github.com/dice-group/Ontolearn/pull/462
* New release by alkidbaci in https://github.com/dice-group/Ontolearn/pull/463
* Ontolearn 0.8.0 by alkidbaci in https://github.com/dice-group/Ontolearn/pull/464

New Contributors
* Louis-Mozart made their first contribution in https://github.com/dice-group/Ontolearn/pull/436
* sapkotaruz11 made their first contribution in https://github.com/dice-group/Ontolearn/pull/437

**Full Changelog**: https://github.com/dice-group/Ontolearn/compare/0.7.3...0.8.0

0.7.3

Install/upgrade:


pip install -U ontolearn


**Full Changelog**: https://github.com/dice-group/Ontolearn/compare/0.7.2...0.7.3

What's Changed
* ALCQIO retrieval with neural nets by Demirrr in https://github.com/dice-group/Ontolearn/pull/425
* Triples based on literals can be now parsed: by Demirrr in https://github.com/dice-group/Ontolearn/pull/427
* TDL refactoring by Demirrr in https://github.com/dice-group/Ontolearn/pull/428
* OWLLiteral with string added by Demirrr in https://github.com/dice-group/Ontolearn/pull/429
* Bug fixing and new release changes by alkidbaci in https://github.com/dice-group/Ontolearn/pull/430


**Full Changelog**: https://github.com/dice-group/Ontolearn/compare/0.7.2...0.7.3

0.7.2

Happy to share with you our new release: ontolearn 0.7.2

shell
pip install -U ontolearn


Important API changes:
Modules inside `ontolearn/base` directory **removed** from ontolearn and classes belonging to those modules are now **moved** to [_owlapy_](https://github.com/dice-group/owlapy).

Respective PRs:
- ontolearn: https://github.com/dice-group/Ontolearn/pull/403
- owlapy: https://github.com/dice-group/owlapy/pull/42

Documentation guides for the classes are also moved to owlapy's documentation which you can find [here](https://dice-group.github.io/owlapy/).




What's Changed
* Triplestore improvements and some tests refactoring by alkidbaci in https://github.com/dice-group/Ontolearn/pull/399
* Ontolearn-webservice API changes & Nominals in DRILL by Demirrr in https://github.com/dice-group/Ontolearn/pull/402
* Refactoring (related to owlapy 1.1.0) by alkidbaci in https://github.com/dice-group/Ontolearn/pull/403
* Default cardinality restriction by Demirrr in https://github.com/dice-group/Ontolearn/pull/406
* Refactoring by Demirrr in https://github.com/dice-group/Ontolearn/pull/407
* Verbosity unified and 10Fold CV over Family repeated by Demirrr in https://github.com/dice-group/Ontolearn/pull/409
* refactoring and cv eval with 60 seconds by Demirrr in https://github.com/dice-group/Ontolearn/pull/410
* tDL refactoring by Demirrr in https://github.com/dice-group/Ontolearn/pull/412
* Neural triplestore by LckyLke in https://github.com/dice-group/Ontolearn/pull/413
* Version fix by Demirrr in https://github.com/dice-group/Ontolearn/pull/416
* Added licensing terms to source files by alkidbaci in https://github.com/dice-group/Ontolearn/pull/417
* Documentation update and some general changes by alkidbaci in https://github.com/dice-group/Ontolearn/pull/418
* Code coverage nces and clip by Jean-KOUAGOU in https://github.com/dice-group/Ontolearn/pull/419
* Luke neural reasoner by Demirrr in https://github.com/dice-group/Ontolearn/pull/420
* Code coverage update by alkidbaci in https://github.com/dice-group/Ontolearn/pull/421
* Added logo to readme by alkidbaci in https://github.com/dice-group/Ontolearn/pull/422

New Contributors
* LckyLke made their first contribution in https://github.com/dice-group/Ontolearn/pull/413

**Full Changelog**: https://github.com/dice-group/Ontolearn/compare/0.7.1...0.7.2

0.7.1

pip install -U ontolearn

Important Updates: `ontolearn-webservice`

`ontolearn-webservice --path_knowledge_base KGs/Mutagenesis/mutagenesis.owl`


`ontolearn-webservice --endpoint_triple_store http://0.0.0.0:9080/sparql`

What's Changed
* Refactoring by Demirrr in https://github.com/dice-group/Ontolearn/pull/354
* Examples Clean Up by alkidbaci in https://github.com/dice-group/Ontolearn/pull/353
* Last commit of refactoring DRILL by Demirrr in https://github.com/dice-group/Ontolearn/pull/356
* Nominals fix by Demirrr in https://github.com/dice-group/Ontolearn/pull/358
* LLM based verbalizer included by Demirrr in https://github.com/dice-group/Ontolearn/pull/360
* Prompt is revised to lead an LLM to generate shorter texts. by Demirrr in https://github.com/dice-group/Ontolearn/pull/361
* TripleStore via rdflib.graph by Demirrr in https://github.com/dice-group/Ontolearn/pull/364
* Tdl triplestore by Demirrr in https://github.com/dice-group/Ontolearn/pull/365
* Tdl triplestore by Demirrr in https://github.com/dice-group/Ontolearn/pull/367
* OWL Class expression learning with tDL, over a DBpedia Endpoint by Demirrr in https://github.com/dice-group/Ontolearn/pull/368
* python dependencies are removed in the github action for docs by Demirrr in https://github.com/dice-group/Ontolearn/pull/369
* Unifying best_hypotheses function and updating the tests by Demirrr in https://github.com/dice-group/Ontolearn/pull/370
* Update README.md by Demirrr in https://github.com/dice-group/Ontolearn/pull/371
* Release refactoring by Demirrr in https://github.com/dice-group/Ontolearn/pull/373
* Drill Enexa Server by Demirrr in https://github.com/dice-group/Ontolearn/pull/375
* Fixing few open issues by Demirrr in https://github.com/dice-group/Ontolearn/pull/378
* Adaptation to owlapy1.0.1 by alkidbaci in https://github.com/dice-group/Ontolearn/pull/379
* Fix:Drill: No embeddings provided implies Quality based reward used by Demirrr in https://github.com/dice-group/Ontolearn/pull/380
* Evaluation setup for NCES and CLIP by alkidbaci in https://github.com/dice-group/Ontolearn/pull/382
* ontolearn-webservice with drill examples over local kg tested by Demirrr in https://github.com/dice-group/Ontolearn/pull/384
* tDL, DRILL, Triplestore Fuseki refactoring by Demirrr in https://github.com/dice-group/Ontolearn/pull/386
* Fix data properties drill tdl by Demirrr in https://github.com/dice-group/Ontolearn/pull/388
* Refactoring by alkidbaci in https://github.com/dice-group/Ontolearn/pull/390
* Tentris drill tdl refactoring by Demirrr in https://github.com/dice-group/Ontolearn/pull/391
* License update by alkidbaci in https://github.com/dice-group/Ontolearn/pull/392
* Making ontolearn-webservice more responsive by Demirrr in https://github.com/dice-group/Ontolearn/pull/393
* webservice fix is done by Demirrr in https://github.com/dice-group/Ontolearn/pull/394
* Readme updated by <details> and <\details> by Demirrr in https://github.com/dice-group/Ontolearn/pull/395


**Full Changelog**: https://github.com/dice-group/Ontolearn/compare/0.7.0...0.7.1

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.