| ontology {Onassis} | R Documentation |
ontology<-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.
ontology(object) ontology(object) <- value ## S4 replacement method for signature 'Similarity' ontology(object) <- value ## S4 method for signature 'Similarity' ontology(object)
object |
instance of class |
value |
The path of an ontology file |
The Similarity object where 'ontology' slot refers to the Java graph created
Ontology object
sim <- new('Similarity')
obo <- system.file('extdata', 'sample.cs.obo', package='OnassisJavaLibs')
ontology(sim) <- obo
sim <- new('Similarity')
ontology(sim)