| org.ontoware.rdf2go.model.Model
All known Subclasses: org.ontoware.rdf2go.model.impl.AbstractLockingModel, org.ontoware.semversion.impl.BlankNodeEnrichmentModel, org.ontoware.semversion.impl.ReadOnlyModelLayer, org.ontoware.rdf2go.impl.jena24.ModelImplJena24, org.ontoware.rdf2go.model.impl.AbstractModel, org.ontoware.rdf2go.model.impl.DelegatingModel,
Method Summary | |
void | close() Close connection to defined, unterlying implementation. | void | dump() | URI | getContextURI() | Object | getProperty(URI propertyURI) | Object | getUnderlyingModelImplementation() the native implementation (e.g. | boolean | isEmpty() true if the model is empty, i.e. | boolean | isIsomorphicWith(Model other) Two models can be equal even if they do not contain the same statements.
We owe this problem mainly to blank nodes.
See http://www.w3.org/TR/2002/WD-rdf-concepts-20020829/#xtocid103648 for
the official definition of graph equality (which is based on graph
isomorphism). | boolean | isOpen() | void | open() | 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. |
close | void close()(Code) | | Close connection to defined, unterlying implementation. commit() is
called internally.
|
dump | void dump()(Code) | | Dumps the whole content of the model via System.out
|
getContextURI | URI getContextURI()(Code) | | the context URI or null |
getProperty | Object getProperty(URI propertyURI)(Code) | | Parameters: propertyURI - stored runtime property value or null |
getUnderlyingModelImplementation | Object getUnderlyingModelImplementation()(Code) | | the native implementation (e.g. a Jena Model). Using this methodbreaks strict triple store independence, but exposes the fullpower and reduces API dependence. This method is part ofthe main API. |
isEmpty | boolean isEmpty()(Code) | | true if the model is empty, i.e. contains no statements. This isthe same as size() == 0, but might be faster. |
isIsomorphicWith | boolean isIsomorphicWith(Model other)(Code) | | Two models can be equal even if they do not contain the same statements.
We owe this problem mainly to blank nodes.
See http://www.w3.org/TR/2002/WD-rdf-concepts-20020829/#xtocid103648 for
the official definition of graph equality (which is based on graph
isomorphism). See also http://www.w3.org/TR/rdf-mt/.
Parameters: other - true if the two models are isomorphic as defined inhttp://www.w3.org/TR/rdf-mt/ |
isOpen | boolean isOpen()(Code) | | true, if model has been opened and not yet closed. |
open | void open()(Code) | | Open connection to defined, unterlying implementation
|
setProperty | void setProperty(URI propertyURI, Object value)(Code) | | Add an arbitrary runtime 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 - |
size | long size() throws ModelRuntimeException(Code) | | For plain models without any inference, this is the exact number of
explicit statements.
For models with inference, this number may be anything between the number
of explicit statements up to the number of all inferrable statements plus
the number of explicit statements.
For both cases: If one new triple is added to the model, the size must
increase at least one.
the (imprecise?) number of statements in the model (see comment) throws: ModelRuntimeException - |
|
|