Franz Inc, AllegroGraph

com.franz.agraph.repository
Class AGRepositoryConnection

java.lang.Object
  extended by org.openrdf.repository.base.RepositoryConnectionBase
      extended by com.franz.agraph.repository.AGRepositoryConnection
All Implemented Interfaces:
Closeable, RepositoryConnection

public class AGRepositoryConnection
extends RepositoryConnectionBase
implements RepositoryConnection, Closeable

Implements the Sesame RepositoryConnection interface for AllegroGraph.


Constructor Summary
AGRepositoryConnection(AGAbstractRepository repository, com.franz.agraph.http.AGHttpRepoClient client)
           
 
Method Summary
 void add(Iterable<? extends Statement> statements, Resource... contexts)
           
<E extends Exception>
void
add(info.aduna.iteration.Iteration<? extends Statement,E> statementIter, Resource... contexts)
           
 void addIndex(String type)
          Adds the given index to the list of actively managed indices.
 void addRules(InputStream rulestream)
          Adds Prolog rules to be used on this connection.
 void addRules(String rules)
          Adds Prolog rules to be used on this connection.
 Object callStoredProc(String functionName, String moduleName, Object... args)
          Deprecated. The stored proc feature and API are experimental, and subject to change in a future release.
 void clearMappings()
          Deletes all predicate and datatype mappings for this connection.
 void clearNamespaces()
           
 void close()
           
 void commit()
           
 void createFreetextIndex(String name, AGFreetextIndexConfig config)
          Creates a freetext index with the given name and configuration.
 void createFreetextIndex(String name, URI[] predicates)
          Deprecated.  
<E> RepositoryResult<E>
createRepositoryResult(Iterable<? extends E> elements)
          Creates a RepositoryResult for the supplied element set.
 void deleteDatatypeMapping(URI datatype)
          Deletes any datatype mapping associated with the given datatype.
 void deleteFreetextIndex(String name)
          Deletes the freetext index of the specified name.
 void deletePredicateMapping(URI predicate)
          Deletes any predicate mapping associated with the given predicate.
 void dropIndex(String type)
          Drops the given index from the list of actively managed indices.
 String evalInServer(InputStream stream)
          Evaluates a Lisp form on the server, and returns the result as a String.
 String evalInServer(String lispForm)
          Evaluates a Lisp form on the server, and returns the result as a String.
 void exportStatements(Resource subj, URI pred, Value obj, boolean includeInferred, RDFHandler handler, Resource... contexts)
           
 RepositoryResult<Resource> getContextIDs()
           
 String[] getDatatypeMappings()
          Gets the datatype mappings defined for this connection.
 AGFreetextIndexConfig getFreetextIndexConfig(String index)
          Gets the configuration of the specified free text index.
 String[] getFreetextIndices()
          Deprecated.  
 String[] getFreetextPredicates(String index)
          Deprecated.  
 RepositoryResult<Statement> getGeoHaversine(URI type, URI predicate, float lat, float lon, float radius, String unit, int limit, boolean infer)
           
 String[] getGeoTypes()
          Gets the Geospatial types that have been registered.
 com.franz.agraph.http.AGHttpRepoClient getHttpRepoClient()
           
 String getNamespace(String prefix)
           
 RepositoryResult<Namespace> getNamespaces()
           
 String[] getPredicateMappings()
          Gets the predicate mappings defined for this connection.
 AGAbstractRepository getRepository()
           
 RepositoryResult<Statement> getStatements(Resource subj, URI pred, Value obj, boolean includeInferred, Resource... contexts)
           
 RepositoryResult<Statement> getStatementsInBox(URI type, URI predicate, float xmin, float xmax, float ymin, float ymax, int limit, boolean infer)
           
 RepositoryResult<Statement> getStatementsInCircle(URI type, URI predicate, float x, float y, float radius, int limit, boolean infer)
           
 RepositoryResult<Statement> getStatementsInPolygon(URI type, URI predicate, URI polygon, int limit, boolean infer)
           
 AGValueFactory getValueFactory()
           
 boolean isAutoCommit()
           
 List<AGFormattedNamespace> listEncodableNamespaces()
          Returns a list of the registered encodable namespaces.
 List<String> listFreetextIndices()
          Lists the freetext indices that have been defined for this repository.
 List<String> listIndices()
          Returns a list of actively managed indices for this repository.
 List<String> listValidIndices()
          Returns a list of all possible index types for this repository.
 void load(String absoluteServerPath, String baseURI, RDFFormat dataFormat, Resource... contexts)
          Instructs the server to load data from the specified server-side path.
 void load(URI source, String baseURI, RDFFormat dataFormat, Resource... contexts)
          Instructs the server to fetch and load data from the specified URI.
 void ping()
          Instructs the server to extend the life of this connection's dedicated session, if it is using one.
 AGBooleanQuery prepareBooleanQuery(QueryLanguage ql, String queryString)
           
 AGBooleanQuery prepareBooleanQuery(QueryLanguage ql, String queryString, String baseURI)
           
 AGGraphQuery prepareGraphQuery(QueryLanguage ql, String queryString)
           
 AGGraphQuery prepareGraphQuery(QueryLanguage ql, String queryString, String baseURI)
           
 AGQuery prepareQuery(QueryLanguage ql, String queryString, String baseURI)
          Unsupported method, throws an UnsupportedOperationException.
 AGTupleQuery prepareTupleQuery(QueryLanguage ql, String queryString)
           
 AGTupleQuery prepareTupleQuery(QueryLanguage ql, String queryString, String baseURI)
           
 URI registerCartesianType(float stripWidth, float xmin, float xmax, float ymin, float ymax)
          Registers a cartesian type.
 void registerDatatypeMapping(URI datatype, URI primtype)
          Registers a datatype mapping from the datatype to a primitive datatype.
 void registerEncodableNamespace(String namespace, String format)
          Registers an encodable namespace having the specified format.
 void registerEncodableNamespaces(Iterable<? extends AGFormattedNamespace> formattedNamespaces)
          Registers multiple formatted namespaces in a single request.
 void registerPolygon(URI polygon, List<Literal> points)
          Registers a polygon.
 void registerPredicateMapping(URI predicate, URI primtype)
          Registers a predicate mapping from the predicate to a primitive datatype.
 void registerSNAGenerator(String generator, List<URI> objectOfs, List<URI> subjectOfs, List<URI> undirecteds, String query)
           
 void registerSNANeighborMatrix(String matrix, String generator, List<URI> group, int depth)
           
 URI registerSphericalType(float stripWidth, String unit)
           
 URI registerSphericalType(float stripWidth, String unit, float latmin, float lonmin, float latmax, float lonmax)
          Registers a spherical type.
 void remove(Iterable<? extends Statement> statements, Resource... contexts)
           
