pub struct GroundQuad {
pub subject: GroundSubject,
pub predicate: NamedNode,
pub object: GroundTerm,
pub graph_name: GraphName,
}
Expand description
A RDF triple in an RDF dataset without blank nodes.
The default string formatter is returning a N-Quads representation.
use spargebra::term::{NamedNode, GroundQuad};
assert_eq!(
"<http://example.com/s> <http://example.com/p> <http://example.com/o> <http://example.com/g>",
GroundQuad {
subject: NamedNode::new("http://example.com/s")?.into(),
predicate: NamedNode::new("http://example.com/p")?,
object: NamedNode::new("http://example.com/o")?.into(),
graph_name: NamedNode::new("http://example.com/g")?.into(),
}.to_string()
);
Fields§
§subject: GroundSubject
§predicate: NamedNode
§object: GroundTerm
§graph_name: GraphName
Trait Implementations§
Source§impl Clone for GroundQuad
impl Clone for GroundQuad
Source§fn clone(&self) -> GroundQuad
fn clone(&self) -> GroundQuad
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 GroundQuad
impl Debug for GroundQuad
Source§impl Display for GroundQuad
impl Display for GroundQuad
Source§impl Hash for GroundQuad
impl Hash for GroundQuad
Source§impl PartialEq for GroundQuad
impl PartialEq for GroundQuad
Source§impl TryFrom<Quad> for GroundQuad
impl TryFrom<Quad> for GroundQuad
impl Eq for GroundQuad
impl StructuralPartialEq for GroundQuad
Auto Trait Implementations§
impl Freeze for GroundQuad
impl RefUnwindSafe for GroundQuad
impl Send for GroundQuad
impl Sync for GroundQuad
impl Unpin for GroundQuad
impl UnwindSafe for GroundQuad
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