com.mkdoc.jspider
Class AbstractStoreWriterPlugin
java.lang.Object
com.mkdoc.jspider.AbstractPlugin
com.mkdoc.jspider.AbstractMKDocPlugin
com.mkdoc.jspider.AbstractRdfPlugin
com.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. |
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 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 |
repository
protected org.openrdf.sesame.repository.SesameRepository repository
- The Sesame repository.
- Since:
- Version 0.1 2005-03-15
AbstractStoreWriterPlugin
public AbstractStoreWriterPlugin()
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