Skip to contents

use owlready2 ontology search facility on term labels

Usage

search_labels(ontopath, regexp, case_sensitive = TRUE)

Arguments

ontopath

character(1) path to owl file

regexp

character(1) simple regular expression

case_sensitive

logical(1) should case be respected in search?

Value

A named list: term labels are elements, tags are names of elements. Will return NULL if nothing is found.

Examples

pa = get_ordo_owl_path()
ol = search_labels(pa, "*Immunog*")
orde = setup_entities2(pa)
onto_plot2(orde, names(ol))