org.openanzo.server.repository.querybuilder
Class RdbGraph

java.lang.Object
  extended by org.openanzo.server.repository.querybuilder.RdbGraph
Direct Known Subclasses:
StatementSubGraph

public class RdbGraph
extends java.lang.Object

Provides RDF graph access to data stored in a relational database. ResourceGroundings and PropertyGroundings define the mapping between RDF Statements and relational tables and columns. The LiteralGrounding class provides types to match with the types of the relational elements.

Author:
Joe Betz

Constructor Summary
RdbGraph(SubjectGrounding... groundings)
          Create a new RdbGraph with given SubjectGroundings
 
Method Summary
 void addResourceGrounding(SubjectGrounding resourceGrounding)
          Add a SubjectGrounding to this graph
 java.util.Collection<Quad> findQuads(RepositoryConnection repositoryConnection, org.openrdf.model.Resource subj, org.openrdf.model.URI prop, org.openrdf.model.Value obj, java.lang.Long graphId, boolean includeInferredStatements, java.util.Map<java.lang.String,java.lang.Object> variables)
          Find the quads in this graph that match the statement pattern
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RdbGraph

public RdbGraph(SubjectGrounding... groundings)
Create a new RdbGraph with given SubjectGroundings

Parameters:
groundings - Set of groundings for this graph
Method Detail

addResourceGrounding

public void addResourceGrounding(SubjectGrounding resourceGrounding)
Add a SubjectGrounding to this graph

Parameters:
resourceGrounding - SubjectGrounding to add

findQuads

public java.util.Collection<Quad> findQuads(RepositoryConnection repositoryConnection,
                                            org.openrdf.model.Resource subj,
                                            org.openrdf.model.URI prop,
                                            org.openrdf.model.Value obj,
                                            java.lang.Long graphId,
                                            boolean includeInferredStatements,
                                            java.util.Map<java.lang.String,java.lang.Object> variables)
                                     throws AnzoException
Find the quads in this graph that match the statement pattern

Parameters:
repositoryConnection - connection to the database
subj - subject to match, or wildcard if null
prop - property to match, or wildcard if null
obj - property to match,or wildcard if null
graphId - ID of namedgraph's URI
includeInferredStatements - include inferred statements
variables - map of variables and values that can be used in the queries
Returns:
quads in this graph that match the statement pattern
Throws:
AnzoException


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