pub struct GroundTriple {
pub subject: GroundSubject,
pub predicate: NamedNode,
pub object: GroundTerm,
}
Expand description
A RDF triple without blank nodes.
The default string formatter is returning a N-Quads representation.
use spargebra::term::{GroundTriple, NamedNode};
assert_eq!(
"<http://example.com/s> <http://example.com/p> <http://example.com/o>",
GroundTriple {
subject: NamedNode::new("http://example.com/s")?.into(),
predicate: NamedNode::new("http://example.com/p")?,
object: NamedNode::new("http://example.com/o")?.into(),
}
.to_string()
);
Fields§
§subject: GroundSubject
§predicate: NamedNode
§object: GroundTerm
Trait Implementations§
Source§impl Clone for GroundTriple
impl Clone for GroundTriple
Source§fn clone(&self) -> GroundTriple
fn clone(&self) -> GroundTriple
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GroundTriple
impl Debug for GroundTriple
Source§impl Display for GroundTriple
impl Display for GroundTriple
Source§impl From<GroundTriple> for GroundSubject
impl From<GroundTriple> for GroundSubject
Source§fn from(triple: GroundTriple) -> Self
fn from(triple: GroundTriple) -> Self
Converts to this type from the input type.
Source§impl From<GroundTriple> for GroundTerm
impl From<GroundTriple> for GroundTerm
Source§fn from(triple: GroundTriple) -> Self
fn from(triple: GroundTriple) -> Self
Converts to this type from the input type.
Source§impl From<GroundTriple> for GroundTriplePattern
impl From<GroundTriple> for GroundTriplePattern
Source§fn from(triple: GroundTriple) -> Self
fn from(triple: GroundTriple) -> Self
Converts to this type from the input type.
Source§impl Hash for GroundTriple
impl Hash for GroundTriple
Source§impl PartialEq for GroundTriple
impl PartialEq for GroundTriple
Source§impl TryFrom<Triple> for GroundTriple
impl TryFrom<Triple> for GroundTriple
impl Eq for GroundTriple
impl StructuralPartialEq for GroundTriple
Auto Trait Implementations§
impl Freeze for GroundTriple
impl RefUnwindSafe for GroundTriple
impl Send for GroundTriple
impl Sync for GroundTriple
impl Unpin for GroundTriple
impl UnwindSafe for GroundTriple
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more