SWLS surfaces three categories of diagnostics directly in the editor as you type: syntax errors that prevent a document from parsing, undefined namespace prefix references that would break serialization, and SHACL constraint violations that indicate data does not conform to a loaded shape. All three appear as inline squiggles and populate the VS Code Problems panel, giving you immediate feedback without leaving your editor.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/SemanticWebLanguageServer/swls-vscode/llms.txt
Use this file to discover all available pages before exploring further.
Syntax errors
Any token or structural issue that makes a document unparsable is reported immediately. The diagnostic points to the exact position of the offending token, so you can fix it without hunting through the file.; after "Alice" causes a parse error. SWLS highlights the unexpected token and shows a message in the Problems panel.
Undefined prefixes
If you use a prefixed name whose@prefix declaration is absent from the file, SWLS flags every occurrence of that prefix. This catches typos and copy-paste errors before you run any tooling.
SHACL shape violations
When SHACL shapes are loaded — either fromswls.shapes URLs or from files in the workspace — SWLS validates each graph against those shapes and reports violations inline. A violation diagnostic includes the constraint that failed and the node that triggered it.
SHACL validation only runs when shapes are actually loaded. If
swls.shapes is empty and there are no shape files in the workspace, no shape violations will be reported regardless of the swls.disabled setting. See Ontologies and Shapes for how to load shapes.