pub enum QueryForm {
Select {
variables: SelectVariables,
where_clause: GraphPattern,
distinct: bool,
reduced: bool,
order_by: Vec<OrderExpression>,
offset: usize,
limit: Option<usize>,
},
Construct {
template: Vec<AlgebraTriplePattern>,
where_clause: GraphPattern,
order_by: Vec<OrderExpression>,
offset: usize,
limit: Option<usize>,
},
Describe {
resources: Vec<TermPattern>,
where_clause: Option<GraphPattern>,
order_by: Vec<OrderExpression>,
offset: usize,
limit: Option<usize>,
},
Ask {
where_clause: GraphPattern,
},
}
Expand description
SPARQL query forms
Variants§
Select
SELECT query
Fields
§
variables: SelectVariables
SELECT * or specific variables
§
where_clause: GraphPattern
WHERE clause pattern
§
order_by: Vec<OrderExpression>
Construct
CONSTRUCT query
Fields
§
template: Vec<AlgebraTriplePattern>
Template for constructing triples
§
where_clause: GraphPattern
WHERE clause pattern
§
order_by: Vec<OrderExpression>
Solution modifiers
Describe
DESCRIBE query
Fields
§
resources: Vec<TermPattern>
Resources to describe
§
where_clause: Option<GraphPattern>
Optional WHERE clause
§
order_by: Vec<OrderExpression>
Solution modifiers
Ask
ASK query
Fields
§
where_clause: GraphPattern
Pattern to check
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QueryForm
impl<'de> Deserialize<'de> for QueryForm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for QueryForm
Auto Trait Implementations§
impl Freeze for QueryForm
impl RefUnwindSafe for QueryForm
impl Send for QueryForm
impl Sync for QueryForm
impl Unpin for QueryForm
impl UnwindSafe for QueryForm
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more