Function json_ld_context_processing::algorithm::define

source ยท
pub async fn define<'a, N, L, W>(
    env: Environment<'a, N, L, W>,
    active_context: &'a mut Context<N::Iri, N::BlankId>,
    local_context: &'a Merged<'a>,
    term: KeyOrKeywordRef<'a>,
    defined: &'a mut DefinedTerms,
    remote_contexts: ProcessingStack<N::Iri>,
    base_url: Option<N::Iri>,
    protected: bool,
    options: Options
) -> DefineResult<L::Error>
Expand description

Follows the https://www.w3.org/TR/json-ld11-api/#create-term-definition algorithm. Default value for base_url is None. Default values for protected and override_protected are false.