graphNames property

Iterable<RdfGraphName> get graphNames

Get all graph names (IRIs) in this dataset

Returns the IRI identifiers of all named graphs in this dataset. The default graph is not included as it has no name.

Returns: An iterable collection of IRI terms identifying the named graphs. May be empty if the dataset contains only the default graph.

Example:

final names = dataset.graphNames;
print('Dataset contains ${names.length} named graphs');
for (final name in names) {
  print('Graph: ${name.iri}');
}

Implementation

Iterable<RdfGraphName> get graphNames => _namedGraphs.keys;