net.fortytwo.linkeddata.sail
Class LinkedDataSailConnection

java.lang.Object
  extended by net.fortytwo.linkeddata.sail.LinkedDataSailConnection
All Implemented Interfaces:
org.openrdf.sail.NotifyingSailConnection, org.openrdf.sail.SailConnection

public class LinkedDataSailConnection
extends Object
implements org.openrdf.sail.NotifyingSailConnection

A connection to a LinkedDataSail

Author:
Joshua Shinavier (http://fortytwo.net)

Method Summary
 void addConnectionListener(org.openrdf.sail.SailConnectionListener listener)
           
 void addStatement(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, org.openrdf.model.Resource... contexts)
           
 void clear(org.openrdf.model.Resource... contexts)
           
 void clearNamespaces()
           
 void close()
           
 void commit()
           
 info.aduna.iteration.CloseableIteration<? extends org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException> evaluate(org.openrdf.query.algebra.TupleExpr tupleExpr, org.openrdf.query.Dataset dataset, org.openrdf.query.BindingSet bindings, boolean includeInferred)
           
 void executeUpdate(org.openrdf.query.algebra.UpdateExpr updateExpr, org.openrdf.query.Dataset dataset, org.openrdf.query.BindingSet bindingSet, boolean b)
           
 info.aduna.iteration.CloseableIteration<? extends org.openrdf.model.Resource,org.openrdf.sail.SailException> getContextIDs()
           
 String getNamespace(String prefix)
           
 info.aduna.iteration.CloseableIteration<? extends org.openrdf.model.Namespace,org.openrdf.sail.SailException> getNamespaces()
           
 info.aduna.iteration.CloseableIteration<? extends org.openrdf.model.Statement,org.openrdf.sail.SailException> getStatements(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, boolean includeInferred, org.openrdf.model.Resource... contexts)
           
 boolean isOpen()
           
 void removeConnectionListener(org.openrdf.sail.SailConnectionListener listener)
           
 void removeNamespace(String prefix)
           
 void removeStatements(org.openrdf.model.Resource subj, org.openrdf.model.URI pred, org.openrdf.model.Value obj, org.openrdf.model.Resource... context)
           
 void rollback()
           
 void setNamespace(String prefix, String name)
           
 long size(org.openrdf.model.Resource... contexts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addConnectionListener

public void addConnectionListener(org.openrdf.sail.SailConnectionListener listener)
Specified by:
addConnectionListener in interface org.openrdf.sail.NotifyingSailConnection

addStatement

public void addStatement(org.openrdf.model.Resource subj,
                         org.openrdf.model.URI pred,
                         org.openrdf.model.Value obj,
                         org.openrdf.model.Resource... contexts)
                  throws org.openrdf.sail.SailException
Specified by:
addStatement in interface org.openrdf.sail.SailConnection
Throws:
org.openrdf.sail.SailException

clear

public void clear(org.openrdf.model.Resource... contexts)
           throws org.openrdf.sail.SailException
Specified by:
clear in interface org.openrdf.sail.SailConnection
Throws:
org.openrdf.sail.SailException

clearNamespaces

public void clearNamespaces()
                     throws org.openrdf.sail.SailException
Specified by:
clearNamespaces in interface org.openrdf.sail.SailConnection
Throws:
org.openrdf.sail.SailException

close

public void close()
           throws org.openrdf.sail.SailException
Specified by:
close in interface org.openrdf.sail.SailConnection
Throws:
org.openrdf.sail.SailException

commit

public void commit()
            throws org.openrdf.sail.SailException
Specified by:
commit in interface org.openrdf.sail.SailConnection
Throws:
org.openrdf.sail.SailException

evaluate

public info.aduna.iteration.CloseableIteration<? extends org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException> evaluate(org.openrdf.query.algebra.TupleExpr tupleExpr,
                                                                                                                                           org.openrdf.query.Dataset dataset,
                                                                                                                                           org.openrdf.query.BindingSet bindings,
                                                                                                                                           boolean includeInferred)
                                                                                                                                    throws org.openrdf.sail.SailException
Specified by:
evaluate in interface org.openrdf.sail.SailConnection
Throws:
org.openrdf.sail.SailException

executeUpdate

public void executeUpdate(org.openrdf.query.algebra.UpdateExpr updateExpr,
                          org.openrdf.query.Dataset dataset,
                          org.openrdf.query.BindingSet bindingSet,
                          boolean b)
                   throws org.openrdf.sail.SailException
Specified by:
executeUpdate in interface org.openrdf.sail.SailConnection
Throws:
org.openrdf.sail.SailException

getContextIDs

public info.aduna.iteration.CloseableIteration<? extends org.openrdf.model.Resource,org.openrdf.sail.SailException> getContextIDs()
                                                                                                                           throws org.openrdf.sail.SailException
Specified by:
getContextIDs in interface org.openrdf.sail.SailConnection
Throws:
org.openrdf.sail.SailException

getNamespace

public String getNamespace(String prefix)
                    throws org.openrdf.sail.SailException
Specified by:
getNamespace in interface org.openrdf.sail.SailConnection
Throws:
org.openrdf.sail.SailException

getNamespaces

public info.aduna.iteration.CloseableIteration<? extends org.openrdf.model.Namespace,org.openrdf.sail.SailException> getNamespaces()
                                                                                                                            throws org.openrdf.sail.SailException
Specified by:
getNamespaces in interface org.openrdf.sail.SailConnection
Throws:
org.openrdf.sail.SailException

getStatements

public info.aduna.iteration.CloseableIteration<? extends org.openrdf.model.Statement,org.openrdf.sail.SailException> getStatements(org.openrdf.model.Resource subj,
                                                                                                                                   org.openrdf.model.URI pred,
                                                                                                                                   org.openrdf.model.Value obj,
                                                                                                                                   boolean includeInferred,
                                                                                                                                   org.openrdf.model.Resource... contexts)
                                                                                                                            throws org.openrdf.sail.SailException
Specified by:
getStatements in interface org.openrdf.sail.SailConnection
Throws:
org.openrdf.sail.SailException

isOpen

public boolean isOpen()
               throws org.openrdf.sail.SailException
Specified by:
isOpen in interface org.openrdf.sail.SailConnection
Throws:
org.openrdf.sail.SailException

removeConnectionListener

public void removeConnectionListener(org.openrdf.sail.SailConnectionListener listener)
Specified by:
removeConnectionListener in interface org.openrdf.sail.NotifyingSailConnection

removeNamespace

public void removeNamespace(String prefix)
                     throws org.openrdf.sail.SailException
Specified by:
removeNamespace in interface org.openrdf.sail.SailConnection
Throws:
org.openrdf.sail.SailException

removeStatements

public void removeStatements(org.openrdf.model.Resource subj,
                             org.openrdf.model.URI pred,
                             org.openrdf.model.Value obj,
                             org.openrdf.model.Resource... context)
                      throws org.openrdf.sail.SailException
Specified by:
removeStatements in interface org.openrdf.sail.SailConnection
Throws:
org.openrdf.sail.SailException

rollback

public void rollback()
              throws org.openrdf.sail.SailException
Specified by:
rollback in interface org.openrdf.sail.SailConnection
Throws:
org.openrdf.sail.SailException

setNamespace

public void setNamespace(String prefix,
                         String name)
                  throws org.openrdf.sail.SailException
Specified by:
setNamespace in interface org.openrdf.sail.SailConnection
Throws:
org.openrdf.sail.SailException

size

public long size(org.openrdf.model.Resource... contexts)
          throws org.openrdf.sail.SailException
Specified by:
size in interface org.openrdf.sail.SailConnection
Throws:
org.openrdf.sail.SailException


Copyright © 2007-2013. All Rights Reserved.