public interface TransactionCommands
| Modifier and Type | Method and Description |
|---|---|
void |
clearContext(String context)
Removes all triples from the given context.
|
void |
clearContext(org.openrdf.model.URI context)
Removes all triples from the given context.
|
<T> T |
createObject(Class<T> clazz) |
<T> T |
createObject(Class<T> clazz,
org.openrdf.model.Resource id) |
QueryService |
createQueryService()
Create query service
|
<T extends ResourceObject> |
findAll(Class<T> type)
Queries for all instances of the RDF class connected with the given class
|
<T extends ResourceObject> |
findByID(Class<T> type,
String id) |
<T extends ResourceObject> |
findByID(Class<T> type,
org.openrdf.model.URI id) |
void |
persist(ResourceObject resource)
Writes the resource object to the configured SPARQL endpoint with a corresponding INSERT query.
|
void persist(ResourceObject resource) throws org.openrdf.repository.RepositoryException
resource - resource object to write to the SPARQL endpointorg.openrdf.repository.RepositoryException<T extends ResourceObject> T findByID(Class<T> type, String id) throws org.openrdf.repository.RepositoryException
org.openrdf.repository.RepositoryException<T extends ResourceObject> T findByID(Class<T> type, org.openrdf.model.URI id) throws org.openrdf.repository.RepositoryException
org.openrdf.repository.RepositoryExceptionvoid clearContext(org.openrdf.model.URI context)
throws org.openrdf.repository.RepositoryException
context - context to clearorg.openrdf.repository.RepositoryExceptionvoid clearContext(String context) throws org.openrdf.repository.RepositoryException
context - context to clearorg.openrdf.repository.RepositoryException<T extends ResourceObject> List<T> findAll(Class<T> type) throws org.openrdf.repository.RepositoryException
type - Class with connected RDF typeorg.openrdf.repository.RepositoryExceptionQueryService createQueryService() throws org.openrdf.repository.RepositoryException
org.openrdf.repository.RepositoryException<T> T createObject(Class<T> clazz) throws org.openrdf.repository.RepositoryException, IllegalAccessException, InstantiationException
org.openrdf.repository.RepositoryExceptionIllegalAccessExceptionInstantiationException<T> T createObject(Class<T> clazz, org.openrdf.model.Resource id) throws org.openrdf.repository.RepositoryException, IllegalAccessException, InstantiationException
org.openrdf.repository.RepositoryExceptionIllegalAccessExceptionInstantiationExceptionCopyright © 2016 Chair of Distributed Information Systems - University of Passau. All rights reserved.