public class ReportingTripleHandler extends Object implements TripleHandler
TripleHandler that collects
various information about the extraction process, such as
the extractors used and the total number of triples.| Constructor and Description |
|---|
ReportingTripleHandler(TripleHandler wrapped) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeContext(ExtractionContext context) |
void |
endDocument(org.openrdf.model.URI documentURI) |
Collection<String> |
getExtractorNames() |
int |
getTotalDocuments() |
int |
getTotalTriples() |
void |
openContext(ExtractionContext context) |
String |
printReport() |
void |
receiveNamespace(String prefix,
String uri,
ExtractionContext context) |
void |
receiveTriple(org.openrdf.model.Resource s,
org.openrdf.model.URI p,
org.openrdf.model.Value o,
org.openrdf.model.URI g,
ExtractionContext context) |
void |
setContentLength(long contentLength) |
void |
startDocument(org.openrdf.model.URI documentURI) |
public ReportingTripleHandler(TripleHandler wrapped)
public Collection<String> getExtractorNames()
public int getTotalTriples()
public int getTotalDocuments()
public String printReport()
public void startDocument(org.openrdf.model.URI documentURI)
throws TripleHandlerException
startDocument in interface TripleHandlerTripleHandlerExceptionpublic void openContext(ExtractionContext context) throws TripleHandlerException
openContext in interface TripleHandlerTripleHandlerExceptionpublic void receiveNamespace(String prefix, String uri, ExtractionContext context) throws TripleHandlerException
receiveNamespace in interface TripleHandlerTripleHandlerExceptionpublic void receiveTriple(org.openrdf.model.Resource s,
org.openrdf.model.URI p,
org.openrdf.model.Value o,
org.openrdf.model.URI g,
ExtractionContext context)
throws TripleHandlerException
receiveTriple in interface TripleHandlerTripleHandlerExceptionpublic void setContentLength(long contentLength)
setContentLength in interface TripleHandlerpublic void closeContext(ExtractionContext context) throws TripleHandlerException
closeContext in interface TripleHandlerTripleHandlerExceptionpublic void endDocument(org.openrdf.model.URI documentURI)
throws TripleHandlerException
endDocument in interface TripleHandlerTripleHandlerExceptionpublic void close()
throws TripleHandlerException
close in interface TripleHandlerTripleHandlerExceptionCopyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.