ontology {Onassis} | R Documentation

## `ontology<-`

### Description

This method creates a semantic graph to compute semantic similarity between concepts. It takes as input an OBO ontology in RDF, OWL or OBO format.

This method shows the ontology.

### Usage

    ontology(object)

    ontology(object) <- value

    ## S4 replacement method for signature 'Similarity'
    ontology(object) <- value

    ## S4 method for signature 'Similarity'
    ontology(object)

### Arguments

`object` | instance of class `Similarity-class`
`value` | The path of an ontology file

### Value

The Similarity object where 'ontology' slot refers to the Java graph created

Ontology object

### Examples

    sim <- new('Similarity')
    obo <- system.file('extdata', 'sample.cs.obo', package='OnassisJavaLibs')
    ontology(sim) <- obo
    sim <- new('Similarity')
    ontology(sim)

[Package Onassis version 1.6.1 Index]