diff --git a/python/src/store.rs b/python/src/store.rs index 935cbdcf..1bacff99 100644 --- a/python/src/store.rs +++ b/python/src/store.rs @@ -354,7 +354,7 @@ impl PyStore { /// :raises IOError: if an I/O error happens during a quad insertion. /// /// >>> store = Store() - /// >>> store.load(io.BytesIO(b'

"1" .'), "text/turtle", base_iri="http://example.com/", to_graph=NamedNode("http://example.com/g")) + /// >>> store.load_from_stream(io.BytesIO(b'

"1" .'), "text/turtle", base_iri="http://example.com/", to_graph=NamedNode("http://example.com/g")) /// >>> list(store) /// [ predicate= object=> graph_name=>] #[pyo3(text_signature = "($self, data, /, mime_type, *, base_iri = None, to_graph = None)")] @@ -433,7 +433,8 @@ impl PyStore { /// :raises IOError: if an I/O error happens during a quad insertion. /// /// >>> store = Store() - /// >>> store.load(io.BytesIO(b'

"1" .'), "text/turtle", base_iri="http://example.com/", to_graph=NamedNode("http://example.com/g")) + /// >>> data = '

"1" .' + /// >>> store.load_from_data(data, "text/turtle", base_iri="http://example.com/", to_graph=NamedNode("http://example.com/g")) /// >>> list(store) /// [ predicate= object=> graph_name=>] #[pyo3(text_signature = "($self, data, /, mime_type, *, base_iri = None, to_graph = None)")]