org.daml.rdf.jena.mem
Class StoreMem
java.lang.Object
|
+--com.hp.hpl.mesa.rdf.jena.common.StoreCom
|
+--org.daml.rdf.jena.mem.StoreMem
- All Implemented Interfaces:
- com.hp.hpl.mesa.rdf.jena.common.Store
- Direct Known Subclasses:
- DynamicStoreMem, SourceStoreMem
- public class StoreMem
- extends com.hp.hpl.mesa.rdf.jena.common.StoreCom
- implements com.hp.hpl.mesa.rdf.jena.common.Store
This is a direct copy of the StoreMem class from Jena 1.6.1, except the class is now public.
Constructor Summary |
StoreMem()
Creates new Store |
Method Summary |
void |
add(com.hp.hpl.mesa.rdf.jena.model.Statement s)
|
boolean |
contains(com.hp.hpl.mesa.rdf.jena.model.Resource s,
com.hp.hpl.mesa.rdf.jena.model.Property p)
|
boolean |
contains(com.hp.hpl.mesa.rdf.jena.model.Statement s)
|
com.hp.hpl.mesa.rdf.jena.model.Property |
getProperty(com.hp.hpl.mesa.rdf.jena.model.Property p)
|
com.hp.hpl.mesa.rdf.jena.model.Resource |
getResource(java.lang.String uri,
com.hp.hpl.mesa.rdf.jena.model.Model m)
|
java.util.Iterator |
list()
|
java.util.Iterator |
list(com.hp.hpl.mesa.rdf.jena.model.Resource subject,
com.hp.hpl.mesa.rdf.jena.model.Property predicate,
com.hp.hpl.mesa.rdf.jena.model.RDFNode object)
|
java.util.Iterator |
listByObject(com.hp.hpl.mesa.rdf.jena.model.RDFNode object)
|
java.util.Iterator |
listByPredicate(com.hp.hpl.mesa.rdf.jena.model.Property property)
|
java.util.Iterator |
listBySubject(com.hp.hpl.mesa.rdf.jena.model.Resource subject)
|
com.hp.hpl.mesa.rdf.jena.model.NsIterator |
listNameSpaces()
|
com.hp.hpl.mesa.rdf.jena.model.ResIterator |
listSubjects()
|
void |
remove(com.hp.hpl.mesa.rdf.jena.model.Statement s)
|
int |
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, createAlt, createAlt, createBag, createBag, createProperty, createProperty, createResource, createResource, createSeq, createSeq, createStatement, getAlt, getAlt, getBag, getBag, getProperty, getProperty, getSeq, getSeq, getStatement |
StoreMem
public StoreMem()
- Creates new Store
getResource
public com.hp.hpl.mesa.rdf.jena.model.Resource getResource(java.lang.String uri,
com.hp.hpl.mesa.rdf.jena.model.Model m)
throws com.hp.hpl.mesa.rdf.jena.model.RDFException
- Specified by:
getResource
in interface com.hp.hpl.mesa.rdf.jena.common.Store
- Overrides:
getResource
in class com.hp.hpl.mesa.rdf.jena.common.StoreCom
com.hp.hpl.mesa.rdf.jena.model.RDFException
getProperty
public com.hp.hpl.mesa.rdf.jena.model.Property getProperty(com.hp.hpl.mesa.rdf.jena.model.Property p)
- Specified by:
getProperty
in interface com.hp.hpl.mesa.rdf.jena.common.Store
- Overrides:
getProperty
in class com.hp.hpl.mesa.rdf.jena.common.StoreCom
add
public void add(com.hp.hpl.mesa.rdf.jena.model.Statement s)
throws com.hp.hpl.mesa.rdf.jena.model.RDFException
- Specified by:
add
in interface com.hp.hpl.mesa.rdf.jena.common.Store
- Specified by:
add
in class com.hp.hpl.mesa.rdf.jena.common.StoreCom
com.hp.hpl.mesa.rdf.jena.model.RDFException
remove
public void remove(com.hp.hpl.mesa.rdf.jena.model.Statement s)
throws com.hp.hpl.mesa.rdf.jena.model.RDFException
- Specified by:
remove
in interface com.hp.hpl.mesa.rdf.jena.common.Store
- Specified by:
remove
in class com.hp.hpl.mesa.rdf.jena.common.StoreCom
com.hp.hpl.mesa.rdf.jena.model.RDFException
size
public int size()
throws com.hp.hpl.mesa.rdf.jena.model.RDFException
- Specified by:
size
in interface com.hp.hpl.mesa.rdf.jena.common.Store
- Specified by:
size
in class com.hp.hpl.mesa.rdf.jena.common.StoreCom
com.hp.hpl.mesa.rdf.jena.model.RDFException
contains
public boolean contains(com.hp.hpl.mesa.rdf.jena.model.Statement s)
throws com.hp.hpl.mesa.rdf.jena.model.RDFException
- Specified by:
contains
in interface com.hp.hpl.mesa.rdf.jena.common.Store
- Specified by:
contains
in class com.hp.hpl.mesa.rdf.jena.common.StoreCom
com.hp.hpl.mesa.rdf.jena.model.RDFException
contains
public boolean contains(com.hp.hpl.mesa.rdf.jena.model.Resource s,
com.hp.hpl.mesa.rdf.jena.model.Property p)
throws com.hp.hpl.mesa.rdf.jena.model.RDFException
- Specified by:
contains
in interface com.hp.hpl.mesa.rdf.jena.common.Store
- Specified by:
contains
in class com.hp.hpl.mesa.rdf.jena.common.StoreCom
com.hp.hpl.mesa.rdf.jena.model.RDFException
list
public java.util.Iterator list()
throws com.hp.hpl.mesa.rdf.jena.model.RDFException
- Specified by:
list
in interface com.hp.hpl.mesa.rdf.jena.common.Store
- Specified by:
list
in class com.hp.hpl.mesa.rdf.jena.common.StoreCom
com.hp.hpl.mesa.rdf.jena.model.RDFException
list
public java.util.Iterator list(com.hp.hpl.mesa.rdf.jena.model.Resource subject,
com.hp.hpl.mesa.rdf.jena.model.Property predicate,
com.hp.hpl.mesa.rdf.jena.model.RDFNode object)
throws com.hp.hpl.mesa.rdf.jena.model.RDFException
- Specified by:
list
in interface com.hp.hpl.mesa.rdf.jena.common.Store
- Specified by:
list
in class com.hp.hpl.mesa.rdf.jena.common.StoreCom
com.hp.hpl.mesa.rdf.jena.model.RDFException
listBySubject
public java.util.Iterator listBySubject(com.hp.hpl.mesa.rdf.jena.model.Resource subject)
- Specified by:
listBySubject
in interface com.hp.hpl.mesa.rdf.jena.common.Store
- Specified by:
listBySubject
in class com.hp.hpl.mesa.rdf.jena.common.StoreCom
listByPredicate
public java.util.Iterator listByPredicate(com.hp.hpl.mesa.rdf.jena.model.Property property)
- Specified by:
listByPredicate
in interface com.hp.hpl.mesa.rdf.jena.common.Store
- Specified by:
listByPredicate
in class com.hp.hpl.mesa.rdf.jena.common.StoreCom
listByObject
public java.util.Iterator listByObject(com.hp.hpl.mesa.rdf.jena.model.RDFNode object)
- Specified by:
listByObject
in interface com.hp.hpl.mesa.rdf.jena.common.Store
- Specified by:
listByObject
in class com.hp.hpl.mesa.rdf.jena.common.StoreCom
listSubjects
public com.hp.hpl.mesa.rdf.jena.model.ResIterator listSubjects()
throws com.hp.hpl.mesa.rdf.jena.model.RDFException
- Specified by:
listSubjects
in interface com.hp.hpl.mesa.rdf.jena.common.Store
- Specified by:
listSubjects
in class com.hp.hpl.mesa.rdf.jena.common.StoreCom
com.hp.hpl.mesa.rdf.jena.model.RDFException
listNameSpaces
public com.hp.hpl.mesa.rdf.jena.model.NsIterator listNameSpaces()
throws com.hp.hpl.mesa.rdf.jena.model.RDFException
- Specified by:
listNameSpaces
in interface com.hp.hpl.mesa.rdf.jena.common.Store
- Specified by:
listNameSpaces
in class com.hp.hpl.mesa.rdf.jena.common.StoreCom
com.hp.hpl.mesa.rdf.jena.model.RDFException