org.daml.rdf.jena.model
Interface SourceModel

All Superinterfaces:
com.hp.hpl.mesa.rdf.jena.model.Model, com.hp.hpl.mesa.rdf.jena.model.ModelCon, com.hp.hpl.mesa.rdf.jena.model.RDFReaderF, com.hp.hpl.mesa.rdf.jena.model.RDFWriterF
All Known Implementing Classes:
SourceModelMem

public interface SourceModel
extends com.hp.hpl.mesa.rdf.jena.model.Model

An RDF Model that keeps statements grouped by source.


Method Summary
 com.hp.hpl.mesa.rdf.jena.model.Model add(com.hp.hpl.mesa.rdf.jena.model.Model m, Source source)
          Add all the statements from another model to this model and associate them with a source.
 com.hp.hpl.mesa.rdf.jena.model.Model add(SourceModel m)
          Add all the statements from a SourceModel to this model.
 com.hp.hpl.mesa.rdf.jena.model.Model add(com.hp.hpl.mesa.rdf.jena.model.Statement s, Source source)
          Add a statement to this model and associate it with a source.
 com.hp.hpl.mesa.rdf.jena.model.Model add(com.hp.hpl.mesa.rdf.jena.model.StmtIterator iter, Source source)
          Add all the statements in an interator to this model and associate them with a source.
 Source createSource(java.lang.String uri)
          Create a new source object from a URI.
 Source getDefaultSource()
          Get the default source that will be assigned to any new statements added to the model.
 com.hp.hpl.mesa.rdf.jena.model.Model getModelForSource(Source source)
          Return a new model that contains all the statements associated with a source.
 Source getSource(com.hp.hpl.mesa.rdf.jena.model.Statement s)
          Return the source of a statement.
 java.util.Iterator listSources()
          List all sources with statements in the model.
 com.hp.hpl.mesa.rdf.jena.model.StmtIterator listStatementsOfSource(Source source)
          Return a statement iterator over all the statements associated with a source.
 com.hp.hpl.mesa.rdf.jena.model.Model read(java.io.Reader reader, java.lang.String base, Source source)
          Read a source file into the model and assign the new statments to a source.
 com.hp.hpl.mesa.rdf.jena.model.Model read(java.io.Reader reader, java.lang.String base, java.lang.String lang, Source source)
          Read a source file into the model and assign the new statments to a source.
 Source setDefaultSource(Source source)
          Set the default source for any new statements that are added to the model.
 com.hp.hpl.mesa.rdf.jena.model.Model setSource(com.hp.hpl.mesa.rdf.jena.model.Statement s, Source source)
          Change the source that is associated with a statement.
 com.hp.hpl.mesa.rdf.jena.model.Model setSource(com.hp.hpl.mesa.rdf.jena.model.StmtIterator iter, Source source)
          Change the source associated with each of the statements in the iterator.
 com.hp.hpl.mesa.rdf.jena.model.Model write(java.io.Writer writer, Source source)
          Write out to a file just the statements associated with a source.
 com.hp.hpl.mesa.rdf.jena.model.Model write(java.io.Writer writer, java.lang.String lang, Source source)
          Write out to a file just the statements associated with a source.
 com.hp.hpl.mesa.rdf.jena.model.Model write(java.io.Writer writer, java.lang.String lang, java.lang.String base, Source source)
          Write out to a file just the statements associated with a source.
 
Methods inherited from interface com.hp.hpl.mesa.rdf.jena.model.Model
abort, add, add, add, begin, close, commit, contains, contains, contains, containsAll, containsAll, containsAny, containsAny, createLiteral, createLiteral, createProperty, createResource, createResource, createStatement, difference, equals, getProperty, getProperty, getResource, independent, intersection, isReified, listNameSpaces, listObjects, listObjectsOfProperty, listObjectsOfProperty, listReifiedStatements, listStatements, listStatements, listSubjects, listSubjectsWithProperty, listSubjectsWithProperty, query, read, read, read, read, remove, size, supportsSetOperations, supportsTransactions, union, write, write, write
 
Methods inherited from interface com.hp.hpl.mesa.rdf.jena.model.ModelCon
add, add, add, add, add, add, add, add, add, add, add, contains, contains, contains, contains, contains, contains, contains, contains, createAlt, createAlt, createBag, createBag, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createProperty, createResource, createResource, createResource, createResource, createSeq, createSeq, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, getAlt, getAlt, getBag, getBag, getProperty, getResource, getSeq, getSeq, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, remove, remove
 
