public final class RepositoryDataSource extends AbstractDataSource implements MutableDataSource, TripleSource, SupportsNamedGraphs, SupportsTransactions
Implementation of the DataSource interface(s) backed by a Sesame 2 repository. This can be used as a base class for any back-end which supports the Sesame 2 SAIL api, such as BigData, OWLIM, Neo4j, and others.
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.eclipse.rdf4j.model.Model theGraph) |
void |
add(URI theGraphURI,
org.eclipse.rdf4j.model.Model theGraph) |
boolean |
ask(String theQuery) |
void |
begin() |
void |
commit() |
void |
connect() |
org.eclipse.rdf4j.model.Model |
describe(String theQuery) |
void |
disconnect() |
Iterable<org.eclipse.rdf4j.model.Statement> |
getStatements(org.eclipse.rdf4j.model.Resource theSubject,
org.eclipse.rdf4j.model.IRI thePredicate,
org.eclipse.rdf4j.model.Value theObject) |
Iterable<org.eclipse.rdf4j.model.Statement> |
getStatements(org.eclipse.rdf4j.model.Resource theSubject,
org.eclipse.rdf4j.model.IRI thePredicate,
org.eclipse.rdf4j.model.Value theObject,
org.eclipse.rdf4j.model.Resource theContext) |
org.eclipse.rdf4j.model.Model |
graphQuery(String theQuery) |
boolean |
isConnected() |
void |
remove(org.eclipse.rdf4j.model.Model theGraph) |
void |
remove(URI theGraphURI) |
void |
remove(URI theGraphURI,
org.eclipse.rdf4j.model.Model theGraph) |
void |
rollback() |
ResultSet |
selectQuery(String theQuery) |
assertConnected, getQueryFactory, setConnected, setQueryFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetQueryFactorypublic void add(org.eclipse.rdf4j.model.Model theGraph)
throws DataSourceException
add in interface MutableDataSourceDataSourceExceptionpublic void remove(org.eclipse.rdf4j.model.Model theGraph)
throws DataSourceException
remove in interface MutableDataSourceDataSourceExceptionpublic boolean isConnected()
isConnected in interface DataSourceisConnected in class AbstractDataSourcepublic void connect()
throws ConnectException
connect in interface DataSourceConnectExceptionpublic void disconnect()
disconnect in interface DataSourcepublic ResultSet selectQuery(String theQuery) throws QueryException
selectQuery in interface DataSourceQueryExceptionpublic org.eclipse.rdf4j.model.Model graphQuery(String theQuery) throws QueryException
graphQuery in interface DataSourceQueryExceptionpublic boolean ask(String theQuery) throws QueryException
ask in interface DataSourceQueryExceptionpublic org.eclipse.rdf4j.model.Model describe(String theQuery) throws QueryException
describe in interface DataSourceQueryExceptionpublic void add(URI theGraphURI, org.eclipse.rdf4j.model.Model theGraph) throws DataSourceException
add in interface SupportsNamedGraphsDataSourceExceptionpublic void remove(URI theGraphURI) throws DataSourceException
remove in interface SupportsNamedGraphsDataSourceExceptionpublic void remove(URI theGraphURI, org.eclipse.rdf4j.model.Model theGraph) throws DataSourceException
remove in interface SupportsNamedGraphsDataSourceExceptionpublic void begin()
throws DataSourceException
begin in interface SupportsTransactionsDataSourceExceptionpublic void commit()
throws DataSourceException
commit in interface SupportsTransactionsDataSourceExceptionpublic void rollback()
throws DataSourceException
rollback in interface SupportsTransactionsDataSourceExceptionpublic Iterable<org.eclipse.rdf4j.model.Statement> getStatements(org.eclipse.rdf4j.model.Resource theSubject, org.eclipse.rdf4j.model.IRI thePredicate, org.eclipse.rdf4j.model.Value theObject) throws DataSourceException
getStatements in interface TripleSourceDataSourceExceptionpublic Iterable<org.eclipse.rdf4j.model.Statement> getStatements(org.eclipse.rdf4j.model.Resource theSubject, org.eclipse.rdf4j.model.IRI thePredicate, org.eclipse.rdf4j.model.Value theObject, org.eclipse.rdf4j.model.Resource theContext) throws DataSourceException
getStatements in interface TripleSourceDataSourceExceptionCopyright © 2018. All rights reserved.