gate.creole
Class RDFFormatExporter

java.lang.Object
  extended bygate.util.AbstractFeatureBearer
      extended bygate.creole.AbstractResource
          extended bygate.creole.AbstractProcessingResource
              extended bygate.creole.AbstractLanguageAnalyser
                  extended bygate.creole.RDFFormatExporter
All Implemented Interfaces:
ANNIEConstants, Executable, FeatureBearer, LanguageAnalyser, NameBearer, ProcessingResource, Resource, Serializable

public class RDFFormatExporter
extends AbstractLanguageAnalyser

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class gate.creole.AbstractProcessingResource
AbstractProcessingResource.InternalStatusListener, AbstractProcessingResource.IntervalProgressListener
 
Field Summary
private static int DAML_EXPORT
           
private static boolean DEBUG
          Debug flag
private static String[] EXPORT_EXTS
           
private static String[] EXPORT_FORMATS
           
private  List exportedTypes
          This list of strings represents the entities type that will be exported
private  URL exportFilePath
           
private  int exportFormat
           
private static String ONTOGAZ_CLASS_FEATURE
           
private static String ONTOGAZ_ONTOLOGY_FEATURE
           
private  URL ontologyLocation
           
private static int RDF_EXPORT
           
 
Fields inherited from class gate.creole.AbstractLanguageAnalyser
corpus, document
 
Fields inherited from class gate.creole.AbstractProcessingResource
interrupted
 
Fields inherited from class gate.creole.AbstractResource
name, serialVersionUID
 
Fields inherited from class gate.util.AbstractFeatureBearer
features
 
Fields inherited from interface gate.creole.ANNIEConstants
ANNOTATION_COREF_FEATURE_NAME, DATE_ANNOTATION_TYPE, DOCUMENT_COREF_FEATURE_NAME, LOCATION_ANNOTATION_TYPE, LOOKUP_ANNOTATION_TYPE, LOOKUP_CLASS_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, PR_NAMES, 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 Summary
RDFFormatExporter()
           
 
Method Summary
private  void annotations2ontology(Writer output)
           
 void execute()
          Run the resource and does the entire export process
 List getExportedTypes()
          Java bean style accesor for exportedTypes
 URL getExportFilePath()
          Java bean style accesor for exportFilePath
 String getExportFormat()
          Java bean style mutator for exportedTypes
 URL getOntology()
          Java bean style accesor for exportFilePath
 Resource init()
          Initialise this resource, and returns it.
private  HashMap ontology2hashmap(com.hp.hpl.jena.daml.DAMLModel ontology)
           
 void setExportedTypes(List anExportedTypesList)
          Java bean style mutator for exportedTypes
 void setExportFilePath(URL anExportFilePath)
          Java bean style mutator for exportFilePath
 void setExportFormat(String format)
          Java bean style mutator for exportedTypes
 void setOntology(URL _ontologyLocation)
          Java bean style mutator for exportFilePath
 
Methods inherited from class gate.creole.AbstractLanguageAnalyser
getCorpus, getDocument, setCorpus, setDocument
 
Methods inherited from class gate.creole.AbstractProcessingResource
addProgressListener, addStatusListener, cleanup, fireProcessFinished, fireProgressChanged, fireStatusChanged, interrupt, isInterrupted, reInit, removeProgressListener, removeStatusListener
 
Methods inherited from class gate.creole.AbstractResource
checkParameterValues, getName, getParameterValue, getParameterValue, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners
 
Methods inherited from class gate.util.AbstractFeatureBearer
getFeatures, setFeatures
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gate.ProcessingResource
reInit
 
Methods inherited from interface gate.Resource
cleanup, getParameterValue, setParameterValue, setParameterValues
 
Methods inherited from interface gate.util.FeatureBearer
getFeatures, setFeatures
 
Methods inherited from interface gate.util.NameBearer
getName, setName
 
Methods inherited from interface gate.Executable
interrupt, isInterrupted
 

Field Detail

DAML_EXPORT

private static final int DAML_EXPORT
See Also:
Constant Field Values

RDF_EXPORT

private static final int RDF_EXPORT
See Also:
Constant Field Values

EXPORT_FORMATS

private static final String[] EXPORT_FORMATS

EXPORT_EXTS

private static final String[] EXPORT_EXTS

ONTOGAZ_CLASS_FEATURE

private static final String ONTOGAZ_CLASS_FEATURE
See Also:
Constant Field Values

ONTOGAZ_ONTOLOGY_FEATURE

private static final String ONTOGAZ_ONTOLOGY_FEATURE
See Also:
Constant Field Values

DEBUG

private static final boolean DEBUG
Debug flag

See Also:
Constant Field Values

exportFormat

private int exportFormat

exportedTypes

private List exportedTypes
This list of strings represents the entities type that will be exported


exportFilePath

private URL exportFilePath

ontologyLocation

private URL ontologyLocation
Constructor Detail

RDFFormatExporter

public RDFFormatExporter()
Method Detail

setExportedTypes

public void setExportedTypes(List anExportedTypesList)
Java bean style mutator for exportedTypes


getExportedTypes

public List getExportedTypes()
Java bean style accesor for exportedTypes


setExportFormat

public void setExportFormat(String format)
Java bean style mutator for exportedTypes


getExportFormat

public String getExportFormat()
Java bean style mutator for exportedTypes


setExportFilePath

public void setExportFilePath(URL anExportFilePath)
Java bean style mutator for exportFilePath


getExportFilePath

public URL getExportFilePath()
Java bean style accesor for exportFilePath


setOntology

public void setOntology(URL _ontologyLocation)
Java bean style mutator for exportFilePath


getOntology

public URL getOntology()
Java bean style accesor for exportFilePath


init

public Resource init()
              throws ResourceInstantiationException
Initialise this resource, and returns it.

Specified by:
init in interface Resource
Overrides:
init in class AbstractProcessingResource
Throws:
ResourceInstantiationException

execute

public void execute()
             throws ExecutionException
Run the resource and does the entire export process

Specified by:
execute in interface Executable
Overrides:
execute in class AbstractProcessingResource
Throws:
ExecutionException

annotations2ontology

private void annotations2ontology(Writer output)
                           throws Exception
Throws:
Exception

ontology2hashmap

private HashMap ontology2hashmap(com.hp.hpl.jena.daml.DAMLModel ontology)
                          throws Exception
Throws:
Exception