|
|
@ -278,7 +278,7 @@ impl PyStore { |
|
|
|
/// >>> store.load(io.BytesIO(b'<foo> <p> "1" .'), "text/turtle", base_iri="http://example.com/", to_graph=NamedNode("http://example.com/g"))
|
|
|
|
/// >>> store.load(io.BytesIO(b'<foo> <p> "1" .'), "text/turtle", base_iri="http://example.com/", to_graph=NamedNode("http://example.com/g"))
|
|
|
|
/// >>> list(store)
|
|
|
|
/// >>> list(store)
|
|
|
|
/// [<Quad subject=<NamedNode value=http://example.com/foo> predicate=<NamedNode value=http://example.com/p> object=<Literal value=1 datatype=<NamedNode value=http://www.w3.org/2001/XMLSchema#string>> graph_name=<NamedNode value=http://example.com/g>>]
|
|
|
|
/// [<Quad subject=<NamedNode value=http://example.com/foo> predicate=<NamedNode value=http://example.com/p> object=<Literal value=1 datatype=<NamedNode value=http://www.w3.org/2001/XMLSchema#string>> graph_name=<NamedNode value=http://example.com/g>>]
|
|
|
|
#[pyo3(text_signature = "($self, input, /, mime_type, *, base_iri = None, to_graph = None)")] |
|
|
|
#[pyo3(text_signature = "($self, input, mime_type, *, base_iri = None, to_graph = None)")] |
|
|
|
#[args(input, mime_type, "*", base_iri = "None", to_graph = "None")] |
|
|
|
#[args(input, mime_type, "*", base_iri = "None", to_graph = "None")] |
|
|
|
fn load( |
|
|
|
fn load( |
|
|
|
&self, |
|
|
|
&self, |
|
|
@ -362,7 +362,7 @@ impl PyStore { |
|
|
|
/// >>> store.bulk_load(io.BytesIO(b'<foo> <p> "1" .'), "text/turtle", base_iri="http://example.com/", to_graph=NamedNode("http://example.com/g"))
|
|
|
|
/// >>> store.bulk_load(io.BytesIO(b'<foo> <p> "1" .'), "text/turtle", base_iri="http://example.com/", to_graph=NamedNode("http://example.com/g"))
|
|
|
|
/// >>> list(store)
|
|
|
|
/// >>> list(store)
|
|
|
|
/// [<Quad subject=<NamedNode value=http://example.com/foo> predicate=<NamedNode value=http://example.com/p> object=<Literal value=1 datatype=<NamedNode value=http://www.w3.org/2001/XMLSchema#string>> graph_name=<NamedNode value=http://example.com/g>>]
|
|
|
|
/// [<Quad subject=<NamedNode value=http://example.com/foo> predicate=<NamedNode value=http://example.com/p> object=<Literal value=1 datatype=<NamedNode value=http://www.w3.org/2001/XMLSchema#string>> graph_name=<NamedNode value=http://example.com/g>>]
|
|
|
|
#[pyo3(text_signature = "($self, input, /, mime_type, *, base_iri = None, to_graph = None)")] |
|
|
|
#[pyo3(text_signature = "($self, input, mime_type, *, base_iri = None, to_graph = None)")] |
|
|
|
#[args(input, mime_type, "*", base_iri = "None", to_graph = "None")] |
|
|
|
#[args(input, mime_type, "*", base_iri = "None", to_graph = "None")] |
|
|
|
fn bulk_load( |
|
|
|
fn bulk_load( |
|
|
|
&self, |
|
|
|
&self, |
|
|
@ -442,7 +442,7 @@ impl PyStore { |
|
|
|
/// >>> store.dump(output, "text/turtle", from_graph=NamedNode("http://example.com/g"))
|
|
|
|
/// >>> store.dump(output, "text/turtle", from_graph=NamedNode("http://example.com/g"))
|
|
|
|
/// >>> output.getvalue()
|
|
|
|
/// >>> output.getvalue()
|
|
|
|
/// b'<http://example.com> <http://example.com/p> "1" .\n'
|
|
|
|
/// b'<http://example.com> <http://example.com/p> "1" .\n'
|
|
|
|
#[pyo3(text_signature = "($self, output, /, mime_type, *, from_graph = None)")] |
|
|
|
#[pyo3(text_signature = "($self, output, mime_type, *, from_graph = None)")] |
|
|
|
#[args(output, mime_type, "*", from_graph = "None")] |
|
|
|
#[args(output, mime_type, "*", from_graph = "None")] |
|
|
|
fn dump( |
|
|
|
fn dump( |
|
|
|
&self, |
|
|
|
&self, |
|
|
|