public class Anno4j extends Object
| Constructor and Description |
|---|
Anno4j() |
Anno4j(IDGenerator idGenerator) |
Anno4j(org.openrdf.repository.Repository repository) |
Anno4j(org.openrdf.repository.Repository repository,
IDGenerator idGenerator) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
createObject(Class<T> clazz) |
QueryService |
createQueryService()
Create query service
|
QueryService |
createQueryService(org.openrdf.model.URI graph)
Create query service
|
IDGenerator |
getIdGenerator() |
ObjectRepository |
getObjectRepository()
Getter for configured ObjectRepository (openrdf/alibaba wrapper for the internal Repository).
|
org.openrdf.repository.Repository |
getRepository()
Getter for the configured Repository instance (Connector for local/remote SPARQL repository).
|
void |
persist(Annotation annotation)
Writes the annotation to the configured SPARQL endpoint with a corresponding INSERT query.
|
void |
persist(Annotation annotation,
org.openrdf.model.URI graph)
Writes the annotation to the configured SPARQL endpoint with a corresponding INSERT query.
|
void |
setIdGenerator(IDGenerator idGenerator) |
void |
setRepository(org.openrdf.repository.Repository repository)
Configures the Repository (Connector for local/remote SPARQL repository) to use in Anno4j.
|
public Anno4j()
throws org.openrdf.repository.RepositoryException,
org.openrdf.repository.config.RepositoryConfigException
org.openrdf.repository.RepositoryExceptionorg.openrdf.repository.config.RepositoryConfigExceptionpublic Anno4j(IDGenerator idGenerator) throws org.openrdf.repository.RepositoryException, org.openrdf.repository.config.RepositoryConfigException
org.openrdf.repository.RepositoryExceptionorg.openrdf.repository.config.RepositoryConfigExceptionpublic Anno4j(org.openrdf.repository.Repository repository)
throws org.openrdf.repository.RepositoryException,
org.openrdf.repository.config.RepositoryConfigException
org.openrdf.repository.RepositoryExceptionorg.openrdf.repository.config.RepositoryConfigExceptionpublic Anno4j(org.openrdf.repository.Repository repository,
IDGenerator idGenerator)
throws org.openrdf.repository.config.RepositoryConfigException,
org.openrdf.repository.RepositoryException
org.openrdf.repository.config.RepositoryConfigExceptionorg.openrdf.repository.RepositoryExceptionpublic void persist(Annotation annotation) throws org.openrdf.repository.RepositoryException
annotation - annotation to write to the SPARQL endpointorg.openrdf.repository.RepositoryExceptionpublic void persist(Annotation annotation, org.openrdf.model.URI graph) throws org.openrdf.repository.RepositoryException
annotation - annotation to write to the SPARQL endpointgraph - Graph context to queryorg.openrdf.repository.RepositoryExceptionpublic QueryService createQueryService()
public QueryService createQueryService(org.openrdf.model.URI graph)
graph - Graph context to querypublic org.openrdf.repository.Repository getRepository()
public void setRepository(org.openrdf.repository.Repository repository)
throws org.openrdf.repository.RepositoryException,
org.openrdf.repository.config.RepositoryConfigException
repository - Repository to use in Anno4j.org.openrdf.repository.RepositoryExceptionorg.openrdf.repository.config.RepositoryConfigExceptionpublic ObjectRepository getObjectRepository()
public <T> T createObject(Class<T> clazz) throws org.openrdf.repository.RepositoryException, IllegalAccessException, InstantiationException
org.openrdf.repository.RepositoryExceptionIllegalAccessExceptionInstantiationExceptionpublic IDGenerator getIdGenerator()
public void setIdGenerator(IDGenerator idGenerator)
Copyright © 2016 Chair of Distributed Information Systems - University of Passau. All rights reserved.