Function 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,
) -> Result<(), Error>
where N: VocabularyMut, N::Iri: Clone + Eq + Hash, N::BlankId: Clone + PartialEq, L: Loader, W: WarningHandler<N>,
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.