public class StringGraphsImpl extends Object implements StringGraphs
| Constructor and Description |
|---|
StringGraphsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
constructStringGraph(URI uri,
StringGraphConstructing constructing)
Reads (
StringGraph-defining) data from the given uri and
calls the corresponding methods of the StringGraphConstructing
object to construct a StringGraph. |
StringGraphBuilder |
createStringGraphBuilder() |
StringGraphDump |
createStringGraphDump(StringGraph graph)
Creates a
StringGraphDump for the given graph. |
StringGraphDump |
createStringGraphDump(StringGraph graph,
Function<String,String> idOrLabelToText)
Creates a
StringGraphDump for the given graph, using the
idOrLabelToText function to translate the ids of Nodes
and labels of Edges before dumping. |
static StringGraphs |
getInstance() |
StringGraph |
readStringGraph(URI uri)
Reads the
stringGraph from the give uri and returns it. |
void |
writeStringGraph(StringGraph stringGraph,
URI uri)
Writes the
stringGraph to the give uri. |
public static StringGraphs getInstance()
getInstance in interface StringGraphspublic StringGraphBuilder createStringGraphBuilder()
createStringGraphBuilder in interface StringGraphspublic void writeStringGraph(StringGraph stringGraph, URI uri)
StringGraphsstringGraph to the give uri.writeStringGraph in interface StringGraphspublic StringGraph readStringGraph(URI uri)
StringGraphsstringGraph from the give uri and returns it.readStringGraph in interface StringGraphspublic void constructStringGraph(URI uri, StringGraphConstructing constructing)
StringGraphsStringGraph-defining) data from the given uri and
calls the corresponding methods of the StringGraphConstructing
object to construct a StringGraph.
The same StringGraphConstructing object may be used with different URIs, e.g. to create a "merged" StringGraph.
constructStringGraph in interface StringGraphsuri - The URI to read from, formerly used with a
StringGraphs.writeStringGraph(StringGraph, URI) call to write a StringGraphconstructing - a StringGraphConstructing instance used to
construct a StringGraph from the data read from the uripublic StringGraphDump createStringGraphDump(StringGraph graph, Function<String,String> idOrLabelToText)
StringGraphsStringGraphDump for the given graph, using the
idOrLabelToText function to translate the ids of Nodes
and labels of Edges before dumping.createStringGraphDump in interface StringGraphspublic StringGraphDump createStringGraphDump(StringGraph graph)
StringGraphsStringGraphDump for the given graph.createStringGraphDump in interface StringGraphsCopyright © 2023 abego Software GmbH, Germany. All rights reserved.