Package org.restlet.ext.rdf
Class GraphBuilder
- java.lang.Object
-
- org.restlet.ext.rdf.GraphHandler
-
- 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
Constructors Constructor Description GraphBuilder(Graph linkSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
link(org.restlet.data.Reference source, org.restlet.data.Reference typeRef, org.restlet.data.Reference target)
Callback method used when a link is parsed or written.void
link(org.restlet.data.Reference source, org.restlet.data.Reference typeRef, Literal target)
Callback method used when a link is parsed or written.void
link(Graph source, org.restlet.data.Reference typeRef, org.restlet.data.Reference target)
Callback method used when a link is parsed or written.void
link(Graph source, org.restlet.data.Reference typeRef, Literal target)
Callback method used when a link is parsed or written.-
Methods inherited from class org.restlet.ext.rdf.GraphHandler
endGraph, endPrefixMapping, startGraph, startPrefixMapping
-
-
-
-
Constructor Detail
-
GraphBuilder
public GraphBuilder(Graph linkSet)
- Parameters:
linkSet
- The graph of links.
-
-
Method Detail
-
link
public void link(Graph source, org.restlet.data.Reference typeRef, Literal target)
Description copied from class:GraphHandler
Callback method used when a link is parsed or written.- Specified by:
link
in classGraphHandler
- 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, org.restlet.data.Reference typeRef, org.restlet.data.Reference target)
Description copied from class:GraphHandler
Callback method used when a link is parsed or written.- Specified by:
link
in classGraphHandler
- 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(org.restlet.data.Reference source, org.restlet.data.Reference typeRef, Literal target)
Description copied from class:GraphHandler
Callback method used when a link is parsed or written.- Specified by:
link
in classGraphHandler
- 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(org.restlet.data.Reference source, org.restlet.data.Reference typeRef, org.restlet.data.Reference target)
Description copied from class:GraphHandler
Callback method used when a link is parsed or written.- Specified by:
link
in classGraphHandler
- Parameters:
source
- The source or subject of the link.typeRef
- The type reference of the link.target
- The target or object of the link.
-
-