|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.util.AbstractFeatureBearer
gate.creole.AbstractResource
gate.creole.AbstractProcessingResource
gate.creole.AbstractLanguageAnalyser
gate.creole.RDFFormatExporter
Nested Class Summary |
Nested classes inherited from class gate.creole.AbstractProcessingResource |
AbstractProcessingResource.InternalStatusListener, AbstractProcessingResource.IntervalProgressListener |
Field Summary | |
private String |
annotationSetName
|
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 |
Constructor Summary | |
RDFFormatExporter()
|
Method Summary | |
private void |
annotations2ontology(Writer output)
|
void |
execute()
Run the resource and does the entire export process |
String |
getAnnotationSetName()
Java bean style accessor for annotationSetName |
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 |
setAnnotationSetName(String annotationSetName)
Java bean style mutator for annotaionSetName |
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, getBeanInfo, 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 |
private static final int DAML_EXPORT
private static final int RDF_EXPORT
private static final String[] EXPORT_FORMATS
private static final String[] EXPORT_EXTS
private static final String ONTOGAZ_CLASS_FEATURE
private static final String ONTOGAZ_ONTOLOGY_FEATURE
private static final boolean DEBUG
private int exportFormat
private List exportedTypes
private URL exportFilePath
private URL ontologyLocation
private String annotationSetName
Constructor Detail |
public RDFFormatExporter()
Method Detail |
public void setExportedTypes(List anExportedTypesList)
public List getExportedTypes()
public void setExportFormat(String format)
public String getExportFormat()
public void setExportFilePath(URL anExportFilePath)
public URL getExportFilePath()
public void setOntology(URL _ontologyLocation)
public URL getOntology()
public String getAnnotationSetName()
public void setAnnotationSetName(String annotationSetName)
public Resource init() throws ResourceInstantiationException
init
in interface Resource
init
in class AbstractProcessingResource
ResourceInstantiationException
public void execute() throws ExecutionException
execute
in interface Executable
execute
in class AbstractProcessingResource
ExecutionException
private void annotations2ontology(Writer output) throws Exception
Exception
private HashMap ontology2hashmap(com.hp.hpl.jena.daml.DAMLModel ontology) throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |