|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Model
Defines an RDF Model, and the functions to add and delete statements of all possible kinds to this model. Query functions are also provided. IMPROVE: add support for union, intersection
| Method Summary | |
|---|---|
void |
addModel(Model model)
Adds a complete Model to this Model. |
void |
close()
Close connection to defined, unterlying implementation. commit() is called internally. |
void |
dump()
Dumps the whole content of the model via System.out |
URI |
getContextURI()
|
java.lang.Object |
getProperty(URI propertyURI)
|
java.lang.Object |
getUnderlyingModelImplementation()
|
boolean |
isEmpty()
|
boolean |
isIsomorphicWith(Model other)
Two models can be equal even if they do not contain the same statements. |
boolean |
isOpen()
|
void |
open()
Open connection to defined, unterlying implementation |
void |
setProperty(URI propertyURI,
java.lang.Object value)
Add an arbitrary runtime property, this will not be persisted and is only available at runtime. |
long |
size()
For plain models without any inference, this is the exact number of explicit statements. |
| Methods inherited from interface org.ontoware.rdf2go.model.ModelValueFactory |
|---|
createBlankNode, createBlankNode, createDatatypeLiteral, createLanguageTagLiteral, createPlainLiteral, createStatement, createURI, isValidURI, newRandomUniqueURI |
| Methods inherited from interface org.ontoware.rdf2go.model.ModelRemovePatterns |
|---|
removeStatements, removeStatements |
| Methods inherited from interface org.ontoware.rdf2go.model.FindableModel |
|---|
contains, contains, contains, countStatements, createTriplePattern, findStatements, findStatements |
| Methods inherited from interface org.ontoware.rdf2go.model.Sparqlable |
|---|
queryConstruct, querySelect, sparqlAsk, sparqlConstruct, sparqlDescribe, sparqlSelect |
| Methods inherited from interface org.ontoware.rdf2go.model.FindableModel |
|---|
contains, contains, contains, countStatements, createTriplePattern, findStatements, findStatements |
| Methods inherited from interface org.ontoware.rdf2go.model.ModelIO |
|---|
readFrom, readFrom, readFrom, readFrom, readFrom, readFrom, serialize, writeTo, writeTo, writeTo, writeTo |
| Methods inherited from interface org.ontoware.rdf2go.model.Commitable |
|---|
commit, setAutocommit |
| Methods inherited from interface org.ontoware.rdf2go.model.ReificationSupport |
|---|
addReificationOf, addReificationOf, deleteReification, getAllReificationsOf, hasReifications |
| Methods inherited from interface org.ontoware.rdf2go.model.NamespaceSupport |
|---|
getNamespace, getNamespaces, removeNamespace, setNamespace |
| Method Detail |
|---|
URI getContextURI()
void open()
void close()
boolean isOpen()
long size()
throws ModelRuntimeException
ModelRuntimeExceptionboolean isEmpty()
void addModel(Model model)
throws ModelRuntimeException
Model to this Model.
The context URI of the other model is ignored, if present.
Note: this might be faster than addAll( model.iterator() );
model -
ModelRuntimeException - if any internal (I/O related) exception occursjava.lang.Object getUnderlyingModelImplementation()
void setProperty(URI propertyURI,
java.lang.Object value)
propertyURI - value - java.lang.Object getProperty(URI propertyURI)
propertyURI -
void dump()
boolean isIsomorphicWith(Model other)
other -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||