Provides N3 syntax checking, code themes, formatting, and N3 code execution.
N3 code syntax is checked as per the latest N3 grammar.
Missing namespaces are suggested based on a default file that is currently quite limited. You can extend this file and point to its path in the extension settings.
To use a code theme, open an
You can execute your N3 code using eye or jen3. (Command Palette -
You can format N3 code using the regular VSCode shortcut (default: Alt-Shift-F on Windows, Option-Shift-F on Mac, Ctrl-Shift-i on Linux).
By default, prefix and base declarations are formatted as well: meaning they are grouped at the top, written using the '@' syntax, and sorted alphabetically. This option can be turned off in the extension settings.
You can debug your N3 code using eye. (Command Palette -
By default, the extension will group traces per subject (here,
You can also insert a trace statement using the right-click context menu (
You can then fill in the variables to be traced in the object list.
Loading multiple files
To execute multiple files, in addition to the current editor file, add the following "directive" at the top of the editor file (i.e., the n3 file you wish to execute):
(it is not part of the N3 grammar, so put the comment
If the file path is not absolute (e.g.,
To find out the absolute paths of all executed files, check the
Please post any issues on the github repo.