<E extends Exception>
void
remove(info.aduna.iteration.Iteration<? extends Statement,E> statements, Resource... contexts)
           
 void removeNamespace(String prefix)
           
 void rollback()
           
 void sendRDFTransaction(InputStream rdftransaction)
          Executes an application/x-rdftransaction.
 void setAutoCommit(boolean autoCommit)
           
 void setNamespace(String prefix, String name)
           
 long size(Resource... contexts)
           
 void unregisterEncodableNamespace(String namespace)
          Unregisters the specified encodable namespace.
 
Methods inherited from class org.openrdf.repository.base.RepositoryConnectionBase
add, add, add, add, add, add, clear, export, hasStatement, hasStatement, isEmpty, isOpen, prepareQuery, remove, remove
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openrdf.repository.RepositoryConnection
add, add, add, add, add, add, clear, export, hasStatement, hasStatement, isEmpty, isOpen, prepareQuery, remove, remove
 

Constructor Detail

AGRepositoryConnection

public AGRepositoryConnection(AGAbstractRepository repository,
                              com.franz.agraph.http.AGHttpRepoClient client)
Method Detail

getRepository

public AGAbstractRepository getRepository()
Specified by:
getRepository in interface RepositoryConnection
Overrides:
getRepository in class RepositoryConnectionBase

getHttpRepoClient

public com.franz.agraph.http.AGHttpRepoClient getHttpRepoClient()

getValueFactory

public AGValueFactory getValueFactory()
Specified by:
getValueFactory in interface RepositoryConnection
Overrides:
getValueFactory in class RepositoryConnectionBase

add

public void add(Iterable<? extends Statement> statements,
                Resource... contexts)
         throws RepositoryException
Specified by:
add in interface RepositoryConnection
Overrides:
add in class RepositoryConnectionBase
Throws:
RepositoryException

add

public <E extends Exception> void add(info.aduna.iteration.Iteration<? extends Statement,E> statementIter,
                                      Resource... contexts)
         throws RepositoryException,
                E extends Exception
