|
|
|
@ -111,9 +111,22 @@ impl PyNamedNode { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// :rtype: typing.Any
|
|
|
|
|
fn __getnewargs__(&self) -> (&str,) { |
|
|
|
|
(self.value(),) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// :rtype: NamedNode
|
|
|
|
|
fn __copy__(slf: PyRef<'_, Self>) -> PyRef<Self> { |
|
|
|
|
slf |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// :type memo: typing.Any
|
|
|
|
|
/// :rtype: NamedNode
|
|
|
|
|
#[allow(unused_variables)] |
|
|
|
|
fn __deepcopy__<'a>(slf: PyRef<'a, Self>, memo: &'_ PyAny) -> PyRef<'a, Self> { |
|
|
|
|
slf |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// An RDF `blank node <https://www.w3.org/TR/rdf11-concepts/#dfn-blank-node>`_.
|
|
|
|
@ -221,9 +234,22 @@ impl PyBlankNode { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// :rtype: typing.Any
|
|
|
|
|
fn __getnewargs__(&self) -> (&str,) { |
|
|
|
|
(self.value(),) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// :rtype: BlankNode
|
|
|
|
|
fn __copy__(slf: PyRef<'_, Self>) -> PyRef<Self> { |
|
|
|
|
slf |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// :type memo: typing.Any
|
|
|
|
|
/// :rtype: BlankNode
|
|
|
|
|
#[allow(unused_variables)] |
|
|
|
|
fn __deepcopy__<'a>(slf: PyRef<'a, Self>, memo: &'_ PyAny) -> PyRef<'a, Self> { |
|
|
|
|
slf |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// An RDF `literal <https://www.w3.org/TR/rdf11-concepts/#dfn-literal>`_.
|
|
|
|
@ -361,6 +387,7 @@ impl PyLiteral { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// :rtype: typing.Any
|
|
|
|
|
fn __getnewargs_ex__<'a>(&'a self, py: Python<'a>) -> PyResult<((&'a str,), &'a PyDict)> { |
|
|
|
|
let kwargs = PyDict::new(py); |
|
|
|
|
if let Some(language) = self.language() { |
|
|
|
@ -370,6 +397,18 @@ impl PyLiteral { |
|
|
|
|
} |
|
|
|
|
Ok(((self.value(),), kwargs)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// :rtype: Literal
|
|
|
|
|
fn __copy__(slf: PyRef<'_, Self>) -> PyRef<Self> { |
|
|
|
|
slf |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// :type memo: typing.Any
|
|
|
|
|
/// :rtype: Literal
|
|
|
|
|
#[allow(unused_variables)] |
|
|
|
|
fn __deepcopy__<'a>(slf: PyRef<'a, Self>, memo: &'_ PyAny) -> PyRef<'a, Self> { |
|
|
|
|
slf |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// The RDF `default graph name <https://www.w3.org/TR/rdf11-concepts/#dfn-default-graph>`_.
|
|
|
|
@ -425,9 +464,22 @@ impl PyDefaultGraph { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// :rtype: typing.Any
|
|
|
|
|
fn __getnewargs__<'a>(&self, py: Python<'a>) -> &'a PyTuple { |
|
|
|
|
PyTuple::empty(py) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// :rtype: DefaultGraph
|
|
|
|
|
fn __copy__(slf: PyRef<'_, Self>) -> PyRef<Self> { |
|
|
|
|
slf |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// :type memo: typing.Any
|
|
|
|
|
/// :rtype: DefaultGraph
|
|
|
|
|
#[allow(unused_variables)] |
|
|
|
|
fn __deepcopy__<'a>(slf: PyRef<'a, Self>, memo: &'_ PyAny) -> PyRef<'a, Self> { |
|
|
|
|
slf |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#[derive(FromPyObject)] |
|
|
|
@ -674,9 +726,22 @@ impl PyTriple { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// :rtype: typing.Any
|
|
|
|
|
fn __getnewargs__(&self) -> (PySubject, PyNamedNode, PyTerm) { |
|
|
|
|
(self.subject(), self.predicate(), self.object()) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// :rtype: Triple
|
|
|
|
|
fn __copy__(slf: PyRef<'_, Self>) -> PyRef<Self> { |
|
|
|
|
slf |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// :type memo: typing.Any
|
|
|
|
|
/// :rtype: Triple
|
|
|
|
|
#[allow(unused_variables)] |
|
|
|
|
fn __deepcopy__<'a>(slf: PyRef<'a, Self>, memo: &'_ PyAny) -> PyRef<'a, Self> { |
|
|
|
|
slf |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#[derive(FromPyObject)] |
|
|
|
@ -889,6 +954,7 @@ impl PyQuad { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// :rtype: typing.Any
|
|
|
|
|
fn __getnewargs__(&self) -> (PySubject, PyNamedNode, PyTerm, PyGraphName) { |
|
|
|
|
( |
|
|
|
|
self.subject(), |
|
|
|
@ -897,6 +963,18 @@ impl PyQuad { |
|
|
|
|
self.graph_name(), |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// :rtype: Quad
|
|
|
|
|
fn __copy__(slf: PyRef<'_, Self>) -> PyRef<Self> { |
|
|
|
|
slf |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// :type memo: typing.Any
|
|
|
|
|
/// :rtype: Quad
|
|
|
|
|
#[allow(unused_variables)] |
|
|
|
|
fn __deepcopy__<'a>(slf: PyRef<'a, Self>, memo: &'_ PyAny) -> PyRef<'a, Self> { |
|
|
|
|
slf |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// A SPARQL query variable.
|
|
|
|
@ -969,9 +1047,22 @@ impl PyVariable { |
|
|
|
|
eq_compare(self, other, op) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// :rtype: typing.Any
|
|
|
|
|
fn __getnewargs__(&self) -> (&str,) { |
|
|
|
|
(self.value(),) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// :rtype: Variable
|
|
|
|
|
fn __copy__(slf: PyRef<'_, Self>) -> PyRef<Self> { |
|
|
|
|
slf |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// :type memo: typing.Any
|
|
|
|
|
/// :rtype: Variable
|
|
|
|
|
#[allow(unused_variables)] |
|
|
|
|
fn __deepcopy__<'a>(slf: PyRef<'a, Self>, memo: &'_ PyAny) -> PyRef<'a, Self> { |
|
|
|
|
slf |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
pub struct PyNamedNodeRef<'a>(PyRef<'a, PyNamedNode>); |
|
|
|
|