RdfDataset.empty constructor

RdfDataset.empty()

Creates an empty RDF dataset

Creates a dataset containing only an empty default graph and no named graphs. This is useful as a starting point for building datasets incrementally.

Example:

final emptyDataset = RdfDataset.empty();
assert(emptyDataset.defaultGraph.isEmpty);
assert(emptyDataset.graphNames.isEmpty);

Implementation

RdfDataset.empty()
    : defaultGraph = RdfGraph(),
      _namedGraphs = {};