pub enum NodeSelector {
Node(ObjectValue),
TriplePattern {
subject: Pattern,
pred: IriS,
object: Pattern,
},
TriplePatternPath {
subject: Pattern,
pred: SHACLPath,
object: Pattern,
},
Sparql {
query: String,
},
Generic {
iri: IriS,
param: String,
},
}
Expand description
A NodeSelector following ShapeMap spec can be used to select RDF Nodes
Variants§
Implementations§
Source§impl NodeSelector
impl NodeSelector
pub fn iri_unchecked(str: &str) -> NodeSelector
pub fn iri_ref(iri: IriRef) -> NodeSelector
pub fn literal(lit: Literal) -> NodeSelector
pub fn prefixed(alias: &str, local: &str) -> NodeSelector
pub fn iter_node<S>(&self, _rdf: &S) -> impl Iterator<Item = &ObjectValue>where
S: SRDF,
Trait Implementations§
Source§impl Clone for NodeSelector
impl Clone for NodeSelector
Source§fn clone(&self) -> NodeSelector
fn clone(&self) -> NodeSelector
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 NodeSelector
impl Debug for NodeSelector
Source§impl PartialEq for NodeSelector
impl PartialEq for NodeSelector
Source§impl Serialize for NodeSelector
impl Serialize for NodeSelector
impl StructuralPartialEq for NodeSelector
Auto Trait Implementations§
impl Freeze for NodeSelector
impl RefUnwindSafe for NodeSelector
impl Send for NodeSelector
impl Sync for NodeSelector
impl Unpin for NodeSelector
impl UnwindSafe for NodeSelector
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