|
||||||||||
| 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.WebServiceCaller
public class WebServiceCaller
This class generate instances as adaptors for each repository with web service interface.
| Constructor Summary | |
|---|---|
WebServiceCaller(String name,
String ontologyURL,
String mappingURL,
String serverURL,
String testContentId)
All the parameters are initialised here. |
|
| Method Summary | |
|---|---|
String |
getContent(String item)
Returns the whole content of the learning object corresponding to the given uri. |
String |
getIdentifier()
Because the serverURL is unique in the internet world, we use it as the Identifier by Management. |
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()
Return the Server Binding URL of the corresponding Web Service with a "/". |
Set |
queryClass(String item)
Returns the set of class labels the given item belongs to. |
Set |
queryProperty(String item)
Returns a Set of lists, where each list comprises two elements: [attribute,value]. |
Set |
queryRelation(String rel,
String item)
Returns the set of all items x for which holds: x rel item. |
Set |
queryRelation(String rel,
String item,
String c)
Returns the set of all items x for which holds: x rel item. |
void |
testQuery()
Test necessary queries to ensure, that the repository can be accessed succesfully. |
| 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 |
| Constructor Detail |
|---|
public WebServiceCaller(String name,
String ontologyURL,
String mappingURL,
String serverURL,
String testContentId)
name - of the repositoryontologyURL - (URL for ontology of the metadata structure of the repository.)mappingURL - (URL for the mapping from the repository's ontology to Ontology Instructional Objects (OIO))serverURL - (URL for binding for querying data on the repository via web service)testContentId - (identifier for a test content in order to validate the repository.)| Method Detail |
|---|
public void testQuery()
throws Exception
Exceptionpublic Set queryClass(String item)
KBCaller
queryClass in class KBCaller
public Set queryRelation(String rel,
String item)
KBCaller
queryRelation in class KBCallerpublic Set queryProperty(String item)
KBCaller
queryProperty in class KBCallerpublic String getContent(String item)
KBCaller
getContent 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 getIdentifier()
public String getUniqueURIPrefix()
getUniqueURIPrefix in class KBCallerKBCaller.getUniqueURIPrefix()
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 | |||||||||