|
Franz Inc, AllegroGraph | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.franz.agraph.repository.AGServer
public class AGServer
The starting point for interacting with an
AllegroGraph server.
An AGServer references
AGCatalog
s,
which reference
AGRepositories
, from which
connections
may be obtained,
on which data is manipulated and queried.
AGServer also provides federated
repositories.
Constructor Summary | |
---|---|
AGServer(String username,
String password,
com.franz.agraph.http.AGHTTPClient httpClient)
|
|
AGServer(String serverURL,
String username,
String password)
Creates an AGServer instance for interacting with an AllegroGraph server at serverURL. |
Method Summary | |
---|---|
void |
close()
Close the HTTP connection resources to the AllegroGraph server. |
AGCatalog |
createCatalog(String catalogID)
Returns an AGCatalog instance for the given catalogID. |
void |
deleteCatalog(String catalogID)
Deletes any catalog with the given repository id. |
AGVirtualRepository |
federate(AGAbstractRepository... repositories)
Creates a federated view of multiple repositories. |
String |
getBuildDate()
Returns the server's build date. |
AGCatalog |
getCatalog()
Returns the unnamed root catalog for this AllegroGraph server. |
AGCatalog |
getCatalog(String catalogID)
Gets the catalog instance for a given catalog id. |
com.franz.agraph.http.AGHTTPClient |
getHTTPClient()
|
String |
getRevision()
Returns the server's revision info. |
AGCatalog |
getRootCatalog()
Returns the unnamed root catalog for this AllegroGraph server. |
String |
getServerURL()
Returns the URL of this AllegroGraph server. |
String |
getVersion()
Returns the server version. |
List<String> |
listCatalogs()
Returns a List of catalog ids known to this AllegroGraph server. |
AGVirtualRepository |
virtualRepository(String storeSpec)
Creates a virtual repository with the given store specification. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AGServer(String serverURL, String username, String password)
serverURL
- the URL of the server.username
- a user id for authenticating with the serverpassword
- a password for authenticating with the serverpublic AGServer(String username, String password, com.franz.agraph.http.AGHTTPClient httpClient)
Method Detail |
---|
public String getServerURL()
public com.franz.agraph.http.AGHTTPClient getHTTPClient()
public String getVersion() throws com.franz.agraph.http.exception.AGHttpException
com.franz.agraph.http.exception.AGHttpException
public String getBuildDate() throws com.franz.agraph.http.exception.AGHttpException
com.franz.agraph.http.exception.AGHttpException
public String getRevision() throws com.franz.agraph.http.exception.AGHttpException
com.franz.agraph.http.exception.AGHttpException
public AGCatalog getRootCatalog()
getCatalog()
public List<String> listCatalogs() throws com.franz.agraph.http.exception.AGHttpException
OpenRDFException
com.franz.agraph.http.exception.AGHttpException
public AGCatalog getCatalog(String catalogID) throws com.franz.agraph.http.exception.AGHttpException
catalogID
- a catalog id.
com.franz.agraph.http.exception.AGHttpException
public AGCatalog getCatalog()
public AGCatalog createCatalog(String catalogID) throws com.franz.agraph.http.exception.AGHttpException
catalogID
- the id (the name) of the catalog
com.franz.agraph.http.exception.AGHttpException
public void deleteCatalog(String catalogID) throws com.franz.agraph.http.exception.AGHttpException
catalogID
- the name of the catalog to delete.
com.franz.agraph.http.exception.AGHttpException
public AGVirtualRepository virtualRepository(String storeSpec)
The storeSpec parameter is a string using the minilanguage for store specification described in the HTTP protocol document (see the store parameter there).
This syntax can be used to create federations, graph-filtered stores, reasoning stores, and compositions thereof.
storeSpec
- the store specificationpublic AGVirtualRepository federate(AGAbstractRepository... repositories)
public void close()
close
in interface Closeable
Closeable.close()
|
Copyright © 2008-2011 Franz Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |