Class GraphHandler

    • Constructor Summary

      Constructors 
      Constructor Description
      GraphHandler()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void endGraph()
      Callback method used after the graph is parsed or written.
      void endPrefixMapping​(java.lang.String prefix)
      Callback method used at the end of a Namespace mapping.
      abstract void link​(Reference source, Reference typeRef, Reference target)
      Callback method used when a link is parsed or written.
      abstract void link​(Reference source, Reference typeRef, Literal target)
      Callback method used when a link is parsed or written.
      abstract void link​(Graph source, Reference typeRef, Reference target)
      Callback method used when a link is parsed or written.
      abstract void link​(Graph source, Reference typeRef, Literal target)
      Callback method used when a link is parsed or written.
      void startGraph()
      Callback method used before the graph is parsed or written.
      void startPrefixMapping​(java.lang.String prefix, Reference reference)
      Callback method used at the start of a Namespace mapping.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GraphHandler

        public GraphHandler()
    • Method Detail

      • endGraph

        public void endGraph()
                      throws java.io.IOException
        Callback method used after the graph is parsed or written. Does nothing by default.
        Throws:
        java.io.IOException
      • endPrefixMapping

        public void endPrefixMapping​(java.lang.String prefix)
        Callback method used at the end of a Namespace mapping. Does nothing by default.
        Parameters:
        prefix - The Namespace prefix.
      • link

        public abstract void link​(Graph source,
                                  Reference typeRef,
                                  Literal target)
        Callback method used when a link is parsed or written.
        Parameters:
        source - The source or subject of the link.
        typeRef - The type reference of the link.
        target - The target or object of the link.
      • link

        public abstract void link​(Graph source,
                                  Reference typeRef,
                                  Reference target)
        Callback method used when a link is parsed or written.
        Parameters:
        source - The source or subject of the link.
        typeRef - The type reference of the link.
        target - The target or object of the link.
      • link

        public abstract void link​(Reference source,
                                  Reference typeRef,
                                  Literal target)
        Callback method used when a link is parsed or written.
        Parameters:
        source - The source or subject of the link.
        typeRef - The type reference of the link.
        target - The target or object of the link.
      • link

        public abstract void link​(Reference source,
                                  Reference typeRef,
                                  Reference target)
        Callback method used when a link is parsed or written.
        Parameters:
        source - The source or subject of the link.
        typeRef - The type reference of the link.
        target - The target or object of the link.
      • startGraph

        public void startGraph()
                        throws java.io.IOException
        Callback method used before the graph is parsed or written. Does nothing by default.
        Throws:
        java.io.IOException
      • startPrefixMapping

        public void startPrefixMapping​(java.lang.String prefix,
                                       Reference reference)
        Callback method used at the start of a Namespace mapping. Does nothing by default.
        Parameters:
        prefix - The Namespace prefix being declared.
        reference - The Namespace URI mapped to the prefix.