org.openanzo.server.repository.graph
Class StatementSubGraph
java.lang.Object
org.openanzo.server.repository.querybuilder.RdbGraph
org.openanzo.server.repository.graph.StatementSubGraph
public class StatementSubGraph
- extends RdbGraph
Provides read access to statements in the repository and their provenance data as a graph of RDF statements and provides
write access through the UpdatableGraph interface.
- Author:
- Joe Betz, Matthew Roy ( mroy@cambridgesemantics.com )
|
Method Summary |
static java.lang.Iterable<Quad> |
findQuads(RepositoryConnection repositoryConnection,
org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj,
java.lang.Long namedGraphId,
boolean includeInferredStatements,
java.lang.Long lastTransactionTime)
Find the quads that match the provided statement pattern |
static java.lang.Iterable<Quad> |
findQuadsNoAuth(RepositoryConnection repositoryConnection,
boolean includeInferredStatements,
org.openrdf.model.Statement statement,
java.lang.Long lastTransactionTime)
Find the quads that match the provided statement pattern |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatementSubGraph
public StatementSubGraph()
findQuads
public static java.lang.Iterable<Quad> findQuads(RepositoryConnection repositoryConnection,
org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj,
java.lang.Long namedGraphId,
boolean includeInferredStatements,
java.lang.Long lastTransactionTime)
throws AnzoException,
java.sql.SQLException
- Find the quads that match the provided statement pattern
- Parameters:
repositoryConnection - connection to databasesubj - subject of statement, or wildcard if nullprop - property of statement, or wildcard if nullobj - object of statement, or wildcard if nullnamedGraphId - ID for statement's namedgraph, or wildcard if nullincludeInferredStatements - include inferred triples in search resultslastTransactionTime - timestamp to use in queries
- Returns:
- quads that match the provided statement pattern
- Throws:
java.sql.SQLException
AnzoException
findQuadsNoAuth
public static java.lang.Iterable<Quad> findQuadsNoAuth(RepositoryConnection repositoryConnection,
boolean includeInferredStatements,
org.openrdf.model.Statement statement,
java.lang.Long lastTransactionTime)
throws AnzoException,
java.sql.SQLException
- Find the quads that match the provided statement pattern
- Parameters:
repositoryConnection - connection to databaseincludeInferredStatements - include inferred triples in search results*statement - statement pattern to matchlastTransactionTime - timestamp to use in queries
- Returns:
- quads that match the provided statement pattern
- Throws:
java.sql.SQLException
AnzoException
Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.