Specified by:
add in interface RepositoryConnection
Overrides:
add in class RepositoryConnectionBase
Throws:
RepositoryException
E extends Exception

remove

public void remove(Iterable<? extends Statement> statements,
                   Resource... contexts)
            throws RepositoryException
Specified by:
remove in interface RepositoryConnection
Overrides:
remove in class RepositoryConnectionBase
Throws:
RepositoryException

remove

public <E extends Exception> void remove(info.aduna.iteration.Iteration<? extends Statement,E> statements,
                                         Resource... contexts)
            throws RepositoryException,
                   E extends Exception
Specified by:
remove in interface RepositoryConnection
Overrides:
remove in class RepositoryConnectionBase
Throws:
RepositoryException
E extends Exception

setAutoCommit

public void setAutoCommit(boolean autoCommit)
                   throws RepositoryException
Specified by:
setAutoCommit in interface RepositoryConnection
Overrides:
setAutoCommit in class RepositoryConnectionBase
Throws:
RepositoryException

isAutoCommit

public boolean isAutoCommit()
                     throws RepositoryException
Specified by:
isAutoCommit in interface RepositoryConnection
Overrides:
isAutoCommit in class RepositoryConnectionBase
Throws:
RepositoryException

commit

public void commit()
            throws RepositoryException
Specified by:
commit in interface RepositoryConnection
Throws:
RepositoryException

rollback

public void rollback()
              throws RepositoryException
Specified by:
rollback in interface RepositoryConnection
Throws:
RepositoryException

clearNamespaces

public void clearNamespaces()
                     throws RepositoryException
Specified by:
clearNamespaces in interface RepositoryConnection
Throws:
RepositoryException

close

public void close()
           throws RepositoryException
Specified by:
close in interface Closeable
Specified by:
close in interface RepositoryConnection
Overrides:
close in class RepositoryConnectionBase
Throws:
RepositoryException

exportStatements

public void exportStatements(Resource subj,
                             URI pred,
                             Value obj,
                             boolean includeInferred,
                             RDFHandler handler,
                             Resource... contexts)
                      throws RDFHandlerException,
                             RepositoryException
Specified by:
exportStatements in interface RepositoryConnection
Throws:
RDFHandlerException
RepositoryException

getContextIDs

public RepositoryResult<Resource> getContextIDs()
                                         throws RepositoryException
Specified by:
getContextIDs in interface RepositoryConnection
Throws:
RepositoryException

createRepositoryResult

public <E> RepositoryResult<E> createRepositoryResult(Iterable<? extends E> elements)
Creates a RepositoryResult for the supplied element set.


getNamespace

public String getNamespace(String prefix)
                    throws RepositoryException
Specified by:
getNamespace in interface RepositoryConnection
Throws:
RepositoryException

getNamespaces

public RepositoryResult<Namespace> getNamespaces()
                                          throws RepositoryException
Specified by:
getNamespaces in interface RepositoryConnection
Throws:
RepositoryException

getStatements

public RepositoryResult<Statement> getStatements(Resource subj,
                                                 URI pred,
                                                 Value obj,
                                                 boolean includeInferred,
                                                 Resource... contexts)
                                          throws RepositoryException
Specified by:
getStatements in interface RepositoryConnection
Throws:
RepositoryException

prepareQuery

public AGQuery prepareQuery(QueryLanguage ql,
                            String queryString,
                            String baseURI)
Unsupported method, throws an UnsupportedOperationException.

Specified by:
prepareQuery in interface RepositoryConnection

prepareTupleQuery

public AGTupleQuery prepareTupleQuery(QueryLanguage ql,
                                      String queryString)
Specified by:
prepareTupleQuery in interface RepositoryConnection
Overrides:
prepareTupleQuery in class RepositoryConnectionBase

prepareTupleQuery

public AGTupleQuery prepareTupleQuery(QueryLanguage ql,
                                      String queryString,
                                      String baseURI)
Specified by:
prepareTupleQuery in interface RepositoryConnection

prepareGraphQuery

public AGGraphQuery prepareGraphQuery(QueryLanguage ql,
                                      String queryString)
Specified by:
prepareGraphQuery in interface RepositoryConnection
Overrides:
prepareGraphQuery in class RepositoryConnectionBase

prepareGraphQuery

public AGGraphQuery prepareGraphQuery(QueryLanguage ql,
                                      String queryString,
                                      String baseURI)
Specified by:
prepareGraphQuery in interface RepositoryConnection

