Skip to main content

Ontolearn is an open-source software library for structured machine learning in Python.Ontolearn includes modules for processing knowledge bases, inductive logic programming and ontology. engineering.

Project description

Ontolearn

Ontolearn is an open-source software library for structured machine learning in Python. Ontolearn includes modules for processing knowledge bases, representation learning, inductive logic programming and ontology engineering.

Current Installation

1) git clone https://github.com/dice-group/OntoPy.git
2) conda create -n temp python=3.6.2 # Or be sure that your have Python => 3.6.
3) conda activate temp
4) python ontolearn/setup.py install
# After you receive this Finished processing dependencies for OntoPy==0.0.1
5) python -c "import ontolearn"

Later Installation

pip install ontolearn

Usage

from ontolearn import KnowledgeBase, Refinement

kb = KnowledgeBase(path='data/family-benchmark_rich_background.owl')
rho = Refinement(kb)
for refs in enumerate(rho.refine(kb.thing)):
    print(refs)
from ontolearn import KnowledgeBase,SampleConceptLearner
kb = KnowledgeBase(path='data/family-benchmark_rich_background.owl')
model = SampleConceptLearner(knowledge_base=kb,iter_bound=100,verbose=False)
p = {'http://www.benchmark.org/family#F10M173', 'http://www.benchmark.org/family#F10M183'}
n = {'http://www.benchmark.org/family#F1F5', 'http://www.benchmark.org/family#F1F7'}
model.predict(pos=p, neg=n)
model.show_best_predictions(top_n=10)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ontolearn-0.0.1.tar.gz (77.9 kB view details)

Uploaded Source

Built Distribution

ontolearn-0.0.1-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

Details for the file ontolearn-0.0.1.tar.gz.

File metadata

  • Download URL: ontolearn-0.0.1.tar.gz
  • Upload date:
  • Size: 77.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10

File hashes

Hashes for ontolearn-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ac9c87bac38672a57ad00dd90f98fcd6829e79aa808567cb6a7d7923266c89ed
MD5 a3c283e5298ee18b1ac2727f604e2baf
BLAKE2b-256 a46862428696daf0edd5a31272eb992d78c921770f917883a8aacfbbfd754450

See more details on using hashes here.

File details

Details for the file ontolearn-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ontolearn-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 22.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10

File hashes

Hashes for ontolearn-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8fb44770b63edc1ccd1d8ec1d47741e7916d64c36f3085c31c0c1a3283953f59
MD5 07fcd657f0fc38a66a999674f60ed19d
BLAKE2b-256 634b69d5eefa0e6d2443eb31c7d83ced2052bdf3538fc8a982f1e39086c6b075

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page