|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.content.mediator.KBCaller
public abstract class KBCaller
This abstract class defines the methods needed for querying a KB via the content mediator. The developer should subclass this class to offer an interface to the KB. Mind that each KBCaller has to be registered at the mediator using the mediator.registerKB() method.
| Constructor Summary | |
|---|---|
KBCaller()
|
|
| Method Summary | |
|---|---|
abstract String |
getContent(String uri)
Returns the whole content of the learning object corresponding to the given uri. |
abstract String |
getMappingURL()
Returns the URL of the mapping file. |
abstract String |
getName()
Each KBCaller has name, which can be returned by this method. |
OIOMapping |
getOIOMapping()
|
com.hp.hpl.jena.ontology.OntModel |
getOntologyModel()
|
abstract String |
getOntologyURL()
Returns the URL of the owl-file which specifies the metadata structure of the kb. |
abstract String |
getUniqueURIPrefix()
Returns a unique prefix of the URIs belonging to this repository. |
protected KBQuery |
optimizeKBQuery(KBQuery query)
Overide this method to offer a DB-specific optimization. |
abstract Set |
queryClass(String item)
Returns the set of class labels the given item belongs to. |
abstract Set |
queryProperty(String item)
Returns a Set of lists, where each list comprises two elements: [attribute,value]. |
abstract Set |
queryRelation(String rel,
String item)
Returns the set of all items x for which holds: x rel item. |
abstract Set |
queryRelation(String rel,
String item,
String c)
Returns the set of all items x for which holds: x rel item. |
void |
setOIOMapping(OIOMapping mapping)
|
void |
setOntologyModel(com.hp.hpl.jena.ontology.OntModel model)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KBCaller()
| Method Detail |
|---|
protected KBQuery optimizeKBQuery(KBQuery query)
public abstract Set queryClass(String item)
item -
public abstract Set queryRelation(String rel,
String item)
item - rel -
public abstract Set queryRelation(String rel,
String item,
String c)
item - rel -
public abstract Set queryProperty(String item)
item -
public abstract String getName()
public abstract String getOntologyURL()
public abstract String getMappingURL()
public abstract String getUniqueURIPrefix()
public abstract String getContent(String uri)
uri -
public final void setOntologyModel(com.hp.hpl.jena.ontology.OntModel model)
public final com.hp.hpl.jena.ontology.OntModel getOntologyModel()
public final void setOIOMapping(OIOMapping mapping)
public final OIOMapping getOIOMapping()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||