public interface Model extends ModelValueFactory, ModelAddRemove, ModelRemovePatterns, QueryableModel, ModelIO, Commitable, ReificationSupport, NamespaceSupport
Modifier and Type | Method and Description |
---|---|
void |
addModel(Model model)
Adds a complete
Model to this Model. |
void |
close()
Close connection to defined, underlying implementation.
|
void |
dump()
Dumps the whole content of the model via System.out
|
URI |
getContextURI() |
Object |
getProperty(URI propertyURI) |
Object |
getUnderlyingModelImplementation() |
boolean |
isEmpty() |
boolean |
isIsomorphicWith(Model other)
Two models can be equal even if they do not contain the same statements.
|
boolean |
isOpen() |
Model |
open()
Open connection to defined, underlying implementation
|
void |
setProperty(URI propertyURI,
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.
|
createBlankNode, createBlankNode, createDatatypeLiteral, createLanguageTagLiteral, createPlainLiteral, createStatement, createURI, isValidURI, newRandomUniqueURI
removeStatements, removeStatements
getDiff, removeAll, removeAll, removeStatement, removeStatement, removeStatement, removeStatement, removeStatement, removeStatement, removeStatement, removeStatement, update
iterator
forEach, spliterator
addAll, addStatement, addStatement, addStatement, addStatement, addStatement, addStatement, addStatement, addStatement
queryConstruct, querySelect, sparqlAsk, sparqlConstruct, sparqlDescribe, sparqlSelect
contains, contains, contains, countStatements, createTriplePattern, findStatements, findStatements
readFrom, readFrom, readFrom, readFrom, readFrom, readFrom, serialize, writeTo, writeTo, writeTo, writeTo
commit, setAutocommit
addReificationOf, addReificationOf, deleteReification, getAllReificationsOf, hasReifications
getNamespace, getNamespaces, removeNamespace, setNamespace
URI getContextURI()
Model open()
void close()
boolean isOpen()
long size() throws ModelRuntimeException
ModelRuntimeException
boolean 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
occursObject getUnderlyingModelImplementation()
void setProperty(URI propertyURI, Object value)
propertyURI
- value
- Object getProperty(URI propertyURI)
propertyURI
- void dump()
boolean isIsomorphicWith(Model other)
other
- Copyright © 2005–2019 IT-Consulting Dr. Max Völkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.