Package org.restlet.ext.rdf
Class GraphHandler
- java.lang.Object
-
- org.restlet.ext.rdf.GraphHandler
-
- Direct Known Subclasses:
GraphBuilder
public abstract class GraphHandler extends java.lang.Object
Handler for the content of aGraph
. List of callbacks used when parsing or writing a representation of a RDF graph.
-
-
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(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.abstract void
link(org.restlet.data.Reference source, org.restlet.data.Reference typeRef, Literal target)
Callback method used when a link is parsed or written.abstract void
link(Graph source, org.restlet.data.Reference typeRef, org.restlet.data.Reference target)
Callback method used when a link is parsed or written.abstract void
link(Graph source, org.restlet.data.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, org.restlet.data.Reference reference)
Callback method used at the start of a Namespace mapping.
-
-
-
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, org.restlet.data.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, org.restlet.data.Reference typeRef, org.restlet.data.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(org.restlet.data.Reference source, org.restlet.data.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(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.- 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, org.restlet.data.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.
-
-