com.ontotext.gate.ontology
Class DAMLOntology
java.lang.Object
gate.util.AbstractFeatureBearer
gate.creole.AbstractResource
gate.creole.AbstractLanguageResource
com.ontotext.gate.ontology.TaxonomyImpl
com.ontotext.gate.ontology.DAMLOntology
- All Implemented Interfaces:
- FeatureBearer, LanguageResource, NameBearer, Resource, Serializable, Taxonomy
- public class DAMLOntology
- extends TaxonomyImpl
Provides load and store of ontologies from/to DAML+OIL repository
- Author:
- borislav popov
- See Also:
- Serialized Form
Field Summary |
private static boolean |
DEBUG
DEBUG FLAG |
Method Summary |
void |
load()
loads from rdf/parse rdf. it helps if setURL is called apriori. |
protected com.hp.hpl.jena.daml.DAMLModel |
loadAndGetModel()
Introduced a protected method that retuns the model, so it can be
used in a subclass to get more data before discarding it |
void |
store()
Stores the ontology to <@link getURL()/> in daml |
protected com.hp.hpl.jena.daml.DAMLModel |
storeAndGetModel()
|
protected void |
writeModel(com.hp.hpl.jena.daml.DAMLModel model)
|
Methods inherited from class com.ontotext.gate.ontology.TaxonomyImpl |
addClass, addObjectModificationListener, containsClassByName, createClass, equals, fireObjectModificationEvent, getClassByName, getClasses, getClasses, getComment, getId, getLabel, getOntology, getSourceURI, getTaxonomicDistance, getTopClasses, getURL, getVersion, init, isDirectSubClassOf, isModified, isSubClassOf, reinfer, removeClass, setComment, setId, setLabel, setModified, setSourceURI, setURL, setVersion, toString |
Methods inherited from class gate.creole.AbstractResource |
checkParameterValues, getBeanInfo, getName, getParameterValue, getParameterValue, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners |
DEBUG
private static final boolean DEBUG
- DEBUG FLAG
- See Also:
- Constant Field Values
DAMLOntology
public DAMLOntology()
load
public void load()
throws ResourceInstantiationException
- loads from rdf/parse rdf. it helps if setURL is called apriori.
- Specified by:
load
in interface Taxonomy
- Overrides:
load
in class TaxonomyImpl
- Throws:
ResourceInstantiationException
store
public void store()
throws ResourceInstantiationException
- Stores the ontology to <@link getURL()/> in daml
- Specified by:
store
in interface Taxonomy
- Overrides:
store
in class TaxonomyImpl
- Throws:
ResourceInstantiationException
loadAndGetModel
protected com.hp.hpl.jena.daml.DAMLModel loadAndGetModel()
throws ResourceInstantiationException
- Introduced a protected method that retuns the model, so it can be
used in a subclass to get more data before discarding it
- Throws:
ResourceInstantiationException
writeModel
protected void writeModel(com.hp.hpl.jena.daml.DAMLModel model)
throws ResourceInstantiationException
- Throws:
ResourceInstantiationException
storeAndGetModel
protected com.hp.hpl.jena.daml.DAMLModel storeAndGetModel()
throws ResourceInstantiationException
- Throws:
ResourceInstantiationException