org.openrdf.sesame.server.soap
Class SoapServices

java.lang.Object
  extended byorg.openrdf.sesame.server.soap.SoapServices

public class SoapServices
extends Object


Constructor Summary
SoapServices()
           
 
Method Summary
 int addDataFromUrl(String dataUrl, String baseURL)
           
 String branchState(String stateUID)
          branch the repository at given state for further operations.
 boolean clearRepository()
           
 void continueCounterIncrement()
          Coninue with the normal increment of the update counter on each modification made in the repository.
 Vector evalRdqlQuery(String query)
           
 Vector evalRqlQuery(String query)
           
 String extractRDF(boolean ontology, boolean instances, boolean explicit)
           
 Vector getClasses()
           
 Vector getDirectSubClassOf(String subClass, String superClass)
           
 Vector getDirectSubPropertyOf(String subProperty, String superProperty)
           
 Vector getDirectType(String anInstance, String aClass)
           
 Vector getExplicitStatements(String subj, String pred, String obj, boolean objIsLiteral)
           
 Map getMetaInfo(String subj, String pred, String obj)
           
 Vector getProperties()
           
 String getRepositoryTitle(String repositoryId)
           
 Vector getStatements(String subj, String pred, String obj, boolean objIsLiteral)
          RdfSchemaSource dellegation
 Vector getSubClassOf(String subClass, String superClass)
           
 Vector getSubPropertyOf(String subProperty, String superProperty)
           
 Vector getType(String anInstance, String aClass)
           
 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 hasExplicitStatement(String subj, String pred, String obj, boolean objIsLiteral)
           
 boolean hasStatement(String subj, String pred, String obj, boolean objIsLiteral)
           
 boolean isClass(String resource)
           
 boolean isDirectSubClassOf(String subClass, String superClass)
           
 boolean isDirectSubPropertyOf(String subProperty, String superProperty)
           
 boolean isDirectType(String anInstance, String aClass)
           
 boolean isPausedCounterIncrement()
          Check if the update couter ss paused
 boolean isProperty(String resource)
           
 boolean isSubClassOf(String subClass, String superClass)
           
 boolean isSubPropertyOf(String subProperty, String superProperty)
           
 boolean isType(String anInstance, String aClass)
           
 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()
           
 boolean login(String userID, String pass)
           
 void pauseCounterIncrement()
          Stop the increment of the update counter.
 int removeStatements(String subjURI, String predURI, String objURI, boolean bObjectIsLiteral)
           
 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)
           
 int uploadData(String data, String baseURL)
           
 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

SoapServices

public SoapServices()
Method Detail

uploadData

public int uploadData(String data,
                      String baseURL)

addDataFromUrl

public int addDataFromUrl(String dataUrl,
                          String baseURL)

clearRepository

public boolean clearRepository()

removeStatements

public int removeStatements(String subjURI,
                            String predURI,
                            String objURI,
                            boolean bObjectIsLiteral)

evalRqlQuery

public Vector evalRqlQuery(String query)
                    throws Exception
Throws:
Exception

evalRdqlQuery

public Vector evalRdqlQuery(String query)
                     throws Exception
Throws:
Exception

extractRDF

public String extractRDF(boolean ontology,
                         boolean instances,
                         boolean explicit)

listRepositories

public String[] listRepositories()

selectRepository

public boolean selectRepository(String repos)

getRepositoryTitle

public String getRepositoryTitle(String repositoryId)

login

public boolean login(String userID,
                     String pass)

getStatements

public Vector getStatements(String subj,
                            String pred,
                            String obj,
                            boolean objIsLiteral)
RdfSchemaSource dellegation


getExplicitStatements

public Vector getExplicitStatements(String subj,
                                    String pred,
                                    String obj,
                                    boolean objIsLiteral)

hasStatement

public boolean hasStatement(String subj,
                            String pred,
                            String obj,
                            boolean objIsLiteral)

hasExplicitStatement

public boolean hasExplicitStatement(String subj,
                                    String pred,
                                    String obj,
                                    boolean objIsLiteral)

getClasses

public Vector getClasses()

isClass

public boolean isClass(String resource)

getProperties

public Vector getProperties()

isProperty

public boolean isProperty(String resource)

getSubClassOf

public Vector getSubClassOf(String subClass,
                            String superClass)

getDirectSubClassOf

public Vector getDirectSubClassOf(String subClass,
                                  String superClass)

isSubClassOf

public boolean isSubClassOf(String subClass,
                            String superClass)

isDirectSubClassOf

public boolean isDirectSubClassOf(String subClass,
                                  String superClass)

getSubPropertyOf

public Vector getSubPropertyOf(String subProperty,
                               String superProperty)

getDirectSubPropertyOf

public Vector getDirectSubPropertyOf(String subProperty,
                                     String superProperty)

isSubPropertyOf

public boolean isSubPropertyOf(String subProperty,
                               String superProperty)

isDirectSubPropertyOf

public boolean isDirectSubPropertyOf(String subProperty,
                                     String superProperty)

getType

public Vector getType(String anInstance,
                      String aClass)

getDirectType

public Vector getDirectType(String anInstance,
                            String aClass)

isType

public boolean isType(String anInstance,
                      String aClass)

isDirectType

public boolean isDirectType(String anInstance,
                            String aClass)

labelState

public void labelState(String stateUID,
                       String label)
Create a labeled version for a statte of the repository assigning the necessary mata-information about thet operation.

Parameters:
stateUID - the update counter of a particular repository state
label - 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 versions

labelCurrentState

public void labelCurrentState(String label)
Create a labeled version of the curent repository state. NOTE: This method can throw an exception if the request is made on behalf of an user with insufficent rights to create versions


revertToState

public 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.

Parameters:
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 repository

workWithState

public void workWithState(String stateUID)
Sets the repository to given state for further read operations.

Parameters:
stateUID - the update counter of a particular repository state

branchState

public String branchState(String stateUID)
branch the repository at given state for further operations.

Parameters:
stateUID - the update counter of a particular repository state
Returns:
the id of the repository

getVersions

public Vector getVersions()
Retrive list of all labeled states of the repository.

Returns:
a list of Versin interfaces for each labeled state of the repository

getUpdateIds

public Vector getUpdateIds()
Retrive list of all Updates of the repository.

Returns:
a list of Updates of the repository

pauseCounterIncrement

public void pauseCounterIncrement()
Stop the increment of the update counter. Usefull for a kind of batch updates or adding a distinct daml coinstructs at once.


continueCounterIncrement

public void continueCounterIncrement()
Coninue with the normal increment of the update counter on each modification made in the repository.


isPausedCounterIncrement

public boolean isPausedCounterIncrement()
Check if the update couter ss paused

Returns:
true if the updateCouter is paused, flase otherwise

getVersionIds

public Vector getVersionIds()

getMetaInfo

public Map getMetaInfo(String subj,
                       String pred,
                       String obj)

getVersionMetaInfo

public Map getVersionMetaInfo(String versionId)

getUpdateMetaInfo

public Map getUpdateMetaInfo(String updateId)


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.