srdf::async_srdf

Trait AsyncSRDF

Source
pub trait AsyncSRDF {
    type Subject: Display + Sync + Send;
    type IRI: Display + Hash + Eq + Sync + Send;
    type BNode: Display + Sync + Send;
    type Literal: Display + Sync + Send;
    type Term: Display + Sync + Send;
    type Err: Display;

    // Required methods
    fn get_predicates_subject<'life0, 'life1, 'async_trait>(
        &'life0 self,
        subject: &'life1 Self::Subject,
    ) -> Pin<Box<dyn Future<Output = Result<HashSet<Self::IRI>, Self::Err>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_objects_for_subject_predicate<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        subject: &'life1 Self::Subject,
        pred: &'life2 Self::IRI,
    ) -> Pin<Box<dyn Future<Output = Result<HashSet<Self::Term>, Self::Err>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn get_subjects_for_object_predicate<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        object: &'life1 Self::Term,
        pred: &'life2 Self::IRI,
    ) -> Pin<Box<dyn Future<Output = Result<HashSet<Self::Subject>, Self::Err>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn get_predicates_subject<'life0, 'life1, 'async_trait>( &'life0 self, subject: &'life1 Self::Subject, ) -> Pin<Box<dyn Future<Output = Result<HashSet<Self::IRI>, Self::Err>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_objects_for_subject_predicate<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, subject: &'life1 Self::Subject, pred: &'life2 Self::IRI, ) -> Pin<Box<dyn Future<Output = Result<HashSet<Self::Term>, Self::Err>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn get_subjects_for_object_predicate<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, object: &'life1 Self::Term, pred: &'life2 Self::IRI, ) -> Pin<Box<dyn Future<Output = Result<HashSet<Self::Subject>, Self::Err>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§