org.openrdf.sesame.server.rmi
Interface ServicesInterface

All Superinterfaces:
Remote

Deprecated. This interface was used in the previous version of the Sesame RMI API

public interface ServicesInterface
extends Remote

ServicesInterface - The interface that allows access to Sesame via RMI.

Author:
Damyan Ognyanoff
See Also:
FactoryInterfaceImpl

Method Summary
 int addDataFromUrl(String dataUrl, String baseURL)
          Deprecated. Adds RDF(s) given URL of the RDF(s) document and a base URL.
 String branchState(long stateUID)
          Deprecated. branch the repository at given state for further operations.
 boolean clearRepository()
          Deprecated. Clears the repository.
 void continueCounterIncrement()
          Deprecated. Coninue with the normal increment of the update counter on each modification made in the repository.
 String[][] evalRdqlQuery(String query)
          Deprecated. Evaluates an RDQL query
 String[][] evalRqlQuery(String query)
          Deprecated. Evaluates an RQL Query.
 String extractRDF(boolean ontology, boolean instances, boolean explicit)
          Deprecated. Extracts the ontology or/and instances from the repository.
 Vector getClasses()
          Deprecated. Retrieve a list of the defined classes in the repository
 Vector getDirectSubClassOf(String subClass, String superClass)
          Deprecated. Retrieve a list of the direct subclasses of a class
 Vector getDirectSubPropertyOf(String subProperty, String superProperty)
          Deprecated. Retrieve a list of the direct subproperties of a property
 Vector getDirectType(String anInstance, String aClass)
          Deprecated. Retrieve a list of URIs of an instances about specific class
 Vector getExplicitStatements(String subj, String pred, String obj, boolean objIsLiteral)
          Deprecated. Retrive a list of the explicit statemnets from the repository.
 Map getMetaInfo(String subj, String pred, String obj)
          Deprecated.  
 Vector getProperties()
          Deprecated. Retrieve a list of the defined properties in the repository
 String getRepositoryTitle(String repositoryId)
          Deprecated.  
 Vector getStatements(String subj, String pred, String obj, boolean objIsLiteral)
          Deprecated. Retrive a list of the statemnets from the repository.
 Vector getSubClassOf(String subClass, String superClass)
          Deprecated. Retrieve a list of the subclasses of a class
 Vector getSubPropertyOf(String subProperty, String superProperty)
          Deprecated. Retrieve a list of the subproperties of a property
 Vector getType(String anInstance, String aClass)
          Deprecated. Retrieve a list of URIs of an instances about specific class
 Vector getUpdateIds()
          Deprecated. Retrive list of all Updates of the repository.
 Map getUpdateMetaInfo(String updateId)
          Deprecated.  
 Vector getVersionIds()
          Deprecated.  
 Map getVersionMetaInfo(String versionId)
          Deprecated.  
 Vector getVersions()
          Deprecated. Retrive list of all labeled states of the repository.
 boolean hasExplicitStatement(String subj, String pred, String obj, boolean objIsLiteral)
          Deprecated. Query the repository for particular explicit statement
 boolean hasStatement(String subj, String pred, String obj, boolean objIsLiteral)
          Deprecated. Query the repository for particular statement
 boolean isClass(String resource)
          Deprecated. Check if an URI is a class
 boolean isDirectSubClassOf(String subClass, String superClass)
          Deprecated. Query for direct subsumption of two classes
 boolean isDirectSubPropertyOf(String subProperty, String superProperty)
          Deprecated. Query for direct subsumption of two properties.
 boolean isDirectType(String anInstance, String aClass)
          Deprecated. Check if an URI is a direct instance of a class
 boolean isPausedCounterIncrement()
          Deprecated. Check if the update couter ss paused
 boolean isProperty(String resource)
          Deprecated. Check if an URI is a property
 boolean isSubClassOf(String subClass, String superClass)
          Deprecated. Query for subsumption of two classes
 boolean isSubPropertyOf(String subProperty, String superProperty)
          Deprecated. Query for subsumption of two properties.
 boolean isType(String anInstance, String aClass)
          Deprecated. Check if an URI is an instance of a class
 void labelCurrentState(String label)
          Deprecated. Create a labeled version of the curent repository state.
 void labelState(long stateUID, String label)
          Deprecated. Create a labeled version for a statte of the repository assigning the necessary mata-information about thet operation.
 String[] listRepositories()
          Deprecated. Lists all the repositories.
 boolean login(String userID, String pass)
          Deprecated. Logs in given a user and a password
 void pauseCounterIncrement()
          Deprecated. Stop the increment of the update counter.
 int removeStatements(String subjURI, String predURI, String objURI, boolean bObjectIsLiteral)
          Deprecated. Removes statements.
 void revertToState(long stateUID)
          Deprecated. 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)
          Deprecated. Selects a repository to work with.
 int uploadData(String data, String baseURL)
          Deprecated. Uploads RDF(s) in Sesame.
 void workWithState(long stateUID)
          Deprecated. Sets the repository to given statete for further read operations.
 

