This graph's metadata: its IRI, statement count and size.
Changes this graph's IRI, keeping its statements.
The new IRI.
This graph, updated.
Writes this graph's statements to a file.
Where to write, extension included.
Optionalopts: { compressed?: boolean }
compressed gzips the output.
Loads this graph's statements into an in-memory store.
Everything is held in memory at once — use Graph.toStream for a large graph.
Streams this graph's statements, for a graph too large to hold in memory.
"rdf-js" for parsed RDF/JS quads, "compressed" for the raw gzipped bytes.
A named graph within a Dataset.
Remarks
Obtain one with Dataset.getGraph, or iterate them with Dataset.getGraphs. Graphs are never constructed directly.
Example: Get a graph and count its statements
Example: Read one into an in-memory store