org.daml.rdf.jena.common
Interface SourceStore

All Superinterfaces:
com.hp.hpl.mesa.rdf.jena.common.Store
All Known Implementing Classes:
SourceStoreMem

public interface SourceStore
extends com.hp.hpl.mesa.rdf.jena.common.Store

Interface to a triple store that keeps track of the source for each statement.


Method Summary
 void add(com.hp.hpl.mesa.rdf.jena.model.Statement s, Source source)
          Add a statement associated with a source.
 Source createSource(java.lang.String uri)
          Create a new source.
 Source getDefaultSource()
          Get the default source that is used when adding a statement.
 Source getSource(com.hp.hpl.mesa.rdf.jena.model.Statement s)
          Return the store of a statement.
 java.util.Iterator listBySource(Source source)
          Return an iterator over all the statements with a given source.
 java.util.Iterator listSources()
          Return an iterator over all the sources in the store.
 void setDefaultSource(Source source)
          Set the default source that is used when adding a statement.
 void setSource(com.hp.hpl.mesa.rdf.jena.model.Statement s, Source source)
          Change the source of a statement.
 
Methods inherited from interface com.hp.hpl.mesa.rdf.jena.common.Store
add, close, contains, contains, createAlt, createAlt, createBag, createBag, createProperty, createProperty, createResource, createResource, createSeq, createSeq, createStatement, getAlt, getAlt, getBag, getBag, getProperty, getProperty, getProperty, getResource, getSeq, getSeq, getStatement, list, list, listByObject, listByPredicate, listBySubject, listNameSpaces, listSubjects, remove, size
 

Method Detail

add

public void add(com.hp.hpl.mesa.rdf.jena.model.Statement s,
                Source source)
         throws com.hp.hpl.mesa.rdf.jena.model.RDFException
Add a statement associated with a source.

com.hp.hpl.mesa.rdf.jena.model.RDFException

listBySource

public java.util.Iterator listBySource(Source source)
Return an iterator over all the statements with a given source.


getSource

public Source getSource(com.hp.hpl.mesa.rdf.jena.model.Statement s)
Return the store of a statement.


listSources

public java.util.Iterator listSources()
Return an iterator over all the sources in the store.


setDefaultSource

public void setDefaultSource(Source source)
Set the default source that is used when adding a statement.


getDefaultSource

public Source getDefaultSource()
Get the default source that is used when adding a statement.


setSource

public void setSource(com.hp.hpl.mesa.rdf.jena.model.Statement s,
                      Source source)
Change the source of a statement.


createSource

public Source createSource(java.lang.String uri)
Create a new source.