setup_entities: construct owlents instance from an owl file

View source: R/owl_ops.R

setup_entitiesR Documentation

construct owlents instance from an owl file

Description

construct owlents instance from an owl file

Usage

setup_entities(owlfn)

Arguments

owlfn

character(1) path to valid owl ontology

Value

instance of owlents, which is a list with clnames ( a vector of term names in form '[namespace]_[tag]'), allents (a list with python references to owlready2 entities, that can be operated on using owlready2.EntityClass methods), owlfn (filename), iri (IRI), call (record of call producing the entity.)

Examples

pa = get_ordo_owl_path()
orde = setup_entities(pa)
orde
ancestors(orde[1000:1001])
labels(orde[1000:1001])

vjcitn/ontoProc documentation built on March 23, 2024, 7:23 a.m.