Package org.restlet.ext.rdf
Class GraphHandler
- java.lang.Object
-
- org.restlet.ext.rdf.GraphHandler
-
- Direct Known Subclasses:
GraphBuilder,RdfN3Writer,RdfNTriplesWriter,RdfTurtleWriter,RdfXmlWriter
public abstract class GraphHandler extends java.lang.ObjectHandler 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 voidendGraph()Callback method used after the graph is parsed or written.voidendPrefixMapping(java.lang.String prefix)Callback method used at the end of a Namespace mapping.abstract voidlink(Reference source, Reference typeRef, Reference target)Callback method used when a link is parsed or written.abstract voidlink(Reference source, Reference typeRef, Literal target)Callback method used when a link is parsed or written.abstract voidlink(Graph source, Reference typeRef, Reference target)Callback method used when a link is parsed or written.abstract voidlink(Graph source, Reference typeRef, Literal target)Callback method used when a link is parsed or written.voidstartGraph()Callback method used before the graph is parsed or written.voidstartPrefixMapping(java.lang.String prefix, Reference reference)Callback method used at the start of a Namespace mapping.
-
-
-
Method Detail
-
endGraph
public void endGraph() throws java.io.IOExceptionCallback 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.IOExceptionCallback 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.
-
-