Methods inherited from interface com.hp.hpl.mesa.rdf.jena.model.RDFReaderF
getReader, getReader, setReaderClassName
 
Methods inherited from interface com.hp.hpl.mesa.rdf.jena.model.RDFWriterF
getWriter, getWriter, setWriterClassName
 

Method Detail

add

public com.hp.hpl.mesa.rdf.jena.model.Model add(com.hp.hpl.mesa.rdf.jena.model.Model m,
                                                Source source)
                                         throws com.hp.hpl.mesa.rdf.jena.model.RDFException
Add all the statements from another model to this model and associate them with a source.

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

add

public com.hp.hpl.mesa.rdf.jena.model.Model add(SourceModel m)
                                         throws com.hp.hpl.mesa.rdf.jena.model.RDFException
Add all the statements from a SourceModel to this model. The Sources remain the same.

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

add

public com.hp.hpl.mesa.rdf.jena.model.Model add(com.hp.hpl.mesa.rdf.jena.model.Statement s,
                                                Source source)
                                         throws com.hp.hpl.mesa.rdf.jena.model.RDFException
Add a statement to this model and associate it with a source.

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

add

public com.hp.hpl.mesa.rdf.jena.model.Model add(com.hp.hpl.mesa.rdf.jena.model.StmtIterator iter,
                                                Source source)
                                         throws com.hp.hpl.mesa.rdf.jena.model.RDFException
Add all the statements in an interator to this model and associate them with a source.

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

listSources

public java.util.Iterator listSources()
                               throws com.hp.hpl.mesa.rdf.jena.model.RDFException
List all sources with statements in the model.

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

listStatementsOfSource

public com.hp.hpl.mesa.rdf.jena.model.StmtIterator listStatementsOfSource(Source source)
Return a statement iterator over all the statements associated with a source.


getModelForSource

public com.hp.hpl.mesa.rdf.jena.model.Model getModelForSource(Source source)
                                                       throws com.hp.hpl.mesa.rdf.jena.model.RDFException
Return a new model that contains all the statements associated with a source.

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

getSource

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


setSource

public com.hp.hpl.mesa.rdf.jena.model.Model setSource(com.hp.hpl.mesa.rdf.jena.model.Statement s,
                                                      Source source)
Change the source that is associated with a statement.


setSource

public com.hp.hpl.mesa.rdf.jena.model.Model setSource(com.hp.hpl.mesa.rdf.jena.model.StmtIterator iter,
                                                      Source source)
                                               throws com.hp.hpl.mesa.rdf.jena.model.RDFException
Change the source associated with each of the statements in the iterator.

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

write

public com.hp.hpl.mesa.rdf.jena.model.Model write(java.io.Writer writer,
                                                  Source source)
                                           throws com.hp.hpl.mesa.rdf.jena.model.RDFException
Write out to a file just the statements associated with a source. The source information is not stored with the statements in the output.

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

write

public com.hp.hpl.mesa.rdf.jena.model.Model write(java.io.Writer writer,
                                                  java.lang.String lang,
                                                  Source source)
                                           throws com.hp.hpl.mesa.rdf.jena.model.RDFException
Write out to a file just the statements associated with a source. The source information is not stored with the statements in the output.

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

write

public com.hp.hpl.mesa.rdf.jena.model.Model write(java.io.Writer writer,
                                                  java.lang.String lang,
                                                  java.lang.String base,
                                                  Source source)
                                           throws com.hp.hpl.mesa.rdf.jena.model.RDFException
Write out to a file just the statements associated with a source. The source information is not stored with the statements in the output.

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

read

public com.hp.hpl.mesa.rdf.jena.model.Model read(java.io.Reader reader,
                                                 java.lang.String base,
                                                 java.lang.String lang,
                                                 Source source)
                                          throws com.hp.hpl.mesa.rdf.jena.model.RDFException
Read a source file into the model and assign the new statments to a source.

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

read

public com.hp.hpl.mesa.rdf.jena.model.Model read(java.io.Reader reader,
                                                 java.lang.String base,
                                                 Source source)
                                          throws com.hp.hpl.mesa.rdf.jena.model.RDFException
Read a source file into the model and assign the new statments to a source.

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

setDefaultSource

public Source setDefaultSource(Source source)
Set the default source for any new statements that are added to the model.


getDefaultSource

public Source getDefaultSource()
Get the default source that will be assigned to any new statements added to the model.


createSource

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