|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.server.soap.SoapClient
| Constructor Summary | |
SoapClient(String ServerUrl,
String ServiceName)
The only constructor of the SOAP client. |
|
| Method Summary | |
int |
addDataFromUrl(String dataUrl,
String baseURL)
Upload a RDF(S) data located on the NET using it's URI into the currently selected repository. |
String |
branchState(String stateUID)
branch the repository at given state for further operations. |
boolean |
clearRepository()
Clear the contents of the current repository. |
void |
continueCounterIncrement()
Coninue with the normal increment of the update counter on each modification made in the repository. |
Vector |
evalRdqlQuery(String query)
Evaluate an RDQL query over the data held in the current repository |
Vector |
evalRqlQuery(String query)
Evaluate an RQL query over the data held in the current repository |
String |
extractRDF(boolean ontology,
boolean instances,
boolean explicit)
Etract the contents of the current repository as RDF. |
Vector |
getClasses()
Retrive a list of the defined classes in the repository |
Vector |
getClassesOf(String anInstance,
boolean mostSpecific)
Retrive a list of classes to which an Instance belongs |
Vector |
getInstancesOf(String aClass,
boolean proper)
Retrive a list of URI's of an instances about specific class |
Map |
getMetaInfo(String subj,
String pred,
String obj)
|
Vector |
getProperties()
Retrive a list of the defined properties in the repository |
String |
getRepositoryTitle(String repositoryId)
|
Vector |
getStatements(String subj,
String pred,
String obj,
boolean explicitOnly,
boolean objIsLiteral)
Retrive a list of the statemnets from the repository. |
Vector |
getSubClassesOf(String resource,
boolean direct)
Retrieve a list of the subclasses of a class |
Vector |
getSubPropertiesOf(String resource,
boolean direct)
Retrieve a list of the subproperties of a property |
Vector |
getSuperClassesOf(String resource,
boolean direct)
Retrieve a list of the superclasses of a class |
Vector |
getSuperPropertiesOf(String resource,
boolean direct)
Retrieve a list of the superproperties of a property |
Vector |
getUpdateIds()
Retrive list of all Updates of the repository. |
Map |
getUpdateMetaInfo(String updateId)
|
Vector |
getVersionIds()
|
Map |
getVersionMetaInfo(String versionId)
|
Vector |
getVersions()
Retrive list of all labeled states of the repository. |
boolean |
hasStatement(String subj,
String pred,
String obj,
boolean explicitOnly,
boolean objIsLiteral)
Query the repository for particular statement |
boolean |
isClass(String resource)
Check that a URI is a class |
boolean |
isInstanceOf(String anInstance,
String aClass,
boolean proper)
Check that a URI is an instance of a class |
boolean |
isPausedCounterIncrement()
Check if the update couter ss paused |
boolean |
isProperty(String resource)
Check that a URI is a property |
boolean |
isSubClassOf(String subClass,
String superClass,
boolean direct)
Query for subsumtion of two classes |
boolean |
isSubPropertyOf(String subProperty,
String superProperty,
boolean direct)
Query for subsumtion of two properties |
void |
labelCurrentState(String label)
Create a labeled version of the curent repository state. |
void |
labelState(String stateUID,
String label)
Create a labeled version for a statte of the repository assigning the necessary mata-information about thet operation. |
String[] |
listRepositories()
Retrieve a list of availibe repositories on the server |
boolean |
login(String userID,
String pass)
Login to server. |
void |
pauseCounterIncrement()
Stop the increment of the update counter. |
int |
removeStatements(String subjURI,
String predURI,
String objURI,
boolean bObjectIsLiteral)
remove statements from the repository |
void |
revertToState(String stateUID)
Restore the repository to previous state removing all statements added after the value of the update counter and revive all remover ones. |
boolean |
selectRepository(String repos)
Select a repository to work with |
int |
uploadData(String data,
String baseURL)
Upload RDF(S) data to current repository |
void |
workWithState(String stateUID)
Sets the repository to given state for further read operations. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SoapClient(String ServerUrl,
String ServiceName)
throws MalformedURLException
ServerUrl - the URL of the SOAP rpcrouter serverServiceName - the ID of the SOAP service to use| Method Detail |
public String[] listRepositories()
public String getRepositoryTitle(String repositoryId)
public boolean selectRepository(String repos)
repos - repository ID.
public boolean login(String userID,
String pass)
userID - user IDpass - user password
public int addDataFromUrl(String dataUrl,
String baseURL)
dataUrl - the URL to the RDF(S)data.baseURL - URI that should be used as namespace for those resources, found in the
data, that do not have an explicitly defined one. This parameter can be
eiter null or empty string in ehich case the URL to the date will be
used as base URL.public boolean clearRepository()
public Vector evalRdqlQuery(String query)
query - the text of the query to evaluate
public Vector evalRqlQuery(String query)
query - the text of the query to evaluate
public String extractRDF(boolean ontology,
boolean instances,
boolean explicit)
ontology - flag indicating to include the ontoloy in the resultinstances - flag indicating to include instances in the resultexplicit - flag indicating to include only explicit statements in the result
public Vector getClasses()
public Vector getClassesOf(String anInstance,
boolean mostSpecific)
anInstance - Instance to exploremostSpecific - flag indicating that only the most specific classes to be included in
the result
public Vector getInstancesOf(String aClass,
boolean proper)
aClass - Class to exploreproper - flag indicating thet only the proper instances to be included in
the result
public Vector getProperties()
public Vector getStatements(String subj,
String pred,
String obj,
boolean explicitOnly,
boolean objIsLiteral)
subj - URI of the subject, The null means that the subject does not mather
and the statement will be included regarding on the match of its other
componets(predicate, object, or is it an explicit one)pred - URI of the predicate. Tha same rule for the null value is validobj - URI of the object. Tha same rule for the null value is validexplicitOnly - flag indicating that only the explicit statements to be included in the resultobjIsLiteral - indicating the the URI of the object is actually an Literal not an
Resource URI.
public boolean hasStatement(String subj,
String pred,
String obj,
boolean explicitOnly,
boolean objIsLiteral)
subj - URI of Subjectpred - URI of Predicateobj - URI of ObjectexplicitOnly - flag indicating the the statement is explicitobjIsLiteral - flag indicationg thet object's URI is actuallt a Literal
public Vector getSubClassesOf(String resource,
boolean direct)
resource - URI of the classdirect - flag indicating to include only its direct subclasses
public Vector getSubPropertiesOf(String resource,
boolean direct)
resource - URI of the propertydirect - flag indicating to include only its direct properties
public Vector getSuperClassesOf(String resource,
boolean direct)
resource - URI of the classdirect - flag indicating to include only its direct superclasses
public Vector getSuperPropertiesOf(String resource,
boolean direct)
resource - URI of the propertydirect - flag indicating to include only its direct properties
public boolean isClass(String resource)
resource - URI to check
public boolean isProperty(String resource)
resource - URI to check
public boolean isInstanceOf(String anInstance,
String aClass,
boolean proper)
anInstance - URI of the instance to checkaClass - URI of the class to check forproper - flag indication that only the proper instances of the class will
match the criteria
public boolean isSubClassOf(String subClass,
String superClass,
boolean direct)
subClass - URI of the subClasssuperClass - URI of the superClassdirect - flag indicating to check for direct subsumption
public boolean isSubPropertyOf(String subProperty,
String superProperty,
boolean direct)
subProperty - URI of the subPropertysuperProperty - URI of the superPropertydirect - flag indicating to check for direct subsumption
public int removeStatements(String subjURI,
String predURI,
String objURI,
boolean bObjectIsLiteral)
subjURI - URI of the subjectpredURI - URI of the predicateobjURI - URI of the objectbObjectIsLiteral - flag indicating that the URI of the object is Literal
public int uploadData(String data,
String baseURL)
data - valid RDF content to uploadbaseURL - the namespace of the uploaded content
public void labelState(String stateUID,
String label)
stateUID - the update counetr of a particular repository statelabel - the label to be set for this state
NOTE: This method can throw a security exception if the request is made on
behalf of the user with insufficent rights to create versionspublic void labelCurrentState(String label)
public void revertToState(String stateUID)
stateUID - the update counter of a particular repository state
NOTE: This method can throw an exception if the request is made on
behalf of an user with insufficent rights to revert the repositorypublic void workWithState(String stateUID)
stateUID - the update counter of a particular repository statepublic String branchState(String stateUID)
stateUID - the update counter of a particular repository state
public Vector getVersions()
public Vector getUpdateIds()
public void pauseCounterIncrement()
public void continueCounterIncrement()
public boolean isPausedCounterIncrement()
public Vector getVersionIds()
public Map getMetaInfo(String subj,
String pred,
String obj)
public Map getVersionMetaInfo(String versionId)
public Map getUpdateMetaInfo(String updateId)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||