Skip to main content

Module workspace

Module workspace 

Source
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; .owl files 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 url is 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 url is inside, if any.