|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.content.mediator.KBCaller
org.activemath.content.mediator.kbimpl.ExerciseRepositoryCaller
public class ExerciseRepositoryCaller
Connects the ExerciseRepository to the Mediator. A URL of the Ex.Rep. looks like: mathdox://workplace/klett/Sippel/uebung_01. This class does only work with xml-rpc 2! And the class AuthenticationManager uses a method, which is only in xml-rpx 1 and not in 2.
| Field Summary | |
|---|---|
protected static boolean |
DEBUG
|
| Constructor Summary | |
|---|---|
ExerciseRepositoryCaller(String url,
String user,
String password)
|
|
| Method Summary | |
|---|---|
String |
getContent(String uri)
Returns the whole content of the learning object corresponding to the given uri. |
String |
getMappingURL()
Returns the URL of the mapping file. |
String |
getName()
Each KBCaller has name, which can be returned by this method. |
String |
getOntologyURL()
Returns the URL of the owl-file which specifies the metadata structure of the kb. |
String |
getUniqueURIPrefix()
Returns a unique prefix of the URIs belonging to this repository. |
Set |
queryClass(String item)
We return a set with the single String "exercise" in it because we only have exercises in the exercise repository |
Set |
queryProperty(String item)
Returns a Set of lists, where each list comprises two elements: [attribute,value]. |
Set |
queryRelation(String rel,
String item)
Currently, this method returns the set of all exercises there are in the repository iff the incoming item is a definition of the derivative. |
Set |
queryRelation(String rel,
String item,
String c)
Returns the set of all items x for which holds: x rel item. |
| Methods inherited from class org.activemath.content.mediator.KBCaller |
|---|
getOIOMapping, getOntologyModel, optimizeKBQuery, setOIOMapping, setOntologyModel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final boolean DEBUG
| Constructor Detail |
|---|
public ExerciseRepositoryCaller(String url,
String user,
String password)
throws KBCallerException
url -
KBCallerException| Method Detail |
|---|
public Set queryClass(String item)
queryClass in class KBCallerKBCaller.queryClass(java.lang.String)
public Set queryRelation(String rel,
String item)
queryRelation in class KBCallerKBCaller.queryRelation(java.lang.String, java.lang.String)public Set queryProperty(String item)
KBCaller
queryProperty in class KBCallerpublic String getName()
KBCaller
getName in class KBCallerpublic String getOntologyURL()
KBCaller
getOntologyURL in class KBCallerpublic String getMappingURL()
KBCaller
getMappingURL in class KBCallerpublic String getUniqueURIPrefix()
KBCaller
getUniqueURIPrefix in class KBCallerpublic String getContent(String uri)
KBCaller
getContent in class KBCaller
public Set queryRelation(String rel,
String item,
String c)
KBCaller
queryRelation in class KBCaller
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||