|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectes.upv.dsic.gti_ia.organization.THOMASProxy
es.upv.dsic.gti_ia.organization.SFProxy
public class SFProxy
This class provides access to services that implements the SF agent.
| Constructor Summary | |
|---|---|
SFProxy(BaseAgent agent)
This class gives us the support to accede to the services of the SF, Checked that the data contained in the file configuration/Settings.xml, the URL ServiceDescriptionLocation is not empty and is the correct path. |
|
SFProxy(BaseAgent agent,
String SFServiceDescriptionLocation)
This class gives us the support to accede to the services of the SF |
|
| Method Summary | |
|---|---|
String |
deregisterService(String serviceProfile)
The Deregister Service deregisters the specified service deleting all the related data from the SF. |
String |
getService(String serviceProfile)
Returns an OWL-S specification with the all data of the specified service profile as parameter |
ArrayList<String> |
registerService(String serviceURL)
The Register Service tries to register the service that is specified as parameter. |
String |
removeProvider(String serviceProfile,
String providerID)
Removes a provider: agent, organization or web service (grounding); from a registered service profile |
ArrayList<ArrayList<String>> |
searchService(ArrayList<String> inputs,
ArrayList<String> outputs,
ArrayList<String> keywords)
Searches the most similar services profiles to the given data type inputs, data type outputs and keywords in the description. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SFProxy(BaseAgent agent,
String SFServiceDescriptionLocation)
agent - is a Magentix2 Agent, this agent implemented the communication
protocolSFServiceDescriptionLocation - The URL where the owl-s documents are locatedpublic SFProxy(BaseAgent agent)
agent - is a Magentix2 Agent, this agent implemented the communication
protocol| Method Detail |
|---|
public ArrayList<String> registerService(String serviceURL)
throws THOMASException
serviceURL - the original URL of the OWL-S specification of the service
THOMASException - If there is any error result
public String deregisterService(String serviceProfile)
throws THOMASException
serviceProfile - the URI representing the service profile to deregister
THOMASException - If there is any error result
public String removeProvider(String serviceProfile,
String providerID)
throws THOMASException
serviceProfile - URI of the service profile to remove the providerproviderID - of the provider to remove (provider name or grounding ID)
THOMASException - If there is any error result
public String getService(String serviceProfile)
throws THOMASException
serviceProfile - URI of the service profile to get its OWL-S specification
THOMASException - If there is any error result
public ArrayList<ArrayList<String>> searchService(ArrayList<String> inputs,
ArrayList<String> outputs,
ArrayList<String> keywords)
throws THOMASException
inputs - data type inputs to search a service with these inputs.
Example:
\"http://127.0.0.1/ontology/books.owl#Novel\"^^xsd:anyURIoutputs - data type outputs to search a service with these outputs.
Example:
\"http://127.0.0.1/ontology/books.owl#Novel\"^^xsd:anyURIkeywords - list to search in the text description of the service
THOMASException - If there is any error result
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||