Forked from https://github.com/Microsoft/vscode-extension-samples/tree/main/lsp-sample
Please use https://marketplace.visualstudio.com/items?itemName=stardog-union.vscode-langserver-sparql for syntax highlighting.
This Language Server works for SPARQL queries. It has the following language features:
- Auto complete prefix
- IntelliSense for terms (
class
orproperty
)
.
├── client // Language Client
│ ├── src
│ │ └── extension.ts // Language Client entry point
├── package.json // The extension manifest.
└── server // Language Server
└── src
└── server.ts // Language Server entry point
- Download and install extension https://marketplace.visualstudio.com/items?itemName=Fireblossom.sparql-auto-completion
- Open a document in 'SPAQRL' language mode.
- Enter text content such as
foaf:
. The extension will auto-complete the prefixPREFIX foaf: <http://xmlns.com/foaf/0.1/>
to the file head.
- auto-import PREFIX (from http://prefix.cc/)
- Entities and properties auto-complete (from https://lov.linkeddata.es/)
- Validate (SHACL)