Expand description
The workspace’s RDF files, loaded in the background. The workspace’s RDF files, loaded in the background.
At startup ([index_workspace]) every RDF file in the workspace folders is
loaded as a Background document, so its classes, properties and shapes
are known without opening it. Files git ignores (.gitignore, excludes,
.ignore), hidden folders, node_modules and target are skipped, also
for files created later. File changes keep them current (see
crate::document). Disable with "disabled": ["workspace_index"].
Constants§
- MAX_
WORKSPACE_ FILES - At most this many files are loaded per workspace folder.
- MAX_
WORKSPACE_ FILE_ BYTES - Larger files are skipped (generated data dumps, not vocabularies).
- WORKSPACE_
EXTENSIONS - Extensions of the files the workspace index loads. RDF/XML (
.rdf) and JSON-LD are left out;.owlfiles that turn out to be RDF/XML are skipped.
Functions§
- index_
workspace - Load the RDF files of every workspace folder in the background.
- is_
workspace_ file - Whether
urlis a file the workspace index loads. - load_
workspace_ file - Load a workspace file from disk as a background document (unless it is too large or not in a syntax swls reads).
- workspace_
root - The workspace folder
urlis inside, if any.