Method Detail

uploadData

public int uploadData(String data,
                      String baseURL)
               throws RemoteException
Deprecated. 
Uploads RDF(s) in Sesame.

Parameters:
data - the RDF(s) in a XML form
baseURL - the base url for the imported data
Returns:
the count of successfuly added statements
Throws:
RemoteException

addDataFromUrl

public int addDataFromUrl(String dataUrl,
                          String baseURL)
                   throws RemoteException
Deprecated. 
Adds RDF(s) given URL of the RDF(s) document and a base URL.

Parameters:
dataUrl - the URL of the RDF(s) to be imported
baseURL - the base url for the imported data, if it is not specified then the dataUrl is used as a base.
Returns:
the count of successfuly added statements
Throws:
RemoteException

clearRepository

public boolean clearRepository()
                        throws RemoteException
Deprecated. 
Clears the repository.

Returns:
true if the repository has been cleared, otherwise - false
Throws:
RemoteException

removeStatements

public int removeStatements(String subjURI,
                            String predURI,
                            String objURI,
                            boolean bObjectIsLiteral)
                     throws RemoteException
Deprecated. 
Removes statements. If a parameter xxxURI is null it acts as an asterisk and indicates all possible values at this position in the triple.

Parameters:
subjURI - the URI of the subject
predURI - the URI of the predicate
objURI - the URI of the object
bObjectIsLiteral - indicates whether the object is a Literal.
Returns:
the count of statements removed
Throws:
RemoteException

evalRqlQuery

public String[][] evalRqlQuery(String query)
                        throws RemoteException
Deprecated. 
Evaluates an RQL Query.

Parameters:
query - the query to be evaluated
Returns:
the result set as an array of distinct results matching the query, represented as an array of URIs.
Throws:
RemoteException

evalRdqlQuery

public String[][] evalRdqlQuery(String query)
                         throws RemoteException
Deprecated. 
Evaluates an RDQL query

Parameters:
query - the query to be evaluated
Returns:
the result set as an array of distinct results matching the query, represented as an array of URIs.
Throws:
RemoteException

extractRDF

public String extractRDF(boolean ontology,
                         boolean instances,
                         boolean explicit)
                  throws RemoteException
Deprecated. 
Extracts the ontology or/and instances from the repository.

Parameters:
ontology - whether to include the ontology(i.e. schema) in the result
instances - whether to include the instances in the result.
Returns:
an XML RDF representation of the ontology(schema) and/or instances in the repository
Throws:
RemoteException

listRepositories

public String[] listRepositories()
                          throws RemoteException
Deprecated. 
Lists all the repositories.

Returns:
an array of repository IDs
Throws:
RemoteException

selectRepository

public boolean selectRepository(String repos)
                         throws RemoteException
Deprecated. 
Selects a repository to work with.

Parameters:
repos - repository ID
Returns:
true if the repository was successfully selected
Throws:
RemoteException

login

public boolean login(String userID,
                     String pass)
              throws RemoteException
Deprecated. 
Logs in given a user and a password

Parameters:
userID - the id of the user
pass - the password
Returns:
true if the user was successfully logged in.
Throws:
RemoteException

labelState

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

Parameters:
stateUID - the update counetr 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
Throws:
RemoteException

labelCurrentState

public void labelCurrentState(String label)
                       throws RemoteException
Deprecated. 
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

