Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>SPARQLNew to Visual Studio Code? Get it now.
SPARQL

SPARQL

Brett Zamir

|
2 installs
| (0) | Free
Syntax highlighting for SPARQL
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

sparql README

Grammar obtained from https://github.com/shikijs/shiki/pull/147/files.

Features

Adds syntax highlighting for .sparql files:

.sparql highlighting

Adds syntax highlighting for SPARQL within Markdown files:

Markdown highlighting

For example, within this file:

SELECT ?publisher ?publisherLabel (AVG(?pages) AS ?avgPages)
WHERE
{
  ?book wdt:P123 ?publisher;
        wdt:P1104 ?pages.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en". }
}
GROUP BY ?publisher ?publisherLabel
HAVING(COUNT(?book) > 1)
ORDER BY DESC(?avgPages)

Release Notes

  • See CHANGELOG.md
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft