|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkaos.ontology.repository.OntologyLoader
public class OntologyLoader
Implements the recursive loader for ontology. Stores information which ontologies were already loaded.
Field Summary | |
---|---|
static int |
MaxLoadingDepth
|
Constructor Summary | |
---|---|
OntologyLoader(OntologyRepository context)
|
Method Summary | |
---|---|
java.util.Set<java.lang.String> |
getListOfLoadedOntologies()
This method returns a set of urls depicting ontologies loaded into the Ontology context. |
java.util.Set<java.lang.String> |
recursiveLoadKB(java.lang.String myURL,
int maxLoadingDepth)
The method recursively loads ontologies starting form ontology depicted by myURL |
void |
setNotificationRef(KAoSDirectoryService _myKAoSDirectoryService)
Sets the reference to the notification class. |
void |
setOntContext(OntologyRepository context)
Sets the reference to the Ontology context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MaxLoadingDepth
Constructor Detail |
---|
public OntologyLoader(OntologyRepository context)
Method Detail |
---|
public void setOntContext(OntologyRepository context)
public void setNotificationRef(KAoSDirectoryService _myKAoSDirectoryService)
public java.util.Set<java.lang.String> getListOfLoadedOntologies()
public java.util.Set<java.lang.String> recursiveLoadKB(java.lang.String myURL, int maxLoadingDepth) throws java.io.IOException, OntologyRepository.ReasoningException
myURL
- The url of the ontology to be loadedmaxLoadingDepth
- Indicates to which level the imported ontologies should be loaded maxLoadingDepth less then 0 (for instance -1) will cause loading of all ontologies
regardless of inclusion depth
OntologyRepository.ReasoningException
- when loading of the ontology failed.
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |