gate.creole
Class RDFFormatExporter

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

public class RDFFormatExporter
extends AbstractLanguageAnalyser

See Also:
Serialized Form

Inner 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, progressListeners, statusListeners
 
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, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface gate.ProcessingResource
interrupt, isInterrupted, 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
 

Field Detail

DAML_EXPORT

private static final int DAML_EXPORT

RDF_EXPORT

private static final int RDF_EXPORT

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

ONTOGAZ_ONTOLOGY_FEATURE

private static final String ONTOGAZ_ONTOLOGY_FEATURE

DEBUG

private static final boolean DEBUG
Debug flag

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.
Overrides:
init in class AbstractProcessingResource

execute

public void execute()
             throws ExecutionException
Run the resource and does the entire export process
Overrides:
execute in class AbstractProcessingResource

annotations2ontology

private void annotations2ontology(Writer output)
                           throws Exception

ontology2hashmap

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