com.mkdoc.store
Class TripleFileSystemSubjectManager

java.lang.Object
  extended bycom.mkdoc.store.AbstractFileSystemManager
      extended bycom.mkdoc.store.TripleFileSystemSubjectManager
All Implemented Interfaces:
Manager, SubjectManager

public class TripleFileSystemSubjectManager
extends AbstractFileSystemManager
implements SubjectManager

Manage RDF resources stored on a file system.

This interim version duplicates many of the methods in the com.mkdoc.jspider package plugin classes.

Version:
0.3 2005-05-11
Author:
Philip Shaw

Field Summary
 
Fields inherited from class com.mkdoc.store.AbstractFileSystemManager
ABSOLUTE, baseDir, DOT, FOLDER, outputDir
 
Constructor Summary
TripleFileSystemSubjectManager()
           
 
Method Summary
 void addDocumentStatements(org.openrdf.model.URI subjectUri, org.openrdf.model.Graph graph)
          Add statements about a document by subject URI.
 java.lang.String getExtension()
          Get the extension for storage files.
 void initialize(net.javacoding.jspider.core.util.config.PropertySet propertySet)
          Initialize the manager.
 void purgeDocumentStatements(java.lang.String subjectUri)
          Purge statements about a document by subject URI.
 void purgeSiteStatements(java.lang.String subjectUri)
          Purge statements about a site by subject URI.
 void shutdown()
          Shut down the manager, not implemented.
 
Methods inherited from class com.mkdoc.store.AbstractFileSystemManager
configureOutput, createDirectories, getOutputStream, getStorageFile, includesFile, purgeDocumentFile, trimExtension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.mkdoc.store.SubjectManager
getOutputStream
 

Constructor Detail

TripleFileSystemSubjectManager

public TripleFileSystemSubjectManager()
Method Detail

initialize

public final void initialize(net.javacoding.jspider.core.util.config.PropertySet propertySet)
Initialize the manager.

Specified by:
initialize in interface Manager
Parameters:
propertySet - The set of properties that configure this manager.
Since:
Version 0.1 2005-04-26

getExtension

public final java.lang.String getExtension()
Get the extension for storage files.

Specified by:
getExtension in class AbstractFileSystemManager
Returns:
An N-Triple file extension.
Since:
Version 0.1 2005-04-26

shutdown

public final void shutdown()
Shut down the manager, not implemented.

Specified by:
shutdown in interface Manager
Since:
Version 0.1 2005-04-26

purgeDocumentStatements

public final void purgeDocumentStatements(java.lang.String subjectUri)
                                   throws StoreException
Purge statements about a document by subject URI.

Specified by:
purgeDocumentStatements in interface SubjectManager
Parameters:
subjectUri - The URI of the subject document to purge.
Throws:
StoreException - If an error occurs with the triple store.
Since:
Version 0.1 2005-04-26

purgeSiteStatements

public final void purgeSiteStatements(java.lang.String subjectUri)
                               throws StoreException
Purge statements about a site by subject URI.

Specified by:
purgeSiteStatements in interface SubjectManager
Parameters:
subjectUri - The URI of the subject site to purge.
Throws:
StoreException - If an error occurs with the triple store.
Since:
Version 0.1 2005-04-26

addDocumentStatements

public final void addDocumentStatements(org.openrdf.model.URI subjectUri,
                                        org.openrdf.model.Graph graph)
                                 throws StoreException
Add statements about a document by subject URI.

Specified by:
addDocumentStatements in interface SubjectManager
Parameters:
subjectUri - The URI of the subject document to add.
graph - The RDF graph of statements about this document.
Throws:
StoreException - If an error occurs with the triple store.
Since:
Version 0.1 2005-04-26