Class TextProvidingRDFExtractor

    • Constructor Detail

      • TextProvidingRDFExtractor

        public TextProvidingRDFExtractor()
    • Method Detail

      • extractFromText

        protected abstract StatementSource extractFromText​(Connection theConnection,
                                                           IRI theDocIri,
                                                           java.io.Reader theText)
                                                    throws java.lang.Exception
        Extract a set of RDF statements from the text in the document.
        Throws:
        java.lang.Exception
      • extract

        public StatementSource extract​(Connection theConnection,
                                       IRI theDocIri,
                                       java.nio.file.Path theDocContents)
                                throws com.complexible.stardog.docs.BitesException
        Extract the text using Tika and pass the text directly to the subclass extractor.
        Specified by:
        extract in interface Extractor<StatementSource>
        Throws:
        com.complexible.stardog.docs.BitesException