org.openrdf.repository.augur
Class AugurRepository

java.lang.Object
  extended by org.openrdf.repository.base.RepositoryWrapper
      extended by org.openrdf.repository.augur.AugurRepository
All Implemented Interfaces:
DelegatingRepository, Repository

public class AugurRepository
extends RepositoryWrapper

Wraps a Repository reducing traffic to the underlying repository for some requests. AugurRepository tags Resources leaving the Repository with the query that was used to retrieve it. When one of these resources is used as a binding to a new query it expands the new query to pro-actively retrieve the results for other resources with the same tag. This technique can change repository hits from O(n^m) into O(m) without changing how the data is accessed from the repository.

Author:
James Leigh

Constructor Summary
AugurRepository()
           
AugurRepository(Repository repository)
           
 
Method Summary
 RepositoryConnection getConnection()
           
 
Methods inherited from class org.openrdf.repository.base.RepositoryWrapper
getDataDir, getDelegate, getValueFactory, initialize, isWritable, setDataDir, setDelegate, shutDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AugurRepository

public AugurRepository()

AugurRepository

public AugurRepository(Repository repository)
Method Detail

getConnection

public RepositoryConnection getConnection()
                                   throws RepositoryException
Specified by:
getConnection in interface Repository
Overrides:
getConnection in class RepositoryWrapper
Throws:
RepositoryException


Copyright © 2004-2008 Aduna. All Rights Reserved.