search_labels: use owlready2 ontology search facility on term labels

search_labelsR Documentation

use owlready2 ontology search facility on term labels

Description

use owlready2 ontology search facility on term labels

Usage

search_labels(oents, regexp, case_sensitive = TRUE)

Arguments

oents

owlents instance

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()
orde = setup_entities(pa)
ol = search_labels(orde, "*Immunog*")
plot(orde, names(ol))

vjcitn/ontoProc documentation built on Oct. 12, 2024, 4:35 p.m.