Class RdfEntityGraph
- java.lang.Object
-
- org.apache.uima.analysis_component.AnalysisComponent_ImplBase
-
- org.apache.uima.analysis_component.Annotator_ImplBase
-
- org.apache.uima.analysis_component.JCasAnnotator_ImplBase
-
- org.apache.uima.fit.component.JCasAnnotator_ImplBase
-
- uk.gov.dstl.baleen.uima.BaleenAnnotator
-
- uk.gov.dstl.baleen.uima.BaleenConsumer
-
- uk.gov.dstl.baleen.consumers.AbstractGraphConsumer
-
- uk.gov.dstl.baleen.consumers.AbstractEntityGraphConsumer
-
- uk.gov.dstl.baleen.rdf.AbstractRdfEntityGraphConsumer
-
- uk.gov.dstl.baleen.consumers.print.RdfEntityGraph
-
- All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent
public class RdfEntityGraph extends AbstractRdfEntityGraphConsumer
Write each Entity graph as RDF to the log.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PARAM_OUTPUT_FORMAT
The output format, one ofRdfFormat
-
Fields inherited from class uk.gov.dstl.baleen.rdf.AbstractRdfEntityGraphConsumer
PARAM_IGNORE, PARAM_NAMESPACE, PARAM_PREFIX
-
Fields inherited from class uk.gov.dstl.baleen.consumers.AbstractEntityGraphConsumer
defaultValueStrategyType, multiValueProperties, PARAM_AGGREGATE_PROPERTIES, PARAM_DEFAULT_VALUE_STRATEGY, PARAM_MULTI_VALUE_PROPERTIES, PARAM_VALUE_STRATEGY, valueStrategyTypes
-
-
Constructor Summary
Constructors Constructor Description RdfEntityGraph()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.io.OutputStream
createOutputStream(java.lang.String documentSourceName)
protected void
outputModel(java.lang.String documentSourceName, org.apache.jena.ontology.OntModel model)
Output the rdf representation of the document-
Methods inherited from class uk.gov.dstl.baleen.rdf.AbstractRdfEntityGraphConsumer
doInitialize, processGraph
-
Methods inherited from class uk.gov.dstl.baleen.consumers.AbstractEntityGraphConsumer
addOptions, doProcess
-
Methods inherited from class uk.gov.dstl.baleen.uima.BaleenAnnotator
addToJCasIndex, addToJCasIndex, createMonitor, createSupport, destroy, doDestroy, getDocumentAnnotation, getMonitor, getSupport, initialize, mergeWithExisting, mergeWithExisting, mergeWithNew, mergeWithNew, process, removeFromJCasIndex, removeFromJCasIndex
-
Methods inherited from class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
getRequiredCasInterface, process
-
Methods inherited from class org.apache.uima.analysis_component.Annotator_ImplBase
getCasInstancesRequired, hasNext, next
-
-
-
-
Field Detail
-
PARAM_OUTPUT_FORMAT
public static final java.lang.String PARAM_OUTPUT_FORMAT
The output format, one ofRdfFormat
- See Also:
- Constant Field Values
-
-
Method Detail
-
createOutputStream
protected java.io.OutputStream createOutputStream(java.lang.String documentSourceName)
-
outputModel
protected void outputModel(java.lang.String documentSourceName, org.apache.jena.ontology.OntModel model) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
Description copied from class:AbstractRdfEntityGraphConsumer
Output the rdf representation of the document- Specified by:
outputModel
in classAbstractRdfEntityGraphConsumer
model
- to be output- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
-
-