| java.lang.Object org.ontoware.rdf2go.model.impl.AbstractModelWriter org.ontoware.rdf2go.model.impl.AbstractModelAddRemove org.ontoware.rdf2go.model.impl.AbstractModelRemovePatterns org.ontoware.rdf2go.model.impl.AbstractModel
All known Subclasses: org.ontoware.rdf2go.model.impl.AbstractLockingModel, org.ontoware.rdf2go.impl.jena24.ModelImplJena24, org.ontoware.rdf2go.model.impl.DirtyAbstractModel, org.ontoware.rdf2go.model.impl.DelegatingModel,
AbstractModel | abstract public class AbstractModel extends AbstractModelRemovePatterns implements Model(Code) | | adapter that maps the rdf2go model functions to a smaller subset of methods
author: mvo |
Field Summary | |
protected Object | model The underlying implementation. |
Method Summary | |
public void | addAll(Iterator<? extends Statement> other) | public void | addStatement(Resource subject, URI predicate, String literal) | public void | addStatement(Resource subject, URI predicate, String literal, String languageTag) | public void | addStatement(Resource subject, URI predicate, String literal, URI datatypeURI) | public void | addStatement(Statement statement) | public void | addStatement(String subjectURIString, URI predicate, String literal) | public void | addStatement(String subjectURIString, URI predicate, String literal, String languageTag) | public void | addStatement(String subjectURIString, URI predicate, String literal, URI datatypeURI) | protected void | assertModel() This method checks if the model is properly initialized and i.e. | public void | close() | public void | commit() | public boolean | contains(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object) Convenience method. | public boolean | contains(ResourceOrVariable subject, UriOrVariable predicate, String plainLiteral) Convenience method. | public boolean | contains(Statement s) Convenience method. | public long | countStatements(TriplePattern pattern) Very inefficient. | public DatatypeLiteral | createDatatypeLiteral(String literal, URI datatypeURI) | public LanguageTagLiteral | createLanguageTagLiteral(String literal, String languageTag) | public PlainLiteral | createPlainLiteral(String literal) | public BlankNode | createReficationOf(Statement statement) | public Resource | createReficationOf(Statement statement, Resource resource) | public Statement | createStatement(Resource subject, URI predicate, Node object) | public TriplePattern | createTriplePattern(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object) | public URI | createURI(String uriString) | public void | deleteReification(Resource reificationResource) | public ClosableIterator<Statement> | findStatements(TriplePattern triplepattern) Convenience method. | public Collection<Resource> | getAllReificationsOf(Statement statement) | public Diff | getDiff(Iterator<? extends Statement> other) Computes a Diff by using HashSets. | public Object | getProperty(URI propertyURI) | public Object | getUnderlyingModelImplementation() | public boolean | hasReifications(Statement statement) | public boolean | isEmpty() | public boolean | isOpen() | public URI | newRandomUniqueURI() | public void | open() Open connection to defined, unterlying implementation. | public ClosableIterable<Statement> | queryConstruct(String query, String querylanguage) | public QueryResultTable | querySelect(String query, String querylanguage) | public void | readFrom(InputStream in, Syntax syntax) Throws an exception if the syntax is not RDF/XML. | public void | readFrom(InputStream in, Syntax syntax, URL baseURI) Throws an exception if the syntax is not RDF/XML. | public void | readFrom(Reader reader, Syntax syntax, URL baseURI) Throws an exception if the syntax is not RDF/XML. | public void | removeAll() | public void | removeAll(Iterator<? extends Statement> statements) | public void | removeStatement(Resource subject, URI predicate, String literal) | public void | removeStatement(Resource subject, URI predicate, String literal, String languageTag) | public void | removeStatement(Resource subject, URI predicate, String literal, URI datatypeURI) | public void | removeStatement(Statement statement) | public void | removeStatement(String subjectURIString, URI predicate, String literal) | public void | removeStatement(String subjectURIString, URI predicate, String literal, String languageTag) | public void | removeStatement(String subjectURIString, URI predicate, String literal, URI datatypeURI) | public void | removeStatements(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object) | public void | removeStatements(TriplePattern triplePattern) | public String | serialize(Syntax syntax) Convenience method. | public void | setAutocommit(boolean autocommit) | public void | setProperty(URI propertyURI, Object value) Add an arbitrary property, this will not be persisted and is only
available at runtime. | public long | size() This is a really slow implementation, please override. | public boolean | sparqlAsk(String query) | public synchronized void | update(DiffReader diff) Implementations with support for transactions should use them instead of
this implementation. | public void | writeTo(OutputStream out, Syntax syntax) |
model | protected Object model(Code) | | The underlying implementation.
|
assertModel | protected void assertModel()(Code) | | This method checks if the model is properly initialized and i.e. not
closed.
|
close | public void close()(Code) | | Close connection to defined, unterlying implementation
|
commit | public void commit()(Code) | | OVERWRITE ME
|
deleteReification | public void deleteReification(Resource reificationResource)(Code) | | |
getProperty | public Object getProperty(URI propertyURI)(Code) | | Note: This is a property of the model, not an RDF property
Parameters: propertyURI - stored property value for this model or null |
getUnderlyingModelImplementation | public Object getUnderlyingModelImplementation()(Code) | | |
isEmpty | public boolean isEmpty()(Code) | | sublcasses should override this method for performance
|
isOpen | public boolean isOpen()(Code) | | |
newRandomUniqueURI | public URI newRandomUniqueURI()(Code) | | |
open | public void open()(Code) | | Open connection to defined, unterlying implementation.
|
setAutocommit | public void setAutocommit(boolean autocommit)(Code) | | OVERWRITE ME
|
setProperty | public void setProperty(URI propertyURI, Object value)(Code) | | Add an arbitrary property, this will not be persisted and is only
available at runtime. This allows Model to serve as a central data model
in larger applications (like SemVersion.ontoware.org)
Parameters: propertyURI - Parameters: value - |
Methods inherited from org.ontoware.rdf2go.model.impl.AbstractModelAddRemove | abstract public void addStatement(Resource subject, URI predicate, Node object) throws ModelRuntimeException(Code)(Java Doc) public void removeAll(Iterator<? extends Statement> other) throws ModelRuntimeException(Code)(Java Doc) public void removeAll() throws ModelRuntimeException(Code)(Java Doc) public void removeStatement(String subjectURIString, URI predicate, String literal) throws ModelRuntimeException(Code)(Java Doc) public void removeStatement(String subjectURIString, URI predicate, String literal, String languageTag) throws ModelRuntimeException(Code)(Java Doc) public void removeStatement(String subjectURIString, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException(Code)(Java Doc) public void removeStatement(Resource subject, URI predicate, String literal) throws ModelRuntimeException(Code)(Java Doc) public void removeStatement(Resource subject, URI predicate, String literal, String languageTag) throws ModelRuntimeException(Code)(Java Doc) public void removeStatement(Resource subject, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException(Code)(Java Doc) public void removeStatement(Statement statement) throws ModelRuntimeException(Code)(Java Doc) abstract public void removeStatement(Resource subject, URI predicate, Node object) throws ModelRuntimeException(Code)(Java Doc) public void update(DiffReader diff) throws ModelRuntimeException(Code)(Java Doc) public void update(Diff diff) throws ModelRuntimeException(Code)(Java Doc)
|
Methods inherited from org.ontoware.rdf2go.model.impl.AbstractModelWriter | public void addAll(Iterator<? extends Statement> other) throws ModelRuntimeException(Code)(Java Doc) public void addStatement(Resource subject, URI predicate, String literal) throws ModelRuntimeException(Code)(Java Doc) public void addStatement(Resource subject, URI predicate, String literal, String languageTag) throws ModelRuntimeException(Code)(Java Doc) public void addStatement(Resource subject, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException(Code)(Java Doc) public void addStatement(String subjectURIString, URI predicate, String literal) throws ModelRuntimeException(Code)(Java Doc) public void addStatement(String subjectURIString, URI predicate, String literal, String languageTag) throws ModelRuntimeException(Code)(Java Doc) public void addStatement(String subjectURIString, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException(Code)(Java Doc) public void addStatement(Statement statement) throws ModelRuntimeException(Code)(Java Doc) abstract public void addStatement(Resource subject, URI predicate, Node object) throws ModelRuntimeException(Code)(Java Doc)
|
|
|