org.openrdf.repository.sparql
Class ReadOnlyConnection
java.lang.Object
org.openrdf.repository.sparql.ConnectionBase
org.openrdf.repository.sparql.ReadOnlyConnection
- All Implemented Interfaces:
- RepositoryConnection
- Direct Known Subclasses:
- SPARQLConnection
public abstract class ReadOnlyConnection
- extends ConnectionBase
Throws UnsupportedOperationException for write operations.
- Author:
- James Leigh
|
Method Summary |
void |
add(File file,
String baseURI,
RDFFormat dataFormat,
Resource... contexts)
|
void |
add(InputStream in,
String baseURI,
RDFFormat dataFormat,
Resource... contexts)
|
void |
add(Iterable<? extends Statement> statements,
Resource... contexts)
|
|
add(Iteration<? extends Statement,E> statementIter,
Resource... contexts)
|
void |
add(Reader reader,
String baseURI,
RDFFormat dataFormat,
Resource... contexts)
|
void |
add(Resource subject,
URI predicate,
Value object,
Resource... contexts)
|
void |
add(Statement st,
Resource... contexts)
|
void |
add(URL url,
String baseURI,
RDFFormat dataFormat,
Resource... contexts)
|
void |
clear(Resource... contexts)
|
void |
clearNamespaces()
|
void |
commit()
|
boolean |
isAutoCommit()
|
void |
remove(Iterable<? extends Statement> statements,
Resource... contexts)
|
|
remove(Iteration<? extends Statement,E> statementIter,
Resource... contexts)
|
void |
remove(Resource subject,
URI predicate,
Value object,
Resource... contexts)
|
void |
remove(Statement st,
Resource... contexts)
|
void |
removeNamespace(String prefix)
|
void |
rollback()
|
void |
setAutoCommit(boolean autoCommit)
|
void |
setNamespace(String prefix,
String name)
|
| Methods inherited from class org.openrdf.repository.sparql.ConnectionBase |
close, export, getNamespace, getNamespaces, getRepository, getValueFactory, hasStatement, isEmpty, isOpen, prepareBooleanQuery, prepareGraphQuery, prepareQuery, prepareTupleQuery, size |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadOnlyConnection
public ReadOnlyConnection(Repository repository)
commit
public void commit()
throws RepositoryException
- Throws:
RepositoryException
isAutoCommit
public boolean isAutoCommit()
throws RepositoryException
- Throws:
RepositoryException
rollback
public void rollback()
throws RepositoryException
- Throws:
RepositoryException
setAutoCommit
public void setAutoCommit(boolean autoCommit)
throws RepositoryException
- Throws:
RepositoryException
add
public void add(Statement st,
Resource... contexts)
throws RepositoryException
- Throws:
RepositoryException
add
public void add(Iterable<? extends Statement> statements,
Resource... contexts)
throws RepositoryException
- Throws:
RepositoryException
add
public <E extends Exception> void add(Iteration<? extends Statement,E> statementIter,
Resource... contexts)
throws RepositoryException,
E extends Exception
- Throws:
RepositoryException
E extends Exception
add
public void add(InputStream in,
String baseURI,
RDFFormat dataFormat,
Resource... contexts)
throws IOException,
RDFParseException,
RepositoryException
- Throws:
IOException
RDFParseException
RepositoryException
add
public void add(Reader reader,
String baseURI,
RDFFormat dataFormat,
Resource... contexts)
throws IOException,
RDFParseException,
RepositoryException
- Throws:
IOException
RDFParseException
RepositoryException
add
public void add(URL url,
String baseURI,
RDFFormat dataFormat,
Resource... contexts)
throws IOException,
RDFParseException,
RepositoryException
- Throws:
IOException
RDFParseException
RepositoryException
add
public void add(File file,
String baseURI,
RDFFormat dataFormat,
Resource... contexts)
throws IOException,
RDFParseException,
RepositoryException
- Throws:
IOException
RDFParseException
RepositoryException
add
public void add(Resource subject,
URI predicate,
Value object,
Resource... contexts)
throws RepositoryException
- Throws:
RepositoryException
clear
public void clear(Resource... contexts)
throws RepositoryException
- Throws:
RepositoryException
clearNamespaces
public void clearNamespaces()
throws RepositoryException
- Throws:
RepositoryException
remove
public void remove(Statement st,
Resource... contexts)
throws RepositoryException
- Throws:
RepositoryException
remove
public void remove(Iterable<? extends Statement> statements,
Resource... contexts)
throws RepositoryException
- Throws:
RepositoryException
remove
public <E extends Exception> void remove(Iteration<? extends Statement,E> statementIter,
Resource... contexts)
throws RepositoryException,
E extends Exception
- Throws:
RepositoryException
E extends Exception
remove
public void remove(Resource subject,
URI predicate,
Value object,
Resource... contexts)
throws RepositoryException
- Throws:
RepositoryException
removeNamespace
public void removeNamespace(String prefix)
throws RepositoryException
- Throws:
RepositoryException
setNamespace
public void setNamespace(String prefix,
String name)
throws RepositoryException
- Throws:
RepositoryException
Copyright © 2004-2011 James Leigh Services Inc.. All Rights Reserved.