|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.hp.hpl.mesa.rdf.jena.common.StoreCom | +--org.daml.rdf.jena.mem.StoreMem | +--org.daml.rdf.jena.mem.SourceStoreMem
Implementation of a memory based triple store that keeps track of the source for each statement.
Nested Class Summary | |
protected class |
SourceStoreMem.SourceMap
|
Nested classes inherited from class org.daml.rdf.jena.mem.StoreMem |
StoreMem.NodeMap |
Constructor Summary | |
SourceStoreMem()
|
|
SourceStoreMem(Source source)
|
Method Summary | |
void |
add(com.hp.hpl.mesa.rdf.jena.model.Statement s)
|
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 |
remove(com.hp.hpl.mesa.rdf.jena.model.Statement s)
|
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 class org.daml.rdf.jena.mem.StoreMem |
contains, contains, getProperty, getResource, list, list, listByObject, listByPredicate, listBySubject, listNameSpaces, listSubjects, size |
Methods inherited from class com.hp.hpl.mesa.rdf.jena.common.StoreCom |
close, createAlt, createAlt, createBag, createBag, createProperty, createProperty, createResource, createResource, createSeq, createSeq, createStatement, getAlt, getAlt, getBag, getBag, getProperty, getProperty, getSeq, getSeq, getStatement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.hp.hpl.mesa.rdf.jena.common.Store |
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, size |
Constructor Detail |
public SourceStoreMem(Source source)
public SourceStoreMem()
Method Detail |
public void add(com.hp.hpl.mesa.rdf.jena.model.Statement s, Source source) throws com.hp.hpl.mesa.rdf.jena.model.RDFException
add
in interface SourceStore
com.hp.hpl.mesa.rdf.jena.model.RDFException
public java.util.Iterator listBySource(Source source)
listBySource
in interface SourceStore
public Source getSource(com.hp.hpl.mesa.rdf.jena.model.Statement s)
getSource
in interface SourceStore
public java.util.Iterator listSources()
listSources
in interface SourceStore
public void setDefaultSource(Source source)
setDefaultSource
in interface SourceStore
public Source getDefaultSource()
getDefaultSource
in interface SourceStore
public void setSource(com.hp.hpl.mesa.rdf.jena.model.Statement s, Source source)
setSource
in interface SourceStore
public Source createSource(java.lang.String uri)
createSource
in interface SourceStore
public void add(com.hp.hpl.mesa.rdf.jena.model.Statement s) throws com.hp.hpl.mesa.rdf.jena.model.RDFException
add
in interface com.hp.hpl.mesa.rdf.jena.common.Store
add
in class StoreMem
com.hp.hpl.mesa.rdf.jena.model.RDFException
public void remove(com.hp.hpl.mesa.rdf.jena.model.Statement s) throws com.hp.hpl.mesa.rdf.jena.model.RDFException
remove
in interface com.hp.hpl.mesa.rdf.jena.common.Store
remove
in class StoreMem
com.hp.hpl.mesa.rdf.jena.model.RDFException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |