org.openrdf.repository.loader
Class LoaderRepository

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

public class LoaderRepository
extends RepositoryWrapper

This repository monitors external datasets and loads then into a context in the repository.

Author:
James Leigh

Constructor Summary
LoaderRepository()
           
LoaderRepository(Repository delegate)
           
 
Method Summary
 void clearLoadedContexts()
           
 RepositoryConnection getConnection()
           
 void loadContext(URL dataset, URI context)
           
 void loadResources(String path)
           
 void setClassLoader(ClassLoader cl)
           
 void shutDown()
           
 
Methods inherited from class org.openrdf.repository.base.RepositoryWrapper
getDataDir, getDelegate, getValueFactory, initialize, isWritable, setDataDir, setDelegate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoaderRepository

public LoaderRepository()

LoaderRepository

public LoaderRepository(Repository delegate)
Method Detail

setClassLoader

public void setClassLoader(ClassLoader cl)

loadResources

public void loadResources(String path)
                   throws IOException,
                          RepositoryException,
                          RDFParseException
Throws:
IOException
RepositoryException
RDFParseException

loadContext

public void loadContext(URL dataset,
                        URI context)
                 throws IOException,
                        RepositoryException,
                        RDFParseException
Throws:
IOException
RepositoryException
RDFParseException

getConnection

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

shutDown

public void shutDown()
              throws RepositoryException
Specified by:
shutDown in interface Repository
Overrides:
shutDown in class RepositoryWrapper
Throws:
RepositoryException

clearLoadedContexts

public void clearLoadedContexts()
                         throws RepositoryException
Throws:
RepositoryException


Copyright © 2004-2008 Aduna. All Rights Reserved.