public abstract class GraphHandler
extends java.lang.Object
Graph. List of callbacks used when
parsing or writing a representation of a RDF graph.| Constructor and Description |
|---|
GraphHandler() |
| Modifier and Type | Method and 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(Graph source,
Reference typeRef,
Literal target)
Callback method used when a link is parsed or written.
|
abstract void |
link(Graph source,
Reference typeRef,
Reference target)
Callback method used when a link is parsed or written.
|
abstract void |
link(Reference source,
Reference typeRef,
Literal target)
Callback method used when a link is parsed or written.
|
abstract void |
link(Reference source,
Reference typeRef,
Reference 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,
Reference reference)
Callback method used at the start of a Namespace mapping.
|
public void endGraph()
throws java.io.IOException
java.io.IOExceptionpublic void endPrefixMapping(java.lang.String prefix)
prefix - The Namespace prefix.public abstract void link(Graph source, Reference typeRef, Literal target)
source - The source or subject of the link.typeRef - The type reference of the link.target - The target or object of the link.public abstract void link(Graph source, Reference typeRef, Reference target)
source - The source or subject of the link.typeRef - The type reference of the link.target - The target or object of the link.public abstract void link(Reference source, Reference typeRef, Literal target)
source - The source or subject of the link.typeRef - The type reference of the link.target - The target or object of the link.public abstract void link(Reference source, Reference typeRef, Reference target)
source - The source or subject of the link.typeRef - The type reference of the link.target - The target or object of the link.public void startGraph()
throws java.io.IOException
java.io.IOExceptionpublic void startPrefixMapping(java.lang.String prefix,
Reference reference)
prefix - The Namespace prefix being declared.reference - The Namespace URI mapped to the prefix.Copyright © 2005-2024 Restlet.