com.mkdoc.store
Interface StoreManager

All Superinterfaces:
Manager
All Known Implementing Classes:
DatabaseStoreManager, LocalStoreManager

public interface StoreManager
extends Manager

A type that implements all manager interfaces.

Version:
0.2 2005-11-01
Author:
Philip Shaw

Field Summary
static java.lang.String REPOSITORY
          The repository path configuration key.
 
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.
 QueryResult executeQuery(Query query)
          Execute a query against the data store.
 
Methods inherited from interface com.mkdoc.store.Manager
initialize, shutdown
 

Field Detail

REPOSITORY

public static final java.lang.String REPOSITORY
The repository path configuration key.

Since:
Version 0.2 2005-11-01
See Also:
Constant Field Values
Method Detail

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.2 2005-11-01

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.2 2005-11-01

executeQuery

public QueryResult executeQuery(Query query)
Execute a query against the data store.

Parameters:
query - The query to apply to the store.
Returns:
A result set that fulfils the submitted query.
Since:
Version 0.2 2005-11-01