org.openanzo.server.repository.graph
Class RepositoryDataSet

java.lang.Object
  extended by org.openanzo.server.repository.graph.RepositoryDataSet

public class RepositoryDataSet
extends java.lang.Object

Dataset that exposes the visible NamedGraphs on the server. If a timestamp is set, all queries are limited to what contents of store were at the given timestamp.

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
RepositoryDataSet()
           
 
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, boolean includeInferredStatements, java.lang.Long lastTransactionTime, boolean metadataGraphs, boolean defaultGraphs)
          Find quads that match the provided statement pattern
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, boolean includeStandardData)
          Find the quads that match the provided statement pattern
static java.lang.Iterable<Quad> findQuads(RepositoryConnection repositoryConnection, org.openrdf.model.Resource subj, org.openrdf.model.URI prop, org.openrdf.model.Value obj, org.openrdf.model.Resource namedGraphUri, boolean includeInferredStatements, java.lang.Long lastTransactionTime, boolean includeStandardData)
          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
 

Constructor Detail

RepositoryDataSet

public RepositoryDataSet()
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,
                                                 org.openrdf.model.Resource namedGraphUri,
                                                 boolean includeInferredStatements,
                                                 java.lang.Long lastTransactionTime,
                                                 boolean includeStandardData)
                                          throws java.sql.SQLException,
                                                 AnzoException
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
namedGraphUri - namedgraph uri of statement, or wildcard if null
includeInferredStatements - include inferred triples in search results
lastTransactionTime - timestamp to use in queries
includeStandardData - include the System Graph's statements about itself, ie the System Graph's acl and metadata
Returns:
quads that match the provided statement pattern
Throws:
java.sql.SQLException
AnzoException

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,
                                                 boolean includeStandardData)
                                          throws java.sql.SQLException,
                                                 AnzoException
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
includeStandardData - include the System Graph's statements about itself, ie the System Graph's acl and metadata
Returns:
quads that match the provided statement pattern
Throws:
java.sql.SQLException
AnzoException

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,
                                                 boolean includeInferredStatements,
                                                 java.lang.Long lastTransactionTime,
                                                 boolean metadataGraphs,
                                                 boolean defaultGraphs)
                                          throws java.sql.SQLException,
                                                 AnzoException
Find 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
includeInferredStatements - include inferred triples in search results
lastTransactionTime - timestamp to use in queries
metadataGraphs - search for metadata graphs
defaultGraphs - search for graphs in the defaultGraph temporary table, or the namedGraph temporary table
Returns:
quads that match the provided statement pattern
Throws:
java.sql.SQLException
AnzoException


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.