Ontology Base CLass

class Ontology

Base class for all ontologies.

Subclassed by semsim::CHEBI, semsim::CL, semsim::GO, semsim::OPB

Public Static Functions

static Resource resolve(const std::string &root, OntologyTerm t, int n_digits)

Given a root URI (usually from identifiers.org), a numeric term, and the number of digits used in URIs, this function returns the correct full URI for the resource.

Return

The correct full URI for the resource in the ontology.

Parameters
  • root: The root URI of the ontology (using identifiers.org if available).

  • t: The numeric value of the ontology term.

  • n_digits: The number of digits in the URI format of the ontology term.