pub enum FocusSource {
SubjectsOf(NamedNode),
ObjectsOf(NamedNode),
Node(Term),
PathToConst {
path: Path,
target: Term,
},
ScanFilter {
path: Path,
qualifier: ShapeId,
},
Sparql(SparqlTarget),
}Expand description
How to enumerate the focus nodes of a statement.
Variants§
SubjectsOf(NamedNode)
sh:targetSubjectsOf p — subjects of (·, p, ·).
ObjectsOf(NamedNode)
sh:targetObjectsOf p — objects of (·, p, ·).
Node(Term)
sh:targetNode c — a single node.
PathToConst
Path selector with a constant qualifier (e.g. class targets): the focus
set is pred(target, path) — nodes reaching target along path.
ScanFilter
General path selector: scan candidate nodes, keep those with a
path-successor satisfying qualifier.
Sparql(SparqlTarget)
Parsed and canonicalized SPARQL target.
Trait Implementations§
Source§impl Clone for FocusSource
impl Clone for FocusSource
Source§fn clone(&self) -> FocusSource
fn clone(&self) -> FocusSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FocusSource
impl Debug for FocusSource
Source§impl<'de> Deserialize<'de> for FocusSource
impl<'de> Deserialize<'de> for FocusSource
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 Eq for FocusSource
Source§impl PartialEq for FocusSource
impl PartialEq for FocusSource
Source§impl Serialize for FocusSource
impl Serialize for FocusSource
impl StructuralPartialEq for FocusSource
Auto Trait Implementations§
impl Freeze for FocusSource
impl RefUnwindSafe for FocusSource
impl Send for FocusSource
impl Sync for FocusSource
impl Unpin for FocusSource
impl UnsafeUnpin for FocusSource
impl UnwindSafe for FocusSource
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.