Beyond diagnostics and completion, SWLS enriches editing with three quality-of-life features: hover documentation that surfaces ontology metadata for any IRI, a rename operation for terms defined in the current file, and a document formatter for Turtle and JSON-LD. Together they reduce the need to switch between the editor and external ontology browsers.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.
Hover
Hovering over any IRI — whether a class, property, or individual — shows a tooltip populated from loaded ontologies. The tooltip includes:rdfs:label— the human-readable name of the termrdfs:comment— the term’s description or usage noterdf:type— the term’s type (e.g.owl:Class,owl:ObjectProperty)
swls.ontologies (and not already bundled) will show an empty tooltip.
Rename
Use VS Code’s Rename Symbol command (F2) to rename any term that is defined within the current file. SWLS updates every reference to that term in the document.
Formatting
SWLS registers a document formatter for Turtle (.ttl) and JSON-LD (.jsonld, .json) files. Trigger it with the VS Code Format Document command:
- Keyboard:
Shift+Alt+F(Windows/Linux) orShift+Option+F(macOS) - Command Palette:
Format Document - Right-click menu: Format Document
Formatting is currently supported for Turtle and JSON-LD only. TriG and SPARQL documents are not formatted by SWLS.
Format on save
Enable format-on-save per language in your VS Codesettings.json to keep files consistently formatted without an extra keystroke: