Class TextProvidingRDFExtractor
- java.lang.Object
-
- com.complexible.stardog.docs.extraction.tika.TextProvidingRDFExtractor
-
- All Implemented Interfaces:
Extractor<StatementSource>
,RDFExtractor
- Direct Known Subclasses:
AbstractEntityRDFExtractor
public abstract class TextProvidingRDFExtractor extends java.lang.Object implements RDFExtractor
A base class for RDF extractors wishing to work with text directly. Text will be extracted by Tika.
-
-
Constructor Summary
Constructors Constructor Description TextProvidingRDFExtractor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StatementSource
extract(Connection theConnection, IRI theDocIri, java.nio.file.Path theDocContents)
Extract the text using Tika and pass the text directly to the subclass extractor.protected abstract StatementSource
extractFromText(Connection theConnection, IRI theDocIri, java.io.Reader theText)
Extract a set of RDF statements from the text in the document.
-
-
-
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 interfaceExtractor<StatementSource>
- Throws:
com.complexible.stardog.docs.BitesException
-
-