prepareBooleanQuery

public AGBooleanQuery prepareBooleanQuery(QueryLanguage ql,
                                          String queryString)
Specified by:
prepareBooleanQuery in interface RepositoryConnection
Overrides:
prepareBooleanQuery in class RepositoryConnectionBase

prepareBooleanQuery

public AGBooleanQuery prepareBooleanQuery(QueryLanguage ql,
                                          String queryString,
                                          String baseURI)
Specified by:
prepareBooleanQuery in interface RepositoryConnection

removeNamespace

public void removeNamespace(String prefix)
                     throws RepositoryException
Specified by:
removeNamespace in interface RepositoryConnection
Throws:
RepositoryException

setNamespace

public void setNamespace(String prefix,
                         String name)
                  throws RepositoryException
Specified by:
setNamespace in interface RepositoryConnection
Throws:
RepositoryException

size

public long size(Resource... contexts)
          throws RepositoryException
Specified by:
size in interface RepositoryConnection
Throws:
RepositoryException

createFreetextIndex

public void createFreetextIndex(String name,
                                AGFreetextIndexConfig config)
                         throws RepositoryException
Creates a freetext index with the given name and configuration.

Throws:
RepositoryException

deleteFreetextIndex

public void deleteFreetextIndex(String name)
                         throws RepositoryException
Deletes the freetext index of the specified name.

Throws:
RepositoryException

createFreetextIndex

public void createFreetextIndex(String name,
                                URI[] predicates)
                         throws RepositoryException
Deprecated. 

Registers a predicate for free text indexing. Once registered, the objects of data added to the repository having this predicate will be text indexed and searchable.

Throws:
RepositoryException
See Also:
createFreetextIndex(String, AGFreetextIndexConfig)

getFreetextPredicates

public String[] getFreetextPredicates(String index)
                               throws RepositoryException
Deprecated. 

Gets the predicates that have been registered for text indexing.

Throws:
RepositoryException
See Also:
getFreetextIndexConfig(String)

getFreetextIndexConfig

public AGFreetextIndexConfig getFreetextIndexConfig(String index)
                                             throws RepositoryException
Gets the configuration of the specified free text index.

Throws:
RepositoryException

getFreetextIndices

public String[] getFreetextIndices()
                            throws RepositoryException
Deprecated. 

Gets freetext indexes that have been created

Throws:
RepositoryException
See Also:
listFreetextIndices()

listFreetextIndices

public List<String> listFreetextIndices()
                                 throws RepositoryException
Lists the freetext indices that have been defined for this repository.

Returns:
a list of freetext index names
Throws:
RepositoryException

registerPredicateMapping

public void registerPredicateMapping(URI predicate,
                                     URI primtype)
                              throws RepositoryException
Registers a predicate mapping from the predicate to a primitive datatype. This can be useful in speeding up query performance and enabling range queries over datatypes. Once registered, the objects of any data added via this connection that have this predicate will be mapped to the primitive datatype. For example, registering that predicate is mapped to XMLSchema.INT and adding the triple: "24" will result in the object being treated as having datatype "24"^^xsd:int.

Parameters:
predicate - the predicate
primtype -
Throws:
RepositoryException

deletePredicateMapping

public void deletePredicateMapping(URI predicate)
                            throws RepositoryException
Deletes any predicate mapping associated with the given predicate.

Parameters:
predicate - the predicate
Throws:
RepositoryException

getPredicateMappings

public String[] getPredicateMappings()
                              throws RepositoryException
Gets the predicate mappings defined for this connection.

Throws:
RepositoryException

registerDatatypeMapping

public void registerDatatypeMapping(URI datatype,
                                    URI primtype)
                             throws RepositoryException
Registers a datatype mapping from the datatype to a primitive datatype. This can be useful in speeding up query performance and enabling range queries over user datatypes. Once registered, the objects of any data added via this connection that have this datatype will be mapped to the primitive datatype. For example, registering that datatype is mapped to XMLSchema.INT and adding the triple: "24"^^ will result in the object being treated as having datatype "24"^^xsd:int.

Parameters:
datatype - the user datatype
primtype - the primitive type
Throws:
RepositoryException

deleteDatatypeMapping

public void deleteDatatypeMapping(URI datatype)
                           throws RepositoryException
Deletes any datatype mapping associated with the given datatype.

Parameters:
datatype - the user datatype
Throws:
RepositoryException

getDatatypeMappings

