ontolearn.scripts.run

dicee –path_single_kg KGs/Family/family-benchmark_rich_background.owl –path_to_store_single_run embeddings –backend rdflib –save_embeddings_as_csv –model Keci –num_epoch 10

# Start Webservice ontolearn-webservice –path_knowledge_base KGs/Family/family-benchmark_rich_background.owl

# Send HTTP Get Request to train DRILL and evaluate it on provided pos and neg curl -X ‘GET’ ‘http://0.0.0.0:8000/cel’ -H ‘accept: application/json’ -H ‘Content-Type: application/json’ -d ‘{“pos”:[”http://www.benchmark.org/family#F2F14”], “neg”:[”http://www.benchmark.org/family#F10F200”], “model”:”Drill”,”path_embeddings”:”embeddings/Keci_entity_embeddings.csv”}’

# Send HTTP Get Request to load a pretrained DRILL and evaluate it on provided pos and neg curl -X ‘GET’ ‘http://0.0.0.0:8000/cel’ -H ‘accept: application/json’ -H ‘Content-Type: application/json’ -d ‘{“pos”:[”http://www.benchmark.org/family#F2F14”], “neg”:[”http://www.benchmark.org/family#F10F200”], “model”:”Drill”,”pretrained”:”pretrained”,”path_embeddings”:”embeddings/Keci_entity_embeddings.csv”}’


Module Contents

Functions

get_default_arguments()

root()

get_drill(→ ontolearn.learners.Drill)

Initialize DRILL

get_tdl(data)

get_learner(→ Union[ontolearn.learners.Drill, ...)

cel(→ Dict)

main()

Attributes

app

args

kb

ontolearn.scripts.run.app
ontolearn.scripts.run.args
ontolearn.scripts.run.kb
ontolearn.scripts.run.get_default_arguments()[source]
async ontolearn.scripts.run.root()[source]
ontolearn.scripts.run.get_drill(data: dict) Drill[source]

Initialize DRILL

ontolearn.scripts.run.get_tdl(data)[source]
ontolearn.scripts.run.get_learner(data: dict) Drill | TDL[source]
async ontolearn.scripts.run.cel(data: dict) Dict[source]
ontolearn.scripts.run.main()[source]