|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A top level interface for the kinds of things that are found in Ontologies. Each OWLObject knows about the OWLDataFactory that was used to create it. OWLObjects also accept visits from OWLObjectVisitor.
The use of the Visitor pattern (see Design
Patterns, Gamma et. al. p.331) allows us to extend the functionality of the data structures without having to alter the underlying implementation.
In addition, we can store metadata about any OWLObject using a
Map. This allows us to store pretty much anything we
want, although any clients of the objects will, of course, need to
know something about the way in which that metadata is structured
in order to make use of it.
| Method Summary | |
void |
accept(OWLObjectVisitor visitor)
Accept a visit from a visitor |
Object |
clone()
|
Set |
getAnnotations()
Returns the annotations on the object. |
Set |
getAnnotations(OWLOntology o)
Returns the annotations on the object in the given ontology. |
OWLObject[] |
getContainedObjects()
Return any objects which are contained within this object. |
Map |
getMetadata()
Get metadata -- this returns a Map which allows
the support of arbitrary metadata. |
OWLConnection |
getOWLConnection()
Returns the Connection of this object |
OWLDataFactory |
getOWLDataFactory()
Returns an OWLDataFactory [REVIEW] the DataFactory should live with the connection object... |
| Method Detail |
public OWLObject[] getContainedObjects()
throws OWLException
OWLObject[], or null.
OWLException
public OWLDataFactory getOWLDataFactory()
throws OWLException
OWLException
public OWLConnection getOWLConnection()
throws OWLException
OWLExceptionpublic Object clone()
public void accept(OWLObjectVisitor visitor)
throws OWLException
OWLException
public Map getMetadata()
throws OWLException
Map which allows
the support of arbitrary metadata.
OWLException
public Set getAnnotations()
throws OWLException
OWLException
public Set getAnnotations(OWLOntology o)
throws OWLException
OWLException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||