|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IModelService
IModelService provides an endpoint that most Anzo model operations are run against.
| Method Summary | |
|---|---|
void |
addInferredObject(org.openrdf.model.URI prop,
org.openrdf.model.URI obj,
org.openrdf.model.URI inferredObj)
Add a mapping between a property/object pair, and the inferred property inferred object pair. |
void |
addInferredProperty(org.openrdf.model.URI prop,
org.openrdf.model.URI inferredProp)
Add a mapping between a property , and the inferred property. |
void |
close()
Close the ModelService |
QueryResult |
execQuery(java.util.Set<org.openrdf.model.URI> defaultNamedGraphs,
java.util.Set<org.openrdf.model.URI> namedGraphs,
java.lang.String query,
java.lang.String queryLanguage)
Deprecated. use IModelService.executeQuery, no language parameter required since Sparql is now the only language |
info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> |
execQueryIndex(java.lang.String query,
int offset,
int numResult)
ExecQueryIndex runs a query against the index on the server and returns the results in a graph. |
QueryResult |
executeQuery(java.util.Set<org.openrdf.model.URI> defaultNamedGraphs,
java.util.Set<org.openrdf.model.URI> namedGraphs,
java.lang.String query)
ExecuteQuery runs a SPARQL query on the server and returns the results in a QueryResult object. |
QueryResult |
executeQuery(java.util.Set<org.openrdf.model.URI> defaultNamedGraphs,
java.util.Set<org.openrdf.model.URI> namedGraphs,
java.lang.String query,
org.openrdf.model.URI base)
ExecuteQuery runs a SPARQL query on the server and returns the results in a QueryResult object. |
info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> |
findStatements(org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj,
org.openrdf.model.Resource context)
FindStatements returns an iterator of statements that match a Statement pattern and no inferred triples |
info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> |
findStatements(org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj,
org.openrdf.model.Resource context,
boolean includeInferedStatements)
FindStatements returns an iterator of statements that match a Statement pattern |
info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> |
findStatements(org.openrdf.model.Statement statement)
FindStatements returns an iterator of statements that match a Statement pattern and no inferred triples |
info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> |
findStatements(org.openrdf.model.Statement statement,
boolean includeInferedStatements)
FindStatements returns an iterator of statements that match a Statement pattern |
INamedGraphWithMetaData |
getCurrentNamedGraphRevision(org.openrdf.model.URI namedGraphUri)
GetNamedGraphRevision returns a INamedGraphWithMetaData for a specific NamedGraph at the current revision |
org.openrdf.model.URI |
getMetadataGraphUri(org.openrdf.model.URI namedGraphUri)
|
INamedGraphWithMetaData |
getNamedGraphRevision(org.openrdf.model.URI namedGraphUri,
long revision)
GetNamedGraphRevision returns a INamedGraphWithMetaData for a specific NamedGraph at a certain revision |
long |
getSize(org.openrdf.model.URI namedGraphUri)
|
java.util.Set<org.openrdf.model.URI> |
getStoredNamedGraphs()
|
void |
reset(java.util.Collection<org.openrdf.model.Statement> statements)
Reset is a utility method that resets all data on the Anzo Server and sets system graph to some data. |
IModelUpdate |
updateServer(ITransaction[] transactions,
boolean returnResults,
boolean isIndexSynchronous)
UpdateServer sends a set of transactions to the server to be processed. |
| Methods inherited from interface org.openanzo.services.IService |
|---|
getServicePassword, getServiceUser, setServicePassword, setServiceUser |
| Method Detail |
|---|
IModelUpdate updateServer(ITransaction[] transactions,
boolean returnResults,
boolean isIndexSynchronous)
throws AnzoException
transactions - Set of transactions to commit on the server.returnResults - Should operation return the additions and deletions within the IModelUpdate objectisIndexSynchronous - Should indexer run synchronously after committal of transactions.
AnzoException - if there was an error updating the server
void reset(java.util.Collection<org.openrdf.model.Statement> statements)
throws AnzoException
statements - Set of statements that should be added to server as initial system data
AnzoException - if there was an error reseting the server
QueryResult execQuery(java.util.Set<org.openrdf.model.URI> defaultNamedGraphs,
java.util.Set<org.openrdf.model.URI> namedGraphs,
java.lang.String query,
java.lang.String queryLanguage)
throws AnzoException
defaultNamedGraphs - URIS of NamedGraphs to union together as the defaultModel for the dataset the query is run againstnamedGraphs - URIS of NamedGraphs for the dataset the query is run againstquery - Query stringqueryLanguage - Language of query
AnzoException - if there was an error querying the server
QueryResult executeQuery(java.util.Set<org.openrdf.model.URI> defaultNamedGraphs,
java.util.Set<org.openrdf.model.URI> namedGraphs,
java.lang.String query)
throws AnzoException
defaultNamedGraphs - URIS of NamedGraphs to union together as the defaultModel for the dataset the query is run againstnamedGraphs - URIS of NamedGraphs for the dataset the query is run againstquery - Query string
AnzoException - if there was an error querying the server
QueryResult executeQuery(java.util.Set<org.openrdf.model.URI> defaultNamedGraphs,
java.util.Set<org.openrdf.model.URI> namedGraphs,
java.lang.String query,
org.openrdf.model.URI base)
throws AnzoException
defaultNamedGraphs - URIS of NamedGraphs to union together as the defaultModel for the dataset the query is run againstnamedGraphs - URIS of NamedGraphs for the dataset the query is run againstquery - Query stringbase - The base URI for resolving relative URIs in the SPARQL query.
AnzoException - if there was an error querying the server
info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> execQueryIndex(java.lang.String query,
int offset,
int numResult)
throws AnzoException
query - Query stringoffset - offset into the number of results to returnnumResult - number of results to return
AnzoException - if there was an error querying the indexer on the server
info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> findStatements(org.openrdf.model.Statement statement)
throws AnzoException
statement - statement to match
AnzoException - if there was an error finding statements on the server
info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> findStatements(org.openrdf.model.Statement statement,
boolean includeInferedStatements)
throws AnzoException
statement - statement to matchincludeInferedStatements - should inferred statements be included in find results
AnzoException - if there was an error finding statements on the server
info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> findStatements(org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj,
org.openrdf.model.Resource context)
throws AnzoException
subj - Subject resource to match, or wildcard if nullprop - Predicate uri to match, or wildcard if nullobj - Object value to match, or wildcard if nullcontext - Context values to match, or wildcard if null
AnzoException - if there was an error finding statements on the server
info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> findStatements(org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj,
org.openrdf.model.Resource context,
boolean includeInferedStatements)
throws AnzoException
subj - Subject resource to match, or wildcard if nullprop - Predicate uri to match, or wildcard if nullobj - Object value to match, or wildcard if nullcontext - Context values to match, or wildcard if nullincludeInferedStatements - should inferred statements be included in find results
AnzoException - if there was an error finding statements on the server
INamedGraphWithMetaData getNamedGraphRevision(org.openrdf.model.URI namedGraphUri,
long revision)
throws AnzoException
namedGraphUri - URI of NamedGraph to retrieverevision - Revision of NamedGraph to retrieve
AnzoException - if there was an error getting NamedGraph from server
INamedGraphWithMetaData getCurrentNamedGraphRevision(org.openrdf.model.URI namedGraphUri)
throws AnzoException
namedGraphUri - URI of NamedGraph to retrieve
AnzoException - if there was an error getting NamedGraph from server
long getSize(org.openrdf.model.URI namedGraphUri)
throws AnzoException
namedGraphUri - URI of NamedGraph
AnzoException - if there was an error getting size of NamedGraph from server
org.openrdf.model.URI getMetadataGraphUri(org.openrdf.model.URI namedGraphUri)
throws AnzoException
namedGraphUri - URI of NamedGraph
AnzoException - if there was an error getting NamedGraph's metadata URI from servervoid close()
java.util.Set<org.openrdf.model.URI> getStoredNamedGraphs()
throws AnzoException
AnzoException - if there was an error getting NamedGraph's authenticated client can read from server
void addInferredObject(org.openrdf.model.URI prop,
org.openrdf.model.URI obj,
org.openrdf.model.URI inferredObj)
throws AnzoException
prop - property with inferred objectobj - objectinferredObj - inferred object
AnzoException - if there was an error adding inferred object to server
void addInferredProperty(org.openrdf.model.URI prop,
org.openrdf.model.URI inferredProp)
throws AnzoException
prop - property that has an inferred propertyinferredProp - inferred property
AnzoException - if there was an error adding inferred property to server
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||