org.trippi
Class TriplestoreConnector

java.lang.Object
  extended by org.trippi.TriplestoreConnector
Direct Known Subclasses:
KowariConnector, MPTConnector, OracleConnector, SesameConnector

public abstract class TriplestoreConnector
extends java.lang.Object

Provides a TriplestoreReader and/or TriplestoreWriter for a triplestore.

Author:
cwilper@cs.cornell.edu

Constructor Summary
TriplestoreConnector()
           
 
Method Summary
abstract  void close()
          Release resources.
 void finalize()
          Ensure close() gets called at garbage collection time.
static ConnectorDescriptor getDescriptor(java.lang.String className)
           
abstract  org.jrdf.graph.GraphElementFactory getElementFactory()
           
abstract  TriplestoreReader getReader()
          Get the reader.
abstract  TriplestoreWriter getWriter()
          Get the writer.
abstract  void init(java.util.Map configuration)
          Initialize this connector with the given configuration.
static TriplestoreConnector init(java.lang.String className, java.util.Map configuration)
          Instantiate a named TriplestoreConnector.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriplestoreConnector

public TriplestoreConnector()
Method Detail

init

public static TriplestoreConnector init(java.lang.String className,
                                        java.util.Map configuration)
                                 throws TrippiException,
                                        java.lang.ClassNotFoundException
Instantiate a named TriplestoreConnector.

Throws:
TrippiException
java.lang.ClassNotFoundException

getDescriptor

public static ConnectorDescriptor getDescriptor(java.lang.String className)
                                         throws TrippiException
Throws:
TrippiException

init

public abstract void init(java.util.Map configuration)
                   throws TrippiException
Initialize this connector with the given configuration.

Throws:
TrippiException

getReader

public abstract TriplestoreReader getReader()
Get the reader.


getWriter

public abstract TriplestoreWriter getWriter()
Get the writer.

Throws:
java.lang.UnsupportedOperationException - if this connector does not support triplestore modification.

getElementFactory

public abstract org.jrdf.graph.GraphElementFactory getElementFactory()

close

public abstract void close()
                    throws TrippiException
Release resources.

Throws:
TrippiException

finalize

public void finalize()
              throws TrippiException
Ensure close() gets called at garbage collection time.

Overrides:
finalize in class java.lang.Object
Throws:
TrippiException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception