construct owlents instance from an owl file

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
#> owlents instance with 15239 classes.
ancestors(orde[1000:1001])
#> $Orphanet_79083
#> {ORDO.Orphanet_C001, ORDO.Orphanet_79083, ORDO.Orphanet_557493, owl.Thing, ORDO.Orphanet_377788}
#> 
#> $Orphanet_146
#> {ORDO.Orphanet_146, ORDO.Orphanet_C001, ORDO.Orphanet_557493, ORDO.Orphanet_377788, owl.Thing}
#> 
labels(orde[1000:1001])
#>                                 Orphanet_79083 
#> "PPARG-related familial partial lipodystrophy" 
#>                                   Orphanet_146 
#>             "Differentiated thyroid carcinoma"