Class RDFHandlers.DefaultRDFHandler

    • Constructor Summary

      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 encountered
      void namespace​(java.lang.String thePrefix, java.lang.String theIRI)
      Event for when a namespace was encountered
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
        theStmt - the statement
      • namespace

        public void namespace​(@Nonnull
                              java.lang.String thePrefix,
                              java.lang.String theIRI)
        Description copied from class: AbstractRDFHandler
        Event for when a namespace was encountered
        Specified by:
        namespace in interface RDFHandler
        namespace in class AbstractRDFHandler
        thePrefix - the namespace prefix
        theIRI - the associated IRI