public String[] getDatatypeMappings()
                             throws RepositoryException
Gets the datatype mappings defined for this connection.

Throws:
RepositoryException

clearMappings

public void clearMappings()
                   throws RepositoryException
Deletes all predicate and datatype mappings for this connection.

Throws:
RepositoryException

addRules

public void addRules(String rules)
              throws RepositoryException
Adds Prolog rules to be used on this connection.

Parameters:
rules - a string of rules.
Throws:
RepositoryException

addRules

public void addRules(InputStream rulestream)
              throws RepositoryException
Adds Prolog rules to be used on this connection.

Parameters:
rulestream - a stream of rules.
Throws:
RepositoryException

evalInServer

public String evalInServer(String lispForm)
                    throws RepositoryException
Evaluates a Lisp form on the server, and returns the result as a String.

Parameters:
lispForm - the Lisp form to evaluate, in a String.
Returns:
the result in a String.
Throws:
RepositoryException

evalInServer

public String evalInServer(InputStream stream)
                    throws RepositoryException
Evaluates a Lisp form on the server, and returns the result as a String.

Parameters:
stream - the Lisp form to evaluate, in a stream.
Returns:
the result in a String.
Throws:
RepositoryException

load

public void load(URI source,
                 String baseURI,
                 RDFFormat dataFormat,
                 Resource... contexts)
          throws RepositoryException
Instructs the server to fetch and load data from the specified URI.

Parameters:
source - the URI to fetch and load.
baseURI - the base URI for the source document.
dataFormat - the RDF data format for the source document.
contexts - zero or more contexts into which data will be loaded.
Throws:
RepositoryException

load

public void load(String absoluteServerPath,
                 String baseURI,
                 RDFFormat dataFormat,
                 Resource... contexts)
          throws RepositoryException
Instructs the server to load data from the specified server-side path.

Parameters:
absoluteServerPath - the path to the server-side source file.
baseURI - the base URI for the source document.
dataFormat - the RDF data format for the source document.
contexts - zero or more contexts into which data will be loaded.
Throws:
RepositoryException

ping

public void ping()
          throws RepositoryException
Instructs the server to extend the life of this connection's dedicated session, if it is using one. Such connections that are idle for 3600 seconds will be closed by the server.

Throws:
RepositoryException

getGeoTypes

public String[] getGeoTypes()
                     throws RepositoryException
Gets the Geospatial types that have been registered.

Throws:
RepositoryException

registerCartesianType

public URI registerCartesianType(float stripWidth,
                                 float xmin,
                                 float xmax,
                                 float ymin,
                                 float ymax)
                          throws RepositoryException
Registers a cartesian type.

Throws:
RepositoryException

registerSphericalType

public URI registerSphericalType(float stripWidth,
                                 String unit,
                                 float latmin,
                                 float lonmin,
                                 float latmax,
                                 float lonmax)
                          throws RepositoryException
Registers a spherical type.

Throws:
RepositoryException

registerSphericalType

public URI registerSphericalType(float stripWidth,
                                 String unit)
                          throws RepositoryException
Throws:
RepositoryException

registerPolygon

public void registerPolygon(URI polygon,
                            List<Literal> points)
                     throws RepositoryException
Registers a polygon.

Throws:
RepositoryException

getStatementsInBox

public RepositoryResult<Statement> getStatementsInBox(URI type,
                                                      URI predicate,
                                                      float xmin,
                                                      float xmax,
                                                      float ymin,
                                                      float ymax,
                                                      int limit,
                                                      boolean infer)
                                               throws RepositoryException
Throws:
RepositoryException

getStatementsInCircle

public RepositoryResult<Statement> getStatementsInCircle(URI type,
                                                         URI predicate,
                                                         float x,
                                                         float y,
                                                         float radius,
                                                         int limit,
                                                         boolean infer)
                                                  throws RepositoryException
Throws:
RepositoryException

getGeoHaversine

public RepositoryResult<Statement> getGeoHaversine(URI type,
                                                   URI predicate,
                                                   float lat,
                                                   float lon,
                                                   float radius,
                                                   String unit,
                                                   int limit,
                                                   boolean infer)
                                            throws RepositoryException
Throws:
RepositoryException

getStatementsInPolygon

public RepositoryResult<Statement> getStatementsInPolygon(URI type,
                                                          URI predicate,
                                                          URI polygon,
                                                          int limit,
                                                          boolean infer)
                                                   throws RepositoryException
Throws:
RepositoryException

