public class TurtleRenderer extends Object
Constructor and Description |
---|
TurtleRenderer(Writer writer)
Constructs a Turtle renderer.
|
Modifier and Type | Method and Description |
---|---|
boolean |
loadPrefixes(Collection<String> identifiers)
Loads a set of names and gets the prefixes from these names.
|
void |
renderPrefixes()
Renders the prefixes with their abbreviations.
|
void |
renderTriple(String predicate,
String subject,
String object)
Renders a triple trying to replace prefixes by their abbreviations.
|
public TurtleRenderer(Writer writer)
writer
- writerpublic boolean loadPrefixes(Collection<String> identifiers)
identifiers
- namestrue
if and only if at least one prefix has been
foundpublic void renderPrefixes() throws IOException
IOException
- if an I/O error occurspublic void renderTriple(String predicate, String subject, String object) throws IOException
predicate
- predicatesubject
- subjectobject
- objectIOException
- if an I/O error occursCopyright © 2009–2015 Chair of Automata Theory - TU Dresden. All rights reserved.