Learn R Programming

ontologyIndex (version 2.2)

get_OWL: Read ontology as ontology_index from OWL format file

Description

Read ontology as ontology_index from OWL format file

Usage

get_OWL(file, class_xpath = "owl:Class[@rdf:about]", id = OWL_IDs, name = OWL_labels, parents = OWL_is_a, obsolete = OWL_obsolete, version_xpath = "owl:Ontology", remove_missing = FALSE, ...)

Arguments

file
Name of OWL formatted file.
class_xpath
XPath expression for selecting the nodes corresponding to terms in the ontology.
id
Function for pulling term IDs out of a nodeset object.
name
Function for pulling term labels out of a nodeset object.
parents
Function for selecting term parent IDs from for each term in a nodeset object. Defaults to OWL_is_a.
obsolete
Function for selecting indicator of obsolescence for each term.
version_xpath
XPath expression for selecting node which contains version information.
remove_missing
Logical value determining whether the parents in parent-child relationships in the ontology should be removed from the index. If there are parents which are missing, failure to remove them will lead to an error.
...
Additional (named) arguments, each a function accepting a nodeset object as an argument and each returning an array of values corresponding to the terms of the ontology.

Value

ontology_index object.