Syntax Highlighting
Syntax highlighting enhances the readability of RDF documents by applying color coding to different syntax elements. Mentor aligns token types with the array of RDF namespaces that are used to determine the labels for nodes in the Definitions Tree standard semantic tokens provided by Visual Studio Code to integrate seamlessly with the developer experience of other programming languages.
Supported Formats
Section titled “Supported Formats”Mentor supports syntax highlighting for the following RDF serialization formats:
| Format | Description |
|---|---|
| N-Triples 1.1 | A line-based, plain text format for RDF data that can easily be streamed and used to flexibly combine data from multiple sources. |
| N-Quads 1.1 | An extension of N-Triples that supports named graphs. |
| Turtle 1.1 | A compact, human-friendly format for RDF data. |
| TriG 1.1 | A Turtle-based format for representing RDF graphs with named graphs. |
| RDF/XML 1.1 | An XML-based syntax for representing RDF graphs. |
| SPARQL 1.1 | A query language and protocol for RDF. |