Skip to main content

fetch_lov_properties

Function fetch_lov_properties 

Source
pub fn fetch_lov_properties<C: Client + Resource>(
    sender: Res<'_, CommandSender>,
    changed: Query<'_, '_, &Prefixes, (Or<((Changed<Prefixes>, With<Open>), Changed<Open>)>,)>,
    all_open: Query<'_, '_, &Prefixes, With<Open>>,
    locals: Query<'_, '_, (&LocalPrefix, Option<&ConfiguredOntology>)>,
    preferred: Res<'_, PreferredPrefixes>,
    revisions: Res<'_, Revisions>,
    seen: Local<'_, Seen>,
    loaded: Local<'_, HashSet<String>>,
    client: Res<'_, C>,
    fs: Res<'_, Fs>,
)
Expand description

Load the ontology documents for every prefix used in an open document.

Which documents are loaded, and under which label, is decided by namespace_sources: configured ontologies each get their own document, otherwise the built-in or remote LOV ontology is loaded at <cache>/<prefix>.ttl.

Runs for open documents whose prefixes changed, and for all open documents when configured ontologies arrive (they are loaded asynchronously at startup, possibly after the first document was opened).