public interface TripleHandler
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Will be called last and exactly once.
|
void |
closeContext(ExtractionContext context)
Informs the handler that no more triples will come from a
previously opened context.
|
void |
endDocument(org.openrdf.model.URI documentURI)
Informs the handler that the end of the document
has been reached.
|
void |
openContext(ExtractionContext context)
Informs the handler that a new context has been established.
|
void |
receiveNamespace(String prefix,
String uri,
ExtractionContext context)
Invoked with a currently open context, notifies the detection of a
namespace.
|
void |
receiveTriple(org.openrdf.model.Resource s,
org.openrdf.model.URI p,
org.openrdf.model.Value o,
org.openrdf.model.URI g,
ExtractionContext context)
Invoked with a currently open context,
notifies the detection of a triple.
|
void |
setContentLength(long contentLength)
Sets the length of the content to be processed.
|
void |
startDocument(org.openrdf.model.URI documentURI) |
void startDocument(org.openrdf.model.URI documentURI)
throws TripleHandlerException
TripleHandlerExceptionvoid openContext(ExtractionContext context) throws TripleHandlerException
TripleHandlerExceptionvoid 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
s - triple subject, cannot be null.p - triple predicate, cannot be null.o - triple object, cannot be null.g - triple graph, can be null.context - extraction context.TripleHandlerExceptionvoid receiveNamespace(String prefix, String uri, ExtractionContext context) throws TripleHandlerException
prefix - namespace prefix.uri - namespace URI.context - namespace context.TripleHandlerExceptionvoid closeContext(ExtractionContext context) throws TripleHandlerException
context - the context to be closed.TripleHandlerExceptionvoid endDocument(org.openrdf.model.URI documentURI)
throws TripleHandlerException
documentURI - document URI.TripleHandlerExceptionvoid setContentLength(long contentLength)
contentLength - TripleHandlerExceptionvoid close()
throws TripleHandlerException
TripleHandlerExceptionCopyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.