com.mkdoc.store
Class LocalRepositorySubjectManager
java.lang.Object
|
+--com.mkdoc.store.AbstractFileStoreManager
|
+--com.mkdoc.store.AbstractRepositoryManager
|
+--com.mkdoc.store.AbstractLocalRepositoryManager
|
+--com.mkdoc.store.LocalRepositorySubjectManager
- All Implemented Interfaces:
- Manager, SubjectManager
- public class LocalRepositorySubjectManager
- extends AbstractLocalRepositoryManager
- 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.4 2005-07-12
- Author:
- Philip Shaw
Method Summary |
void |
addDocumentStatements(org.openrdf.model.URI subjectUri,
org.openrdf.model.Graph graph)
Add statements about a document by subject URI. |
void |
addXmlRdfStream(java.io.InputStream inStream,
java.net.URL baseUri)
Add an RDF data stream to the store. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalRepositorySubjectManager
public LocalRepositorySubjectManager()
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
addXmlRdfStream
public final void addXmlRdfStream(java.io.InputStream inStream,
java.net.URL baseUri)
throws StoreException
- Add an RDF data stream to the store.
- Specified by:
addXmlRdfStream
in interface SubjectManager
- Parameters:
inStream
- The data stream to add to the store.baseUri
- The URL base of the source.
- Throws:
StoreException
- If there is a problem reading the input
stream or validating the RDF content.- Since:
- Version 0.4 2005-05-31