Throws:
RemoteException

revertToState

public void revertToState(long stateUID)
                   throws RemoteException
Deprecated. 
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
Throws:
RemoteException

workWithState

public void workWithState(long stateUID)
                   throws RemoteException
Deprecated. 
Sets the repository to given statete for further read operations.

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

branchState

public String branchState(long stateUID)
                   throws RemoteException
Deprecated. 
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
Throws:
RemoteException

getVersions

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

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

getUpdateIds

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

Returns:
a list of Updates of the repository
Throws:
RemoteException

pauseCounterIncrement

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

Throws:
RemoteException

continueCounterIncrement

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

Throws:
RemoteException

isPausedCounterIncrement

public boolean isPausedCounterIncrement()
                                 throws RemoteException
Deprecated. 
Check if the update couter ss paused

Returns:
true if the updateCouter is paused, flase otherwise
Throws:
RemoteException

getVersionIds

public Vector getVersionIds()
                     throws RemoteException
Deprecated. 
Throws:
RemoteException

getMetaInfo

public Map getMetaInfo(String subj,
                       String pred,
                       String obj)
                throws RemoteException
Deprecated. 
Throws:
RemoteException

getVersionMetaInfo

public Map getVersionMetaInfo(String versionId)
                       throws RemoteException
Deprecated. 
Throws:
RemoteException

getUpdateMetaInfo

public Map getUpdateMetaInfo(String updateId)
                      throws RemoteException
Deprecated. 
Throws:
RemoteException

getClasses

public Vector getClasses()
                  throws RemoteException
Deprecated. 
Retrieve a list of the defined classes in the repository

Returns:
Vector containig the URI's of the classes
Throws:
RemoteException

getType

public Vector getType(String anInstance,
                      String aClass)
               throws RemoteException
Deprecated. 
Retrieve a list of URIs of an instances about specific class

Parameters:
aClass - Class to explore
Returns:
Vector containig the URIs of the instances
Throws:
RemoteException

getDirectType

public Vector getDirectType(String anInstance,
                            String aClass)
                     throws RemoteException
Deprecated. 
Retrieve a list of URIs of an instances about specific class

Parameters:
aClass - Class to explore
Returns:
Vector containig the URIs of the instances
Throws:
RemoteException

getProperties

public Vector getProperties()
                     throws RemoteException
Deprecated. 
Retrieve a list of the defined properties in the repository

Returns:
Vector containig the URI's of the properties
Throws:
RemoteException

getStatements

public Vector getStatements(String subj,
                            String pred,
                            String obj,
                            boolean objIsLiteral)
                     throws RemoteException
Deprecated. 
Retrive a list of the statemnets from the repository. All the statements that match the provided pattern will be included into teh result

Parameters:
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 valid
obj - URI of the object. Tha same rule for the null value is valid
objIsLiteral - indicating the the URI of the object is actually an Literal not an Resource URI.
Returns:
Vector containig the String[] with URI's of the distinct componets of each statement (subject, predicate and object)
Throws:
RemoteException

getExplicitStatements

public Vector getExplicitStatements(String subj,
                                    String pred,
                                    String obj,
                                    boolean objIsLiteral)
                             throws RemoteException
Deprecated. 
Retrive a list of the explicit statemnets from the repository. All the explicit statements that match the provided pattern will be included into teh result

Parameters:
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 valid
obj - URI of the object. Tha same rule for the null value is valid
objIsLiteral - indicating the the URI of the object is actually an Literal not an Resource URI.
Returns:
Vector containig the String[] with URI's of the distinct componets of each statement (subject, predicate and object)
Throws:
RemoteException

hasStatement

public boolean hasStatement(String subj,
                            String pred,
                            String obj,
                            boolean objIsLiteral)
                     throws RemoteException
Deprecated. 
Query the repository for particular statement

Parameters:
subj - URI of Subject
pred - URI of Predicate
obj - URI of Object
objIsLiteral - flag indicationg the object URI is actuallt a Literal
Throws:
RemoteException

hasExplicitStatement

public boolean hasExplicitStatement(String subj,
                                    String pred,
                                    String obj,
                                    boolean objIsLiteral)
                             throws RemoteException
Deprecated. 
Query the repository for particular explicit statement

