Learn R Programming

ontologyIndex (version 2.2)

OWL_list_attributes: Create lists of attributes per node in OWL file

Description

OWL_is_a, OWL_part_of and OWL_is_a_and_part_of return lists of attributes for ontological terms represented as a xml_nodeset (see xml2 package for more details on xml_nodesets). OWL_is_a returns the superclass/`is a' term IDs for each node in the given nodes, and is the default value of the parents argument in the get_OWL function. OWL_list_attributes_per_node returns a function for extracting lists of attributes of subnodes for each node in a xml_nodeset. It accepts an XPath expression for selecting the subnodes of each node in the returned function's nodes argument, and an attribute name argument for specifying which attribute should be extracted for each one. The returned function should be suitable for use as a parameter to the get_OWL function.

Usage

OWL_list_attributes_per_node(xpath, attribute)
OWL_is_a(nodes)
OWL_part_of(nodes)
OWL_is_a_and_part_of(nodes)

Arguments

xpath
XPath expression.
attribute
Name of attribute to extract for selected nodes.
nodes
xml_nodeset object where nodes correspond to ontological terms.

See Also

OWL_strings_from_nodes