Class GraphBuilder


  • public class GraphBuilder
    extends GraphHandler
    Graph handler used when parsing an RDF representation. It completes the inner set of links with all detected ones.
    • Field Detail

      • linkSet

        private Graph linkSet
        The inner graph of links.
    • Constructor Detail

      • GraphBuilder

        public GraphBuilder​(Graph linkSet)
        Parameters:
        linkSet - The graph of links.
    • Method Detail

      • link

        public void link​(Graph source,
                         Reference typeRef,
                         Literal target)
        Description copied from class: GraphHandler
        Callback method used when a link is parsed or written.
        Specified by:
        link in class GraphHandler
        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 void link​(Graph source,
                         Reference typeRef,
                         Reference target)
        Description copied from class: GraphHandler
        Callback method used when a link is parsed or written.
        Specified by:
        link in class GraphHandler
        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 void link​(Reference source,
                         Reference typeRef,
                         Literal target)
        Description copied from class: GraphHandler
        Callback method used when a link is parsed or written.
        Specified by:
        link in class GraphHandler
        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 void link​(Reference source,
                         Reference typeRef,
                         Reference target)
        Description copied from class: GraphHandler
        Callback method used when a link is parsed or written.
        Specified by:
        link in class GraphHandler
        Parameters:
        source - The source or subject of the link.
        typeRef - The type reference of the link.
        target - The target or object of the link.