com.mkdoc.jspider
Class AbstractStoreWriterPlugin

java.lang.Object
  extended bycom.mkdoc.jspider.AbstractPlugin
      extended bycom.mkdoc.jspider.AbstractMKDocPlugin
          extended bycom.mkdoc.jspider.AbstractRdfPlugin
              extended bycom.mkdoc.jspider.AbstractStoreWriterPlugin
All Implemented Interfaces:
net.javacoding.jspider.api.event.EventSink, net.javacoding.jspider.spi.Plugin
Direct Known Subclasses:
AbstractLocalStoreWriterPlugin

public abstract class AbstractStoreWriterPlugin
extends AbstractRdfPlugin
implements net.javacoding.jspider.spi.Plugin

A base class for plugins that write to an RDF store.

Version:
0.2 2005-03-29
Author:
Philip Shaw

Field Summary
protected  org.openrdf.sesame.repository.SesameRepository repository
          The Sesame repository.
 
Fields inherited from class com.mkdoc.jspider.AbstractRdfPlugin
schema
 
Fields inherited from class com.mkdoc.jspider.AbstractMKDocPlugin
baseDir, log, outputDir, VENDOR
 
Fields inherited from class com.mkdoc.jspider.AbstractPlugin
ABSOLUTE, DEFAULT, FOLDER
 
Constructor Summary
AbstractStoreWriterPlugin()
           
 
Method Summary
protected abstract  void addResource(java.io.InputStream inStream, java.lang.String uri)
          Add a resource to the repository from an input stream.
protected abstract  org.xml.sax.ContentHandler getContentHandler(org.openrdf.sesame.repository.SesameRepository repository, java.lang.String subjectUri)
          Get a pre-configured content handler.
 void notify(net.javacoding.jspider.api.event.JSpiderEvent event)
          Receive notification of a JSpider event.
 
Methods inherited from class com.mkdoc.jspider.AbstractRdfPlugin
loadCustomSchema
 
Methods inherited from class com.mkdoc.jspider.AbstractMKDocPlugin
configureOutput, createDirectories, getVendor, includesFile, setLog, trimExtension
 
Methods inherited from class com.mkdoc.jspider.AbstractPlugin
initialize, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.javacoding.jspider.spi.Plugin
getDescription, getName, getVendor, getVersion
 
Methods inherited from interface net.javacoding.jspider.api.event.EventSink
initialize, shutdown
 

Field Detail

repository

protected org.openrdf.sesame.repository.SesameRepository repository
The Sesame repository.

Since:
Version 0.1 2005-03-15
Constructor Detail

AbstractStoreWriterPlugin

public AbstractStoreWriterPlugin()
Method Detail

notify

public final void notify(net.javacoding.jspider.api.event.JSpiderEvent event)
Receive notification of a JSpider event.

Specified by:
notify in interface net.javacoding.jspider.api.event.EventSink
Parameters:
event - A JSpider event.
Since:
Version 0.1 2005-03-15

addResource

protected abstract void addResource(java.io.InputStream inStream,
                                    java.lang.String uri)
Add a resource to the repository from an input stream.

Parameters:
inStream - The input stream source for the metadata.
uri - The URI of the source document.
Since:
Version 0.1 2005-03-15

getContentHandler

protected abstract org.xml.sax.ContentHandler getContentHandler(org.openrdf.sesame.repository.SesameRepository repository,
                                                                java.lang.String subjectUri)
Get a pre-configured content handler.

Parameters:
repository - The Sesame repository the content handler will write the document metadata to.
subjectUri - An initial URI subject.
Returns:
An RdfContentHandler instance with custom Schema if configured.
Since:
Version 0.1 2005-03-15