pub enum GraphPattern {
Show 18 variants
Bgp {
patterns: Vec<TriplePattern>,
},
Path {
subject: TermPattern,
path: PropertyPathExpression,
object: TermPattern,
},
Join {
left: Box<Self>,
right: Box<Self>,
},
LeftJoin {
left: Box<Self>,
right: Box<Self>,
expression: Option<Expression>,
},
Lateral {
left: Box<Self>,
right: Box<Self>,
},
Filter {
expr: Expression,
inner: Box<Self>,
},
Union {
left: Box<Self>,
right: Box<Self>,
},
Graph {
name: NamedNodePattern,
inner: Box<Self>,
},
Extend {
inner: Box<Self>,
variable: Variable,
expression: Expression,
},
Minus {
left: Box<Self>,
right: Box<Self>,
},
Values {
variables: Vec<Variable>,
bindings: Vec<Vec<Option<GroundTerm>>>,
},
OrderBy {
inner: Box<Self>,
expression: Vec<OrderExpression>,
},
Project {
inner: Box<Self>,
variables: Vec<Variable>,
},
Distinct {
inner: Box<Self>,
},
Reduced {
inner: Box<Self>,
},
Slice {
inner: Box<Self>,
start: usize,
length: Option<usize>,
},
Group {
inner: Box<Self>,
variables: Vec<Variable>,
aggregates: Vec<(Variable, AggregateExpression)>,
},
Service {
name: NamedNodePattern,
inner: Box<Self>,
silent: bool,
},
}
Expand description
A SPARQL query graph pattern.
Variants§
Bgp
Fields
§
patterns: Vec<TriplePattern>
Path
Join
Join.
LeftJoin
Lateral
Lateral join i.e. evaluate right for all result row of left
Filter
Union
Graph
Extend
Minus
Values
A table used to provide inline values
OrderBy
Project
Distinct
Reduced
Slice
Group
Service
Implementations§
Source§impl GraphPattern
impl GraphPattern
Sourcepub fn on_in_scope_variable<'a>(&'a self, callback: impl FnMut(&'a Variable))
pub fn on_in_scope_variable<'a>(&'a self, callback: impl FnMut(&'a Variable))
Calls callback
on each in-scope variable occurrence.
Trait Implementations§
Source§impl Clone for GraphPattern
impl Clone for GraphPattern
Source§fn clone(&self) -> GraphPattern
fn clone(&self) -> GraphPattern
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 GraphPattern
impl Debug for GraphPattern
Source§impl Default for GraphPattern
impl Default for GraphPattern
Source§impl Display for GraphPattern
impl Display for GraphPattern
Source§impl Hash for GraphPattern
impl Hash for GraphPattern
Source§impl PartialEq for GraphPattern
impl PartialEq for GraphPattern
impl Eq for GraphPattern
impl StructuralPartialEq for GraphPattern
Auto Trait Implementations§
impl Freeze for GraphPattern
impl RefUnwindSafe for GraphPattern
impl Send for GraphPattern
impl Sync for GraphPattern
impl Unpin for GraphPattern
impl UnwindSafe for GraphPattern
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