Uses of Interface
org.apache.any23.writer.TripleHandler
-
Packages that use TripleHandler Package Description org.apache.any23 The Any23 root package defines theAny23
library facade and auxiliary classes.org.apache.any23.extractor This package contains classes and interfaces modeling theExtractor
API.org.apache.any23.filter This package defines specificTripleHandler
s able to filter document and triples that don't respect particular conditions.org.apache.any23.writer This package collects a set ofTripleHandler
decorators and specific RDF formatTripleWriter
implementations. -
-
Uses of TripleHandler in org.apache.any23
Methods in org.apache.any23 with parameters of type TripleHandler Modifier and Type Method Description ExtractionReport
Any23. extract(File file, TripleHandler outputHandler)
Performs metadata extraction from the content of the givenfile
sending the generated events to the specifiedoutputHandler
.ExtractionReport
Any23. extract(String in, String documentIRI, String contentType, String encoding, TripleHandler outputHandler)
Performs metadata extraction on thein
string associated to thedocumentIRI
IRI, declaringcontentType
andencoding
.ExtractionReport
Any23. extract(String in, String documentIRI, TripleHandler outputHandler)
Performs metadata extraction on thein
string associated to thedocumentIRI
IRI, sending the generated events to the specifiedoutputHandler
.ExtractionReport
Any23. extract(String documentIRI, TripleHandler outputHandler)
Performs metadata extraction from the content of the givendocumentIRI
sending the generated events to the specifiedoutputHandler
.ExtractionReport
Any23. extract(ExtractionParameters eps, String documentIRI, TripleHandler outputHandler)
Performs metadata extraction from the content of the givendocumentIRI
sending the generated events to the specifiedoutputHandler
.ExtractionReport
Any23. extract(ExtractionParameters eps, DocumentSource in, TripleHandler outputHandler)
Performs metadata extraction from the content of the givenin
document source, sending the generated events to the specifiedoutputHandler
.ExtractionReport
Any23. extract(ExtractionParameters eps, DocumentSource in, TripleHandler outputHandler, String encoding)
Performs metadata extraction from the content of the givenin
document source, sending the generated events to the specifiedoutputHandler
.ExtractionReport
Any23. extract(DocumentSource in, TripleHandler outputHandler)
Performs metadata extraction from the content of the givenin
document source, sending the generated events to the specifiedoutputHandler
.ExtractionReport
Any23. extract(DocumentSource in, TripleHandler outputHandler, String encoding)
Performs metadata extraction from the content of the givenin
document source, sending the generated events to the specifiedoutputHandler
. -
Uses of TripleHandler in org.apache.any23.extractor
Constructors in org.apache.any23.extractor with parameters of type TripleHandler Constructor Description ExtractionResultImpl(ExtractionContext context, Extractor<?> extractor, TripleHandler tripleHandler)
SingleDocumentExtraction(Configuration configuration, DocumentSource in, ExtractorFactory<?> factory, TripleHandler output)
Builds an extractor by the specification of document source, extractors factory and output triple handler.SingleDocumentExtraction(Configuration configuration, DocumentSource in, ExtractorGroup extractors, TripleHandler output)
Builds an extractor by the specification of document source, list of extractors and output triple handler.SingleDocumentExtraction(DocumentSource in, ExtractorFactory<?> factory, TripleHandler output)
Builds an extractor by the specification of document source, extractors factory and output triple handler, using theDefaultConfiguration
. -
Uses of TripleHandler in org.apache.any23.filter
Classes in org.apache.any23.filter that implement TripleHandler Modifier and Type Class Description class
ExtractionContextBlocker
A wrapper around aTripleHandler
that can block and unblock calls to the handler, either for the entire document, or for individualExtractionContext
s.class
IgnoreAccidentalRDFa
ATripleHandler
that suppresses output of the RDFa parser if the document only contains "accidental" RDFa, like stylesheet links and other non-RDFa uses of HTML'sclass
IgnoreTitlesOfEmptyDocuments
ATripleHandler
that suppresses output of theTitleExtractor
unless some other triples could be parsed from the document.Constructors in org.apache.any23.filter with parameters of type TripleHandler Constructor Description ExtractionContextBlocker(TripleHandler wrapped)
IgnoreAccidentalRDFa(TripleHandler wrapped)
IgnoreAccidentalRDFa(TripleHandler wrapped, boolean alwaysSuppressCSSTriples)
Constructor.IgnoreTitlesOfEmptyDocuments(TripleHandler wrapped)
-
Uses of TripleHandler in org.apache.any23.writer
Subinterfaces of TripleHandler in org.apache.any23.writer Modifier and Type Interface Description interface
FormatWriter
Base interface used for the definition of RDF format writers.Classes in org.apache.any23.writer that implement TripleHandler Modifier and Type Class Description class
BenchmarkTripleHandler
TripleHandler
decorator useful to perform benchmarking.class
CompositeTripleHandler
ATripleHandler
multi decorator, that wraps zero or more other triple handlers and dispatches all events to each of them.class
CountingTripleHandler
A simpleTripleHandler
that merely counts the number of triples it has received.class
JSONLDWriter
Implementation of JSON-LDTripleWriter
.class
JSONWriter
Deprecated.since 2.3.class
LoggingTripleHandler
Triple handler decorator useful for logging purposes.class
NQuadsWriter
Implementation of an N-QuadsTripleWriter
.class
NTriplesWriter
Implementation of an N-TriplesTripleWriter
.class
RDFWriterTripleHandler
ATripleHandler
that writes triples to a SesameRDFWriter
, eg for serialization using one of Sesame's writers.class
RDFXMLWriter
RDF/XMLTripleWriter
implementation.class
ReportingTripleHandler
ATripleHandler
that collects various information about the extraction process, such as the extractors used and the total number of triples.class
RepositoryWriter
An RDF4J repository triple writer.class
TripleWriterHandler
This class connects aTripleHandler
to aTripleWriter
by writing received data.class
TriXWriter
TriXTripleWriter
implementation.class
TurtleWriter
N3 notationTripleWriter
implementation.class
URIListWriter
This writer simply produces a list of unique IRI present in the subject or in the object of every single extracted RDF Statement.Methods in org.apache.any23.writer that return TripleHandler Modifier and Type Method Description TripleHandler
DecoratingWriterFactory. getTripleWriter(TripleHandler delegate, Settings settings)
TripleHandler
JSONLDWriterFactory. getTripleWriter(OutputStream out, Settings settings)
TripleHandler
JSONWriterFactory. getTripleWriter(OutputStream out, Settings settings)
Deprecated.TripleHandler
NQuadsWriterFactory. getTripleWriter(OutputStream os, Settings settings)
TripleHandler
NTriplesWriterFactory. getTripleWriter(OutputStream os, Settings settings)
TripleHandler
RDFXMLWriterFactory. getTripleWriter(OutputStream os, Settings settings)
TripleHandler
TripleWriterFactory. getTripleWriter(OutputStream out, Settings settings)
TripleHandler
TriXWriterFactory. getTripleWriter(OutputStream os, Settings settings)
TripleHandler
TurtleWriterFactory. getTripleWriter(OutputStream os, Settings settings)
TripleHandler
URIListWriterFactory. getTripleWriter(OutputStream os, Settings settings)
Methods in org.apache.any23.writer that return types with arguments of type TripleHandler Modifier and Type Method Description Collection<TripleHandler>
CompositeTripleHandler. getChilds()
Methods in org.apache.any23.writer with parameters of type TripleHandler Modifier and Type Method Description void
CompositeTripleHandler. addChild(TripleHandler child)
Adds a decorated handler.TripleHandler
DecoratingWriterFactory. getTripleWriter(TripleHandler delegate, Settings settings)
Constructors in org.apache.any23.writer with parameters of type TripleHandler Constructor Description BenchmarkTripleHandler(TripleHandler tripleHandler)
Constructor.LoggingTripleHandler(TripleHandler tripleHandler, PrintWriter destination)
ReportingTripleHandler(TripleHandler wrapped)
Constructor parameters in org.apache.any23.writer with type arguments of type TripleHandler Constructor Description CompositeTripleHandler(Collection<TripleHandler> children)
Constructor with initial list of decorated handlers.
-