Trait ligature::QueryTx[][src]

pub trait QueryTx {
    fn all_statements(
        &self
    ) -> Box<dyn Iterator<Item = Result<PersistedStatement, LigatureError>>>;
fn match_statements(
        &self,
        source: Option<Entity>,
        arrow: Option<Attribute>,
        target: Option<Value>
    ) -> Box<dyn Iterator<Item = Result<PersistedStatement, LigatureError>>>;
fn match_statements_range(
        &self,
        source: Option<Entity>,
        arrow: Option<Attribute>,
        target: Range
    ) -> Box<dyn Iterator<Item = Result<PersistedStatement, LigatureError>>>;
fn statement_for_context(
        &self,
        context: &Entity
    ) -> Result<Option<PersistedStatement>, LigatureError>; }

Represents a QueryTx within the context of a Ligature instance and a single Dataset

Required methods

fn all_statements(
    &self
) -> Box<dyn Iterator<Item = Result<PersistedStatement, LigatureError>>>
[src]

Returns all PersistedStatements in this Dataset.

fn match_statements(
    &self,
    source: Option<Entity>,
    arrow: Option<Attribute>,
    target: Option<Value>
) -> Box<dyn Iterator<Item = Result<PersistedStatement, LigatureError>>>
[src]

Returns all PersistedStatements that match the given criteria. If a parameter is None then it matches all, so passing all Nones is the same as calling all_statements.

fn match_statements_range(
    &self,
    source: Option<Entity>,
    arrow: Option<Attribute>,
    target: Range
) -> Box<dyn Iterator<Item = Result<PersistedStatement, LigatureError>>>
[src]

Retuns all PersistedStatements that match the given criteria. If a parameter is None then it matches all.

fn statement_for_context(
    &self,
    context: &Entity
) -> Result<Option<PersistedStatement>, LigatureError>
[src]

Returns the PersistedStatement for the given context.

Loading content...

Implementors

Loading content...