org.openrdf.sesame.sailimpl.rdbms
Class RdfSchemaRepositoryConfig

java.lang.Object
  extended byorg.openrdf.sesame.config.SailConfig
      extended byorg.openrdf.sesame.sailimpl.rdbms.RdfRepositoryConfig
          extended byorg.openrdf.sesame.sailimpl.rdbms.RdfSchemaRepositoryConfig
All Implemented Interfaces:
Cloneable

public class RdfSchemaRepositoryConfig
extends RdfRepositoryConfig

Extension of SailConfig offering specific utility methods for configuring an org.openrdf.sesame.sailimpl.rdbms.RdfSchemaRepository Sail. This class offers methods for specifying the JDBC-driver class, the JDBC URL, the username/password combination for the RDBMS, and the inferencer class.


Constructor Summary
RdfSchemaRepositoryConfig()
          Creates a new and unconfigured RdfSchemaRepositoryConfig object for an org.openrdf.sesame.sailimpl.rdbms.RdfSchemaRepository Sail.
RdfSchemaRepositoryConfig(String jdbcDriver, String jdbcUrl)
          Creates a new RdfSchemaRepositoryConfig object for an org.openrdf.sesame.sailimpl.rdbms.RdfSchemaRepository Sail that uses the specified JDBC Driver to connect to the specified database.
RdfSchemaRepositoryConfig(String jdbcDriver, String jdbcUrl, String user, String password)
          Creates a new RdfSchemaRepositoryConfig object for an org.openrdf.sesame.sailimpl.rdbms.RdfSchemaRepository Sail that uses the specified JDBC Driver to connect to the specified database.
 
Method Summary
 String getInferencerClass()
          Gets the inferencer class.
 void setInferencerClass(String inferencerClass)
          Sets the inferencer class that should be used for inferencing.
 
Methods inherited from class org.openrdf.sesame.sailimpl.rdbms.RdfRepositoryConfig
getJdbcDriver, getJdbcUrl, getPassword, getUser, setJdbcDriver, setJdbcUrl, setPassword, setUser
 
Methods inherited from class org.openrdf.sesame.config.SailConfig
clone, equals, getConfigParameters, getParameter, getSailClass, hashCode, hasParameter, removeParameter, setConfigParameters, setParameter, setParameterKey, setParameterValue, setSailClass
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RdfSchemaRepositoryConfig

public RdfSchemaRepositoryConfig()
Creates a new and unconfigured RdfSchemaRepositoryConfig object for an org.openrdf.sesame.sailimpl.rdbms.RdfSchemaRepository Sail.


RdfSchemaRepositoryConfig

public RdfSchemaRepositoryConfig(String jdbcDriver,
                                 String jdbcUrl)
Creates a new RdfSchemaRepositoryConfig object for an org.openrdf.sesame.sailimpl.rdbms.RdfSchemaRepository Sail that uses the specified JDBC Driver to connect to the specified database.

Parameters:
jdbcDriver - The fully qualified name of the Driver class, e.g. com.mysql.jdbc.Driver or org.postgresql.Driver.
jdbcUrl - A JDBC URL specifying the database to connect to, e.g. jdbc:mysql://localhost:3306/testdb or jdbc:postgresql://localhost:5432/testdb.

RdfSchemaRepositoryConfig

public RdfSchemaRepositoryConfig(String jdbcDriver,
                                 String jdbcUrl,
                                 String user,
                                 String password)
Creates a new RdfSchemaRepositoryConfig object for an org.openrdf.sesame.sailimpl.rdbms.RdfSchemaRepository Sail that uses the specified JDBC Driver to connect to the specified database. The specified username/password combination is used to get access to the database.

Parameters:
jdbcDriver - The fully qualified name of the Driver class, e.g. com.mysql.jdbc.Driver or org.postgresql.Driver.
jdbcUrl - A JDBC URL specifying the database to connect to, e.g. jdbc:mysql://localhost:3306/testdb or jdbc:postgresql://localhost:5432/testdb.
user - The name of a user that has access to the database.
password - The user's password for the database.
Method Detail

setInferencerClass

public void setInferencerClass(String inferencerClass)
Sets the inferencer class that should be used for inferencing.

Parameters:
inferencerClass - The fully qualified name of the InferenceServices class that should be used for inferencing, e.g. org.openrdf.sesame.sailimpl.rdbms.RdbmsInferenceServices.

getInferencerClass

public String getInferencerClass()
Gets the inferencer class.



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