ontology: 'ontology<-'

Description Usage Arguments Value Examples

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

1
2
3
4
5
6
7
8
9
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

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

Onassis documentation built on Nov. 8, 2020, 8:18 p.m.