|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ComparableOntology
An Ontology that can be compared to another.
ComparableTerm,
ComparableTriple| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.biojava.ontology.Ontology |
|---|
Ontology.Impl |
| Field Summary | |
|---|---|
static ChangeType |
DESCRIPTION
|
static ChangeType |
TERM
|
static ChangeType |
TRIPLE
|
| Method Summary | |
|---|---|
String |
getDescription()
Return a human-readable description of this ontology. |
ComparableTerm |
getOrCreateTerm(String name)
Looks for a term with the given name and returns it. |
ComparableTriple |
getOrCreateTriple(Term subject,
Term object,
Term predicate)
Looks for a triple with the given subject object and predicate and returns it. |
ComparableTerm |
getOrImportTerm(Term term)
Looks for a term with the same name as the given term and returns it. |
Set |
getTermSet()
Returns the set of terms in this ontology. |
Set |
getTripleSet()
Returns the set of triples in this ontology. |
void |
setDescription(String description)
Sets a human-readable description of this ontology. |
void |
setTermSet(Set terms)
Clears out all the terms and populates the ontology with the contents of the set passed. |
void |
setTripleSet(Set triples)
Clears out all the triples and populates the ontology with the contents of the set passed. |
| Methods inherited from interface org.biojava.ontology.Ontology |
|---|
containsTerm, containsTriple, createTerm, createTerm, createTriple, createVariable, deleteTerm, getName, getOps, getTerm, getTerms, getTriples, importTerm |
| Methods inherited from interface org.biojava.utils.Changeable |
|---|
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
static final ChangeType TERM
static final ChangeType TRIPLE
static final ChangeType DESCRIPTION
| Method Detail |
|---|
void setDescription(String description)
throws ChangeVetoException
description - the description.
ChangeVetoException - in case of problems.String getDescription()
getDescription in interface Ontology
void setTermSet(Set terms)
throws ChangeVetoException
terms - a set of Term objects this ontology should have.
ChangeVetoException - if any of them are unacceptable.ComparableTermSet getTermSet()
ComparableTerm
void setTripleSet(Set triples)
throws ChangeVetoException
triples - the set of ComparableTriple objects this ontology should have.
ChangeVetoException - if any of them are unacceptable.ComparableTripleSet getTripleSet()
ComparableTerm getOrCreateTerm(String name)
name - the name of the term to look for.
ComparableTriple getOrCreateTriple(Term subject,
Term object,
Term predicate)
subject - the subject of the triple eg appleobject - the object of the triple eg fruitpredicate - the relationship of the triple eg is_a
ComparableTerm getOrImportTerm(Term term)
term - the term to look for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||