public class CODAContext extends Object
Modifier and Type | Field and Description |
---|---|
private org.eclipse.rdf4j.repository.RepositoryConnection |
connection |
private Map<String,Properties> |
converter2PropertiesMap |
private org.apache.uima.jcas.tcas.Annotation |
currentAnnotation |
private String |
defaultNamespace |
Constructor and Description |
---|
CODAContext(org.eclipse.rdf4j.repository.RepositoryConnection connection)
Constructs an instance of
CODAContext for the provided model . |
CODAContext(org.eclipse.rdf4j.repository.RepositoryConnection connection,
Map<String,Properties> converter2PropertiesMap)
Constructs an instance of
CODAContext for the provided connection . |
Modifier and Type | Method and Description |
---|---|
Properties |
getConverterProperties(String converter)
Returns the properties associated with a converter, or
null |
org.apache.uima.jcas.tcas.Annotation |
getCurrentAnnotation()
Returns the current UIMA Annotation
|
String |
getDefaultNamespace()
Returns the default namespace of the target Repository Connection or the overridden value
|
org.eclipse.rdf4j.repository.RepositoryConnection |
getRepositoryConnection()
Returns the target Repository Connection.
|
void |
setCurrentAnnotation(org.apache.uima.jcas.tcas.Annotation currentAnnotation)
Set the current UIMA Annotation
|
void |
setDefaultNamespaceOverride(String ns)
Override the default namespace of the connection
|
private org.eclipse.rdf4j.repository.RepositoryConnection connection
private Map<String,Properties> converter2PropertiesMap
private org.apache.uima.jcas.tcas.Annotation currentAnnotation
private String defaultNamespace
public CODAContext(org.eclipse.rdf4j.repository.RepositoryConnection connection)
CODAContext
for the provided model
.connection
- public CODAContext(org.eclipse.rdf4j.repository.RepositoryConnection connection, Map<String,Properties> converter2PropertiesMap)
CODAContext
for the provided connection
.connection
- converter2PropertiesMap
- public org.eclipse.rdf4j.repository.RepositoryConnection getRepositoryConnection()
public String getDefaultNamespace()
public Properties getConverterProperties(String converter)
null if they have not been
specified.
converter
- public org.apache.uima.jcas.tcas.Annotation getCurrentAnnotation()
public void setCurrentAnnotation(org.apache.uima.jcas.tcas.Annotation currentAnnotation)
currentAnnotation
- the current UIMA annotationpublic void setDefaultNamespaceOverride(String ns)
ns
- Copyright © 2022 ART Group, University of Rome, Tor Vergata. All rights reserved.