Package com.stardog.stark.io
Class RDFHandlers.DefaultRDFHandler
- java.lang.Object
-
- com.stardog.stark.io.AbstractRDFHandler
-
- com.stardog.stark.io.RDFHandlers.DefaultRDFHandler
-
- All Implemented Interfaces:
RDFHandler
- Enclosing class:
- RDFHandlers
public static final class RDFHandlers.DefaultRDFHandler extends AbstractRDFHandler
-
-
Constructor Summary
Constructors Constructor Description DefaultRDFHandler(java.util.function.Consumer<Statement> theStmtHandler, java.util.function.BiConsumer<java.lang.String,java.lang.String> theNamespaceHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 encountered-
Methods inherited from class com.stardog.stark.io.AbstractRDFHandler
end, start
-
-
-
-
Constructor Detail
-
DefaultRDFHandler
public DefaultRDFHandler(java.util.function.Consumer<Statement> theStmtHandler, java.util.function.BiConsumer<java.lang.String,java.lang.String> theNamespaceHandler)
-
-
Method Detail
-
handle
public void handle(@Nonnull Statement theStmt)
Description copied from interface:RDFHandler
Event for when a statement was encountered- Parameters:
theStmt
- the statement
-
namespace
public void namespace(@Nonnull java.lang.String thePrefix, @Nonnull java.lang.String theIRI)
Description copied from class:AbstractRDFHandler
Event for when a namespace was encountered- Specified by:
namespace
in interfaceRDFHandler
- Overrides:
namespace
in classAbstractRDFHandler
- Parameters:
thePrefix
- the namespace prefixtheIRI
- the associated IRI
-
-