Semantic Web Language Server
This repo includes the source code for the semantic web language server. The language server provides IDE like functionality for semantic web languages, including Turtle, TriG, JSON-LD and SPARQL.
A live demo can be found online, built with monaco editors.
Documentation
Features
Diagnostics
- Syntax diagnostics
- Undefined prefix diagnostics
- SHACL shape diagnostics
Completion
- Prefix completion (just start writing the prefix,
foacompletes tofoaf:and adding the prefix statement) - Property completion (ordered according to domain)
- Class completion (when writing the object where the prediate is
a)
Hover
- Shows additional information about the entities like class
Rename
- Rename terms local to the current file
Formatting
- Format Turtle and JSON-LD
Highlighting
- Enables semantic highlighting
Use the LSP
Currently a fluent install is possible for NeoVim and VSCode. However the language server protocol enables swift integration into other editors.
VS Code
Install the semantic web lsp extension (vscode or open-vscode). The extension starts the lsp from WASM and starts the vscode LSP client.
You can configure the LSP to disable certain languages, this is useful as SPARQL is not fully supported yet, but comes bundled in the LSP.
Jetbrains
A zip of the Jetbrains plugin is available with the latest releases. To install the plugin you should download the zip (swls-1.1-SNAPSHOT.zip) and go to Settings (ctrl + alt + s) > Plugins > Gear > Install Plugin from Disk and select the file. Currently the plugin checks the Github releases on each startup to check if the latest binary is installed, and installs the latest binary. This is not very user friendly, certainly on low quality internet connections.
PRs are much appreciated on the Jetbrains plugin.
NeoVim
A NeoVim plugin is available at SemanticWebLanguageServer/swls.nvim.
Screenshots
| Undefined prefix | Shape violation |
|---|---|
![]() |
![]() |
| Complete Class | Complete Property |
|---|---|
![]() |
![]() |
Citation
When using the Semantic Web Language Server, please use the following citation:
A. Vercruysse, J. A. Rojas Melendez, and P. Colpaert, “The semantic web language server : enhancing the developer experience for semantic web practitioners,” in The Semantic Web : 22nd European Semantic Web Conference, ESWC 2025, Proceedings, Part II, Portoroz, Slovenia, 2025, vol. 15719, pp. 210–225.
Bibtex:
Support
If SWLS helps your workflow, consider supporting development:
License
Copyright © 2025, IMEC - IDLab - UGent. Released under the MIT License.



