Package com.stardog.stark.io
Interface RDFHandler
-
- All Known Subinterfaces:
RDFWriter
- All Known Implementing Classes:
AbstractRDFHandler
,BinaryRDFWriter
,CollectingRDFHandler
,DelegatingRDFHandler
,ForwardingRDFHandler
,ForwardingRDFWriter
,IOParserContext
,JSONLDWriter
,LineSupplierParserContext
,NQuadsWriter
,NTWriter
,ParserContext
,PrettyTurtleWriter
,RDFHandlers.DefaultRDFHandler
,RDFHandlers.GraphBuilder
,RDFJSONWriter
,RDFXMLPrettyWriter
,RDFXMLWriter
,StreamingJSONLDWriter
,TransformingRDFHandler
,TrigWriter
,TurtleParserContext
,TurtleWriter
public interface RDFHandler
Interface for consuming RDF
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
end()
Notification that processing has finishedvoid
handle(Statement theStmt)
Event for when a statement was encounteredvoid
namespace(java.lang.String thePrefix, java.lang.String theIRI)
Event for when a namespace was encounteredvoid
start()
Notification that the processing has started
-
-
-
Method Detail
-
start
void start()
Notification that the processing has started- Throws:
RDFHandlerException
- if there was an error while handling the start notification
-
namespace
void namespace(@Nonnull java.lang.String thePrefix, @Nonnull java.lang.String theIRI)
Event for when a namespace was encountered- Parameters:
thePrefix
- the namespace prefixtheIRI
- the associated IRI- Throws:
RDFHandlerException
- if there was an error while handling the namespace
-
handle
void handle(@Nonnull Statement theStmt)
Event for when a statement was encountered- Parameters:
theStmt
- the statement- Throws:
RDFHandlerException
- if there was an error while handling the statement
-
end
void end()
Notification that processing has finished- Throws:
RDFHandlerException
- if there was an error while handling the end notificatino
-
-