@CreoleResource(name="LODexporter",
comment="An ontology-aware PR to transform GATE annotations to LOD triples.")
public class LODexporter
extends gate.creole.AbstractLanguageAnalyser
implements gate.ProcessingResource, gate.creole.ControllerAwarePR
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
LOGGER |
ANNOTATION_COREF_FEATURE_NAME, DATE_ANNOTATION_TYPE, DATE_POSTED_ANNOTATION_TYPE, DEFAULT_FILE, DOCUMENT_COREF_FEATURE_NAME, JOB_ID_ANNOTATION_TYPE, LOCATION_ANNOTATION_TYPE, LOOKUP_ANNOTATION_TYPE, LOOKUP_CLASS_FEATURE_NAME, LOOKUP_INSTANCE_FEATURE_NAME, LOOKUP_LANGUAGE_FEATURE_NAME, LOOKUP_MAJOR_TYPE_FEATURE_NAME, LOOKUP_MINOR_TYPE_FEATURE_NAME, LOOKUP_ONTOLOGY_FEATURE_NAME, MONEY_ANNOTATION_TYPE, ORGANIZATION_ANNOTATION_TYPE, PERSON_ANNOTATION_TYPE, PERSON_GENDER_FEATURE_NAME, PLUGIN_DIR, SENTENCE_ANNOTATION_TYPE, SPACE_TOKEN_ANNOTATION_TYPE, TOKEN_ANNOTATION_TYPE, TOKEN_CATEGORY_FEATURE_NAME, TOKEN_KIND_FEATURE_NAME, TOKEN_LENGTH_FEATURE_NAME, TOKEN_ORTH_FEATURE_NAME, TOKEN_STRING_FEATURE_NAME| Constructor and Description |
|---|
LODexporter() |
| Modifier and Type | Method and Description |
|---|---|
void |
controllerExecutionAborted(gate.Controller arg0,
Throwable arg1) |
void |
controllerExecutionFinished(gate.Controller arg0) |
void |
controllerExecutionStarted(gate.Controller controller) |
void |
execute() |
String |
getInputASName() |
String |
getPropertyMappingSparql() |
String |
getrdfStoreDir() |
String |
getRelationMappingSparql() |
String |
getSubjectMappingSparql() |
gate.Resource |
init() |
void |
reInit() |
void |
setInputASName(String myInputASName) |
void |
setPropertyMappingSparql(String myPropertyMappingSparql) |
void |
setrdfStoreDir(String myRdfStoreDir)
Sets the path to the triple store directory.
|
void |
setRelationMappingSparql(String myRelationMappingSparql) |
void |
setSubjectMappingSparql(String mySubjectMappingSparql) |
getCorpus, getDocument, setCorpus, setDocumentaddProgressListener, addStatusListener, cleanup, fireProcessFinished, fireProgressChanged, fireStatusChanged, getRuntimeParameterValues, getRuntimeParameterValues, interrupt, isInterrupted, removeProgressListener, removeStatusListenercheckParameterValues, flushBeanInfoCache, forgetBeanInfo, getBeanInfo, getInitParameterValues, getInitParameterValues, getName, getParameterValue, getParameterValue, getParameterValues, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic final void setrdfStoreDir(String myRdfStoreDir)
myRdfStoreDir - the path to the triple store directorypublic final String getrdfStoreDir()
public final String getSubjectMappingSparql()
public final void setSubjectMappingSparql(String mySubjectMappingSparql)
mySubjectMappingSparql - the subjectMappingSparql to setpublic final String getPropertyMappingSparql()
public final void setPropertyMappingSparql(String myPropertyMappingSparql)
myPropertyMappingSparql - the propertyMappingSparql to setpublic final String getRelationMappingSparql()
public final void setRelationMappingSparql(String myRelationMappingSparql)
myRelationMappingSparql - the relationMappingSparql to setpublic final void setInputASName(String myInputASName)
public final String getInputASName()
public final gate.Resource init()
throws gate.creole.ResourceInstantiationException
init in interface gate.Resourceinit in class gate.creole.AbstractProcessingResourcegate.creole.ResourceInstantiationExceptionpublic final void reInit()
throws gate.creole.ResourceInstantiationException
reInit in interface gate.ProcessingResourcereInit in class gate.creole.AbstractProcessingResourcegate.creole.ResourceInstantiationExceptionpublic final void execute()
throws gate.creole.ExecutionException
execute in interface gate.Executableexecute in class gate.creole.AbstractProcessingResourcegate.creole.ExecutionExceptionpublic final void controllerExecutionAborted(gate.Controller arg0,
Throwable arg1)
throws gate.creole.ExecutionException
controllerExecutionAborted in interface gate.creole.ControllerAwarePRgate.creole.ExecutionExceptionpublic final void controllerExecutionFinished(gate.Controller arg0)
throws gate.creole.ExecutionException
controllerExecutionFinished in interface gate.creole.ControllerAwarePRgate.creole.ExecutionExceptionpublic final void controllerExecutionStarted(gate.Controller controller)
throws gate.creole.ExecutionException
controllerExecutionStarted in interface gate.creole.ControllerAwarePRgate.creole.ExecutionException