Skip to content

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.

Screenshot of the Syntax Highlighting in Visual Studio Code

Mentor supports syntax highlighting for the following RDF serialization formats:

FormatDescription
N-Triples 1.1A 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.1An extension of N-Triples that supports named graphs.
Turtle 1.1A compact, human-friendly format for RDF data.
TriG 1.1A Turtle-based format for representing RDF graphs with named graphs.
RDF/XML 1.1An XML-based syntax for representing RDF graphs.
SPARQL 1.1A query language and protocol for RDF.