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
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 |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
RDFFormatExporter
public RDFFormatExporter()
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
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
ExecutionException
annotations2ontology
private void annotations2ontology(Writer output)
throws Exception
Exception
ontology2hashmap
private HashMap ontology2hashmap(com.hp.hpl.jena.daml.DAMLModel ontology)
throws Exception
Exception