registerSNAGenerator

public void registerSNAGenerator(String generator,
                                 List<URI> objectOfs,
                                 List<URI> subjectOfs,
                                 List<URI> undirecteds,
                                 String query)
                          throws RepositoryException
Throws:
RepositoryException

registerSNANeighborMatrix

public void registerSNANeighborMatrix(String matrix,
                                      String generator,
                                      List<URI> group,
                                      int depth)
                               throws RepositoryException
Throws:
RepositoryException

listIndices

public List<String> listIndices()
                         throws OpenRDFException
Returns a list of actively managed indices for this repository.

Returns:
a list of actively managed indices for this repository.
Throws:
OpenRDFException

listValidIndices

public List<String> listValidIndices()
                              throws OpenRDFException
Returns a list of all possible index types for this repository.

Returns:
a list of valid index types
Throws:
OpenRDFException

addIndex

public void addIndex(String type)
              throws RepositoryException
Adds the given index to the list of actively managed indices. This will take affect on the next commit.

Parameters:
type - a valid index type
Throws:
RepositoryException
See Also:
listValidIndices()

dropIndex

public void dropIndex(String type)
               throws RepositoryException
Drops the given index from the list of actively managed indices. This will take affect on the next commit.

Parameters:
type - an actively managed index type.
Throws:
RepositoryException
See Also:
listValidIndices()

sendRDFTransaction

public void sendRDFTransaction(InputStream rdftransaction)
                        throws RepositoryException,
                               RDFParseException,
                               IOException
Executes an application/x-rdftransaction. This method is useful for bundling add/remove operations into a single request and minimizing round trips to the server. Changes are committed iff the connection is in autoCommit mode. For increased throughput when sending multiple rdftransaction requests, consider using autoCommit=false and committing less frequently .

Parameters:
rdftransaction - a stream in application/x-rdftransaction format
Throws:
RepositoryException
RDFParseException
IOException

registerEncodableNamespace

public void registerEncodableNamespace(String namespace,
                                       String format)
                                throws RepositoryException
Registers an encodable namespace having the specified format. Registering an encodable namespace enables a more efficient encoding of URIs in a namespace, and generation of unique URIs for that namespace, because its URIs are declared to conform to a specified format; the namespace is thereby bounded in size, and encodable. The format is a string using a simplified regular expression syntax supporting character ranges and counts specifying the suffix portion of the URI's in the namespace. E.g., [a-z][0-9]-[a-f]{3} The format can be ambiguous (e.g., "[A-Z]{1,2}[B-C}{0,1}"). We will not check for ambiguity in this first version but can add this checking at a later time. If the format corresponds to a namespace that is not encodable (it may be malformed, or perhaps it's too large to encode), an exception is thrown.

Parameters:
namespace - a valid namespace, a URI ref
format - a valid format for an encodable namespace
Throws:
RepositoryException

registerEncodableNamespaces

public void registerEncodableNamespaces(Iterable<? extends AGFormattedNamespace> formattedNamespaces)
                                 throws RepositoryException
Registers multiple formatted namespaces in a single request.

Parameters:
formattedNamespaces -
Throws:
RepositoryException

listEncodableNamespaces

public List<AGFormattedNamespace> listEncodableNamespaces()
                                                   throws OpenRDFException
Returns a list of the registered encodable namespaces.

Returns:
a list of the registered encodable namespaces.
Throws:
RepositoryException
OpenRDFException

unregisterEncodableNamespace

public void unregisterEncodableNamespace(String namespace)
                                  throws RepositoryException
Unregisters the specified encodable namespace.

Parameters:
namespace - the namespace to unregister.
Throws:
RepositoryException

callStoredProc

public Object callStoredProc(String functionName,
                             String moduleName,
                             Object... args)
                      throws RepositoryException
Deprecated. The stored proc feature and API are experimental, and subject to change in a future release.

Invoke a stored procedure on the AllegroGraph server.

The input arguments and the return value can be: String, Integer, null, byte[], or Object[] or List of these (can be nested).

See also getHttpRepoClient().callStoredProc(functionName, moduleName, args)

Parameters:
functionName - stored proc lisp function, for example "addTwo"
moduleName - lisp FASL file name, for example "example.fasl"
args - arguments to the stored proc
Returns:
return value of stored proc
Throws:
AGCustomStoredProcException - for errors from stored proc
RepositoryException
Since:
v4.2

Copyright © 2008-2010 Franz Inc.