ontology-class           package:ontoTools           R Documentation

_C_l_a_s_s "_o_n_t_o_l_o_g_y" _w_r_a_p_s _a _r_o_o_t_e_d _D_A_G _w_i_t_h _s_o_m_e
_o_n_t_o_l_o_g_y _m_e_t_a_d_a_t_a

_D_e_s_c_r_i_p_t_i_o_n:

     instances of class ontology are used to represent things like Gene
     Ontology

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Objects can be created by calls of the form 'new("ontology",
     ...)'. This simply possesses information on name and version of
     ontology.

_S_l_o_t_s:

     '_n_a_m_e': Object of class '"character"' name of ontology 

     '_v_e_r_s_i_o_n': Object of class '"character"' version tag 

     '_r_D_A_G': Object of class '"rootedDAG"' the rooted DAG representing
          the terminlogy hierarchy 

_M_e_t_h_o_d_s:

     _a_c_c_e_s_s_M_a_t 'signature(object = "ontology")': returns square matrix
          with 1 in element r,c if term corresponding to r can be
          reached from term corresponding to c

     _n_a_m_e 'signature(x = "ontology")': access name 

     _O_V_e_r_s_i_o_n 'signature(x = "ontology")':  access version

     _r_D_A_G 'signature(x = "ontology")': access the rooted DAG 

     _s_h_o_w 'signature(object = "ontology")': concise report 

_N_o_t_e:

     This class was written to deal with ontologies that are
     representable as rooted DAGs.  It is not clear that this is a good
     use of the term 'ontology', which has broader implications. 
     However this does work for Gene Ontology.

_A_u_t_h_o_r(_s):

     ~~who you are~~

_E_x_a_m_p_l_e_s:

     data(litOnto)
     print(litOnto)
     g1 <- new("rootedDAG", DAG=litOnto, root="A")
     o1 <- new("ontology", name="demo", version="0.1",
             rDAG=g1)
     # can also use
     o1b <- makeOntology( name="demo", version="0.1", 
        graph=litOnto, root="A")
     show(o1)
     print(accessMat(o1))
     print(OVersion(o1))

