public class RdfTurtleWriter extends GraphHandler
Constructor and Description |
---|
RdfTurtleWriter(Writer writer)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
endGraph()
Callback method used after the graph is parsed or written.
|
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.
|
void |
startGraph()
Callback method used before the graph is parsed or written.
|
endPrefixMapping, startPrefixMapping
public RdfTurtleWriter(Writer writer) throws IOException
writer
- The character writer.IOException
public void endGraph() throws IOException
GraphHandler
endGraph
in class GraphHandler
IOException
public void link(Graph source, Reference typeRef, Literal target)
GraphHandler
link
in class GraphHandler
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 link(Graph source, Reference typeRef, Reference target)
GraphHandler
link
in class GraphHandler
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 link(Reference source, Reference typeRef, Literal target)
GraphHandler
link
in class GraphHandler
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 link(Reference source, Reference typeRef, Reference target)
GraphHandler
link
in class GraphHandler
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()
GraphHandler
startGraph
in class GraphHandler
Copyright © 2005–2016. All rights reserved.