com.mkdoc.store
Interface SubjectManager

All Superinterfaces:
Manager
All Known Subinterfaces:
StoreManager
All Known Implementing Classes:
LocalRepositorySubjectManager

public interface SubjectManager
extends Manager

Manage stored RDF statements by subject URI.

Version:
0.4 2005-05-31
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 interface com.mkdoc.store.Manager
initialize, shutdown
 

Method Detail

purgeDocumentStatements

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

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-03-31

purgeSiteStatements

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

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-03-31

addDocumentStatements

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

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-03-31

addXmlRdfStream

public void addXmlRdfStream(java.io.InputStream inStream,
                            java.net.URL baseUri)
                     throws StoreException
Add an RDF data stream to the store.

Parameters:
inStream - The data stream to add to the store.
baseUri - The URL base of the source.
Throws:
StoreException - If there is a problem importing the data to the repository.
Since:
Version 0.4 2005-05-31