Parameters:
subj - URI of Subject
pred - URI of Predicate
obj - URI of Object
objIsLiteral - flag indicationg the object URI is actuallt a Literal
Throws:
RemoteException

getSubClassOf

public Vector getSubClassOf(String subClass,
                            String superClass)
                     throws RemoteException
Deprecated. 
Retrieve a list of the subclasses of a class

Parameters:
subClass - URI of the subclass
superClass - URI of the superclass
Returns:
Vector containing the URIs of the subclasses
Throws:
RemoteException

getDirectSubClassOf

public Vector getDirectSubClassOf(String subClass,
                                  String superClass)
                           throws RemoteException
Deprecated. 
Retrieve a list of the direct subclasses of a class

Parameters:
subClass - URI of the subclass
superClass - URI of the superclass
Returns:
Vector containing the URIs of the subclasses
Throws:
RemoteException

getSubPropertyOf

public Vector getSubPropertyOf(String subProperty,
                               String superProperty)
                        throws RemoteException
Deprecated. 
Retrieve a list of the subproperties of a property

Parameters:
subProperty - URI of the subproperty
superProperty - URI of the superproperty
Returns:
Vector containing the URIs of the subproperties
Throws:
RemoteException

getDirectSubPropertyOf

public Vector getDirectSubPropertyOf(String subProperty,
                                     String superProperty)
                              throws RemoteException
Deprecated. 
Retrieve a list of the direct subproperties of a property

Parameters:
subProperty - URI of the subproperty
superProperty - URI of the superproperty
Returns:
Vector containing the URIs of the subproperties
Throws:
RemoteException

isClass

public boolean isClass(String resource)
                throws RemoteException
Deprecated. 
Check if an URI is a class

Parameters:
resource - URI to check
Returns:
true if the resource is class, otherwise - null
Throws:
RemoteException

isProperty

public boolean isProperty(String resource)
                   throws RemoteException
Deprecated. 
Check if an URI is a property

Parameters:
resource - URI to check
Returns:
true if the resource is a property, otherwise -false.
Throws:
RemoteException

isType

public boolean isType(String anInstance,
                      String aClass)
               throws RemoteException
Deprecated. 
Check if an URI is an instance of a class

Parameters:
anInstance - URI of the instance to check
aClass - URI of the class to check for
Returns:
true if not fail
Throws:
RemoteException

isDirectType

public boolean isDirectType(String anInstance,
                            String aClass)
                     throws RemoteException
Deprecated. 
Check if an URI is a direct instance of a class

Parameters:
anInstance - URI of the instance to check
aClass - URI of the class to check for
Returns:
true if not fail
Throws:
RemoteException

isSubClassOf

public boolean isSubClassOf(String subClass,
                            String superClass)
                     throws RemoteException
Deprecated. 
Query for subsumption of two classes

Parameters:
subClass - URI of the subClass
superClass - URI of the superClass
Returns:
true if subsumes, otherwise - false.
Throws:
RemoteException

isDirectSubClassOf

public boolean isDirectSubClassOf(String subClass,
                                  String superClass)
                           throws RemoteException
Deprecated. 
Query for direct subsumption of two classes

Parameters:
subClass - URI of the subClass
superClass - URI of the superClass
Returns:
true if direct subsumes, otherwise - false.
Throws:
RemoteException

isSubPropertyOf

public boolean isSubPropertyOf(String subProperty,
                               String superProperty)
                        throws RemoteException
Deprecated. 
Query for subsumption of two properties.

Parameters:
subProperty - URI of the subProperty
superProperty - URI of the superProperty
Returns:
true - if a subproperty, otherwise - false.
Throws:
RemoteException

isDirectSubPropertyOf

public boolean isDirectSubPropertyOf(String subProperty,
                                     String superProperty)
                              throws RemoteException
Deprecated. 
Query for direct subsumption of two properties.

Parameters:
subProperty - URI of the subProperty
superProperty - URI of the superProperty
Returns:
true - if a direct subproperty, otherwise - false.
Throws:
RemoteException

getRepositoryTitle

public String getRepositoryTitle(String repositoryId)
                          throws RemoteException
Deprecated. 
Throws:
RemoteException


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