Class 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 of RdfFormat
      • 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
      • Fields inherited from class uk.gov.dstl.baleen.consumers.AbstractGraphConsumer

        contentHashAsId, filterFeatures, outputEvents, PARAM_CONTENT_HASH_AS_ID, PARAM_FILTER_FEATURES, PARAM_OUTPUT_EVENTS, PARAM_TYPE_NAMES, PARAM_VALUE_COERCER, typeNames, valueCoercer, valueCoercerType
      • Fields inherited from class uk.gov.dstl.baleen.uima.BaleenAnnotator

        KEY_HISTORY
    • 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.consumers.AbstractEntityGraphConsumer

        addOptions, doProcess
      • Methods inherited from class uk.gov.dstl.baleen.consumers.AbstractGraphConsumer

        createValueCoercer
      • Methods inherited from class uk.gov.dstl.baleen.uima.BaleenConsumer

        getAction
      • 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
      • Methods inherited from class org.apache.uima.analysis_component.AnalysisComponent_ImplBase

        batchProcessComplete, collectionProcessComplete, getContext, getLogger, getResultSpecification, reconfigure, setResultSpecification
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • RdfEntityGraph

        public RdfEntityGraph()
    • 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 class AbstractRdfEntityGraphConsumer
        model - to be output
        Throws:
        org.apache.uima.analysis_engine.AnalysisEngineProcessException