org.openrdf.repository.sparql
Class SPARQLRepository

java.lang.Object
  extended by org.openrdf.repository.sparql.SPARQLRepository
All Implemented Interfaces:
Repository

public class SPARQLRepository
extends Object
implements Repository

Implement the Repository interface to any SPARQl endpoint.

Author:
James Leigh

Constructor Summary
SPARQLRepository(String url)
           
 
Method Summary
 RepositoryConnection getConnection()
           
 File getDataDir()
           
 ValueFactory getValueFactory()
           
 void initialize()
           
 boolean isWritable()
           
 void setDataDir(File dataDir)
           
 void setSubjectSpaces(Set<String> subjects)
           
 void shutDown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPARQLRepository

public SPARQLRepository(String url)
Method Detail

setSubjectSpaces

public void setSubjectSpaces(Set<String> subjects)

getConnection

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

getDataDir

public File getDataDir()
Specified by:
getDataDir in interface Repository

getValueFactory

public ValueFactory getValueFactory()
Specified by:
getValueFactory in interface Repository

initialize

public void initialize()
                throws RepositoryException
Specified by:
initialize in interface Repository
Throws:
RepositoryException

isWritable

public boolean isWritable()
                   throws RepositoryException
Specified by:
isWritable in interface Repository
Throws:
RepositoryException

setDataDir

public void setDataDir(File dataDir)
Specified by:
setDataDir in interface Repository

shutDown

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


Copyright © 2004-2009 James Leigh Services Inc.. All Rights Reserved.