org.openanzo.server.repository.graph
Class StatementSubGraph

java.lang.Object
  extended by org.openanzo.server.repository.querybuilder.RdbGraph
      extended by 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 )

Constructor Summary
StatementSubGraph()
           
 
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 org.openanzo.server.repository.querybuilder.RdbGraph
addResourceGrounding, findQuads
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatementSubGraph

public StatementSubGraph()
Method Detail

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 database
subj - subject of statement, or wildcard if null
prop - property of statement, or wildcard if null
obj - object of statement, or wildcard if null
namedGraphId - ID for statement's namedgraph, or wildcard if null
includeInferredStatements - include inferred triples in search results
lastTransactionTime - 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 database
includeInferredStatements - include inferred triples in search results*
statement - statement pattern to match
lastTransactionTime - 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.