Skip to main content

jsonld_property_completion

Function jsonld_property_completion 

Source
pub fn jsonld_property_completion(
    query: Query<'_, '_, (&TokenComponent, &TripleComponent, &Types, &JsonLdActiveContext, &Prefixes, &mut CompletionRequest), With<JsonLdLang>>,
    hierarchy: Res<'_, TypeHierarchy>,
    registry: Res<'_, Registry>,
    config: Res<'_, ServerConfig>,
)
Expand description

JSON-LD property completion driven by the CJS component registry.

When the cursor is in predicate position this system looks up the CJS component for the subject’s declared @type and suggests its parameter names (including inherited ones). Parameter IRIs are compacted via the document’s active @context terms first, then via declared prefixes.