public class TriGPlusWriter extends Object
GraphCollection to a file.| Constructor and Description |
|---|
TriGPlusWriter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
writeFile(GraphCollection gc,
String path)
Writes a
GraphCollection to a file (prefixes are applied by
default). |
static void |
writeFile(GraphCollection gc,
String path,
boolean applyPrefixes)
Writes a
GraphCollection to a file. |
static void |
writeGraph(BufferedWriter bw,
NamedGraph g,
int padding)
Writes a
NamedGraph to a BufferedWriter (recursive). |
public static void writeFile(GraphCollection gc, String path) throws Exception
GraphCollection to a file (prefixes are applied by
default).gc - GraphCollection to writepath - file name and pathExceptionpublic static void writeFile(GraphCollection gc, String path, boolean applyPrefixes) throws Exception
GraphCollection to a file.gc - GraphCollection to writepath - file name and pathapplyPrefixes - boolean, true if prefixes shall be applied, false otherwiseExceptionpublic static void writeGraph(BufferedWriter bw, NamedGraph g, int padding) throws Exception
NamedGraph to a BufferedWriter (recursive).bw - BufferedWriter to write tog - NamedGraph to writepadding - indentation level (number of tabs)ExceptionCopyright © 2018. All rights reserved.