org.openrdf.sesame
Class Sesame

java.lang.Object
  extended byorg.openrdf.sesame.Sesame

public class Sesame
extends Object

Class providing a static entry point to the Sesame APIs.

Author:
Herko ter Horst, Arjohn Kampman

Constructor Summary
Sesame()
           
 
Method Summary
static LocalService getService()
          Get an empty local SesameService.
static LocalService getService(File systemConfigFile)
          Get a local SesameService initialized with the specified system configuration file.
static LocalService getService(SystemConfig config)
          Get a local SesameService initialized with the supplied configuration.
static SesameService getService(URI serverURI)
          Get a remote SesameService object for a server running at the specified URI.
static HTTPService getService(URL serverURL)
          Get a remote SesameService object for a server running at the specified URL.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sesame

public Sesame()
Method Detail

getService

public static LocalService getService()
Get an empty local SesameService.

Returns:
An empty LocalService.

getService

public static LocalService getService(SystemConfig config)
Get a local SesameService initialized with the supplied configuration.

Parameters:
config - The configuration.
Returns:
A LocalService objet.

getService

public static LocalService getService(File systemConfigFile)
                               throws IOException
Get a local SesameService initialized with the specified system configuration file. Please make sure that the system property org.xml.sax.driver has been set and is poiting to an implementation of org.xml.sax.XMLReader. If this property is not set, the specified file cannot be read.

Parameters:
systemConfigFile - The system configuration file.
Returns:
A LocalService object.
Throws:
IOException - If the specified system configuration file could not be read.

getService

public static HTTPService getService(URL serverURL)
Get a remote SesameService object for a server running at the specified URL. This method can be used to retrieve a Sesame connection over HTTP.

Parameters:
serverURL - The URL to connect to, e.g. http://localhost:8080/sesame/
Returns:
An HTTPService object for the specified server.
Throws:
IllegalArgumentException - If the protocol of the specified URL is not "http".

getService

public static SesameService getService(URI serverURI)
Get a remote SesameService object for a server running at the specified URI. This method can be used to retrieve a Sesame connection through RMI.

Parameters:
serverURI - The URI to connect to, e.g. rmi://remote.sesame.svr:1099/.
Returns:
An SesameService object for the specified server.


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