owl | R Documentation |
as.owl
creates an object (or a list of objects) of type "owl".
The object to be coerced must be a character vector.
The character vector must be a valid OWL expression appropriate for the format.
The object returned will have a type appropriate for the format.
is.owl
tests whether an object is of type "owl"
is.manchester_owl
tests whether an object is of type "owlmn"
as.owl(owlstr, format = "manchester", usesLabels = FALSE)
is.owl(x)
is.manchester_owl(x)
owlstr |
a valid OWL expression for the chosen format |
format |
the OWL syntax to which |
usesLabels |
logical. If TRUE the owlstr parameter must contain a label-based class expression to be resolved into OWL Manchester expression composed of IRIs. Labels containing spaces must be single-quoted, e.g. 'basihyal bone'. Exact label matches will be resolved to term identifiers. Default is FALSE. |
x |
an object to check |
Create objects of type "owl" that represent OWL expressions.
as.owl
returns an object of type "owl" and a format specific type such as "owlmn",
or a list of such objects. Note that (at least currently) these are in essence character strings, and are recognizable as such by R.
is.owl
returns TRUE if the object is of type "owl" and FALSE
otherwise.
is.manchester_owl
returns TRUE if the object is of type "owlmn" and FALSE
otherwise.
as.owl("<http://purl.obolibrary.org/obo/VTO_0034991>
or <http://purl.obolibrary.org/obo/VTO_0037519>")
as.owl("Characiformes or Siluriformes", usesLabels = TRUE)
obj <- as.owl("'fin spine' and ('part of' some 'fin spine')", usesLabels = TRUE)
obj
is.character(obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.