diff --git a/rdflib/graph.py b/rdflib/graph.py index 0abffd6a5..7fae91af8 100644 --- a/rdflib/graph.py +++ b/rdflib/graph.py @@ -319,6 +319,10 @@ class Graph(Node): context, such as true merging/demerging of sub-graphs and provenance. + Even if used with a context-aware store, Graph will only expose the quads which + belong to the default graph. To access the rest of the data, `ConjunctiveGraph` or + `Dataset` classes can be used instead. + The Graph constructor can take an identifier which identifies the Graph by name. If none is given, the graph is assigned a BNode for its identifier. @@ -1624,7 +1628,12 @@ def __contains__(self, triple_or_quad): return True return False - def add(self, triple_or_quad: Union[Tuple[Node, Node, Node, Optional[Any]], Tuple[Node, Node, Node]]) -> "ConjunctiveGraph": + def add( + self, + triple_or_quad: Union[ + Tuple[Node, Node, Node, Optional[Any]], Tuple[Node, Node, Node] + ], + ) -> "ConjunctiveGraph": """ Add a triple or quad to the store.