Interface JsonLdUnionGraph
-
- All Superinterfaces:
java.lang.AutoCloseable,Graph,GraphLike<Triple>,JsonLdGraphLike<Triple>
- All Known Implementing Classes:
JsonLdUnionGraphImpl
public interface JsonLdUnionGraph extends JsonLdGraphLike<Triple>, Graph
A union graph representation of a JsonLdRDFDataset.A union graph contains all the triples of the dataset, irregardless of their graph names.
Graph.add(Triple)andGraph.add(BlankNodeOrIRI, IRI, RDFTerm)will add the triple to the default graph (e.g.@defaultin JSON-LD), while the remaining methods (includingGraph.remove(Triple)orGraph.remove(BlankNodeOrIRI, IRI, RDFTerm)) relate to triples from all graphs.Note: Some operations like
GraphLike.stream()andGraphLike.size()are inefficient as they skip any duplicate triples from multiple graphs.
-
-
Method Summary
-
Methods inherited from interface org.apache.commons.rdf.api.Graph
add, add, clear, close, contains, contains, getTriples, getTriples, iterate, iterate, remove, remove, size, stream, stream
-
Methods inherited from interface org.apache.commons.rdf.jsonldjava.JsonLdGraphLike
getRdfDataSet
-
-