Skip to contents

Instantiate a python owl.xml object from the pyDOID package (powered by reticulate). The file will be loaded into memory when instantiated. Though named "owl" this method will also work for RDF files.

Usage

owl_xml(path)

Arguments

path

The path to an OWL (RDF) XML-formatted file, as a string.

Classes & Methods

The owl.xml class thinly wraps a small set of python rdflib methods to enable SPARQL 1.1 queries, with the following methods:

  • owl_xml$query(query, reload): Execute a SPARQL 1.1 query. query may be a string or the path to a .sparql/.rq file. Use reload = TRUE to force reload a file into memory; useful when iterating through releases/tags with DOrepo$tag_iterate().

  • owl_xml$load(): Manually load a file into memory. Generally, this should not be necessary.

See also

Other pyDOID classes: DOrepo()