|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.hp.hpl.mesa.rdf.jena.common.ModelCom | +--com.hp.hpl.mesa.rdf.jena.mem.ModelMem
A main memory implemention of the RDF API.
This implementation of the RDF API stores its all its data in main memory. It supports all methods except the transaction calls.
This is a prototype implementation, and should be considered to be alpha quality code. It has not yet been performance optimised and is known to be wasteful of memory. It has been tested by loading the wordnet database (see Sample3) which results in a model containing over 600,000 statements.
Constructor Summary | |
ModelMem()
Create an empty model. |
Method Summary | |
Model |
difference(Model model)
Create a new model containing all the statements in this model which are not in another. |
Model |
intersection(Model model)
Create a new model containing all the statements which are in both this model and another. |
Model |
query(Selector selector)
Create a new model containing the statements matching a query. |
boolean |
supportsSetOperations()
Determine whether this model supports set operations. |
boolean |
supportsTransactions()
Determine whether this model supports transactions. |
Model |
union(Model model)
Create a new model containing all the statements in this model together with all of those in another given model. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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, equals, getProperty, getProperty, getResource, independent, isReified, listNameSpaces, listObjects, listObjectsOfProperty, listObjectsOfProperty, listReifiedStatements, listStatements, listStatements, listSubjects, listSubjectsWithProperty, listSubjectsWithProperty, read, read, read, read, remove, size, 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 |
Methods inherited from interface com.hp.hpl.mesa.rdf.jena.common.ModelI |
containerContains, containerIndexOf, containerSize, convert, convert, convert, listContainerMembers |
Constructor Detail |
public ModelMem()
Method Detail |
public boolean supportsTransactions()
Model
supportsTransactions
in interface Model
com.hp.hpl.mesa.rdf.jena.model.Model
public boolean supportsSetOperations()
Model
supportsSetOperations
in interface Model
com.hp.hpl.mesa.rdf.jena.model.Model
public Model query(Selector selector) throws RDFException
Model
A statment is considered to match if the test
method
of s returns true when called on s.
query
in interface Model
com.hp.hpl.mesa.rdf.jena.model.Model
s
- A selector object.RDFException
- Generic RDF exception.public Model union(Model model) throws RDFException
Model
union
in interface Model
com.hp.hpl.mesa.rdf.jena.model.Model
model
- The other model whose statements are to be included.RDFException
- Generic RDF Exceptionpublic Model intersection(Model model) throws RDFException
Model
intersection
in interface Model
com.hp.hpl.mesa.rdf.jena.model.Model
model
- The other model.RDFException
- Generic RDF Exceptionpublic Model difference(Model model) throws RDFException
Model
difference
in interface Model
com.hp.hpl.mesa.rdf.jena.model.Model
model
- the other model whose statements are to be excluded.RDFException
- Generic RDF Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |