RdfDataset constructor

RdfDataset({
  1. required RdfGraph defaultGraph,
  2. required Map<RdfGraphName, RdfGraph> namedGraphs,
})

Creates an RDF dataset with the specified default graph and named graphs

This is the primary constructor for creating datasets with full control over both the default graph and named graph collection.

Parameters:

  • defaultGraph The default (unnamed) graph for this dataset
  • namedGraphs Map of IRI names to their corresponding graphs

Example:

final dataset = RdfDataset(
  defaultGraph: myDefaultGraph,
  namedGraphs: {
    IriTerm('http://example.org/people'): peopleGraph,
    IriTerm('http://example.org/places'): placesGraph,
  },
);

Implementation

RdfDataset(
    {required this.defaultGraph,
    required Map<RdfGraphName, RdfGraph> namedGraphs})
    : _namedGraphs = namedGraphs;