Trait json_ld::Process

source ·
pub trait Process {
    // Required method
    async fn process_full<N, L, W>(
        &self,
        vocabulary: &mut N,
        active_context: &Context<<N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>,
        loader: &mut L,
        base_url: Option<<N as IriVocabulary>::Iri>,
        options: Options,
        warnings: W
    ) -> Result<Processed<'_, <N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>, Error<<L as Loader<<N as IriVocabulary>::Iri>>::Error>>
       where N: VocabularyMut,
             <N as IriVocabulary>::Iri: Clone + PartialEq,
             <N as BlankIdVocabulary>::BlankId: Clone + PartialEq,
             L: Loader<<N as IriVocabulary>::Iri>,
             W: WarningHandler<N>;

    // Provided methods
    async fn process_with<N, L>(
        &self,
        vocabulary: &mut N,
        active_context: &Context<<N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>,
        loader: &mut L,
        base_url: Option<<N as IriVocabulary>::Iri>,
        options: Options
    ) -> Result<Processed<'_, <N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>, Error<<L as Loader<<N as IriVocabulary>::Iri>>::Error>>
       where N: VocabularyMut,
             <N as IriVocabulary>::Iri: Clone + PartialEq,
             <N as BlankIdVocabulary>::BlankId: Clone + PartialEq,
             L: Loader<<N as IriVocabulary>::Iri> { ... }
    async fn process<N, L>(
        &self,
        vocabulary: &mut N,
        loader: &mut L,
        base_url: Option<<N as IriVocabulary>::Iri>
    ) -> Result<Processed<'_, <N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>, Error<<L as Loader<<N as IriVocabulary>::Iri>>::Error>>
       where N: VocabularyMut,
             <N as IriVocabulary>::Iri: Clone + PartialEq,
             <N as BlankIdVocabulary>::BlankId: Clone + PartialEq,
             L: Loader<<N as IriVocabulary>::Iri> { ... }
}

Required Methods§

source

async fn process_full<N, L, W>( &self, vocabulary: &mut N, active_context: &Context<<N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>, loader: &mut L, base_url: Option<<N as IriVocabulary>::Iri>, options: Options, warnings: W ) -> Result<Processed<'_, <N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>, Error<<L as Loader<<N as IriVocabulary>::Iri>>::Error>>

Process the local context with specific options.

Provided Methods§

source

async fn process_with<N, L>( &self, vocabulary: &mut N, active_context: &Context<<N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>, loader: &mut L, base_url: Option<<N as IriVocabulary>::Iri>, options: Options ) -> Result<Processed<'_, <N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>, Error<<L as Loader<<N as IriVocabulary>::Iri>>::Error>>

Process the local context with specific options.

source

async fn process<N, L>( &self, vocabulary: &mut N, loader: &mut L, base_url: Option<<N as IriVocabulary>::Iri> ) -> Result<Processed<'_, <N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>, Error<<L as Loader<<N as IriVocabulary>::Iri>>::Error>>

Process the local context with the given initial active context with the default options: is_remote is false, override_protected is false and propagate is true.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Process for Context

source§

async fn process_full<N, L, W>( &self, vocabulary: &mut N, active_context: &Context<<N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>, loader: &mut L, base_url: Option<<N as IriVocabulary>::Iri>, options: Options, warnings: W ) -> Result<Processed<'_, <N as IriVocabulary>::Iri, <N as BlankIdVocabulary>::BlankId>, Error<<L as Loader<<N as IriVocabulary>::Iri>>::Error>>

Implementors§