Interface JsonLdUnionGraph

All Superinterfaces:
AutoCloseable, Graph, GraphLike<Triple>, JsonLdGraphLike<Triple>
All Known Implementing Classes:
JsonLdUnionGraphImpl

public interface JsonLdUnionGraph extends JsonLdGraphLike<Triple>, Graph
A union graph representation of a JsonLd RDFDataset.

A union graph contains all the triples of the dataset, irregardless of their graph names.

Graph.add(Triple) and Graph.add(BlankNodeOrIRI, IRI, RDFTerm) will add the triple to the default graph (e.g. @default in JSON-LD), while the remaining methods (including Graph.remove(Triple) or Graph.remove(BlankNodeOrIRI, IRI, RDFTerm)) relate to triples from all graphs.

Note: Some operations like GraphLike.stream() and GraphLike.size() are inefficient as they skip any duplicate triples from multiple graphs.