Skip to main content

jsonld_lov_undefined_prefix_completion

Function jsonld_lov_undefined_prefix_completion 

Source
pub fn jsonld_lov_undefined_prefix_completion(
    query: Query<'_, '_, (&Source, &RopeC, &TokenComponent, &Prefixes, &mut CompletionRequest, &DynLang), With<JsonLdLang>>,
    lovs: Query<'_, '_, &LocalPrefix>,
    prefix_cc: Query<'_, '_, &PrefixEntry>,
    config: Res<'_, ServerConfig>,
)
Expand description

JSON-LD prefix completion from LOV / prefix.cc.

Suggests prefixes that are not yet declared in the document’s @context and produces an additional TextEdit via add_to_context that inserts the new prefix declaration into the @context value.

Uses [DynLang::quote] so the inserted predicate text is correctly wrapped in JSON string quotes (e.g. "foaf:").