org.restlet.ext.rdf
Class GraphBuilder

java.lang.Object
  extended by org.restlet.ext.rdf.GraphHandler
      extended by org.restlet.ext.rdf.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.


Constructor Summary
GraphBuilder(Graph linkSet)
           
 
Method Summary
 void link(Graph source, Reference typeRef, Literal target)
          Callback method used when a link is parsed or written.
 void link(Graph source, Reference typeRef, Reference target)
          Callback method used when a link is parsed or written.
 void link(Reference source, Reference typeRef, Literal target)
          Callback method used when a link is parsed or written.
 void link(Reference source, Reference typeRef, Reference target)
          Callback method used when a link is parsed or written.
 
Methods inherited from class org.restlet.ext.rdf.GraphHandler
endGraph, endPrefixMapping, startGraph, startPrefixMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.


Copyright © 2005-2013 Restlet.