Skip to content

Workspace Tree

The workspace tree in Mentor provides a hierarchical view of all supported file types within your workspace. It is a filtered view that is similar to the standard Visual Studio Code Explorer, focusing specifically on files relevant to RDF knowledge graph development.

Screenshot of the Workspace Tree in Visual Studio Code

The title bar of the workspace tree displays the current workspace folder name in the same way the standard Visual Studio Code Explorer does. It also provides quick access to common actions:

The workspace tree offers several actions that are specific to managing your RDF files:

ActionDescription
Find ProblemsForces indexing of all files in the workspace and highlights any issues found in the files within the tree view.
Create DocumentOpens a dialog to create a new RDF document in the selected folder. You can choose from various supported RDF serialization formats such as Turtle, JSON-LD, or RDF/XML.
Manage ConnectionsManage active connections to SPARQL endpoints.
Refresh TreeManually refreshes the workspace tree to reflect any recent changes in the files.
Collapse / Expand AllCollapse or Expand all nodes in the definitions tree.

Additional actions that can be accessed through the menu in the titlebar:

ActionDescription
SettingsOpens the Mentor settings where you can configure various options related to the workspace tree and indexing.
HelpOpens mentor-vscode.dev in your default browser.

Besides providing quick access to your RDF files, the workspace tree also shows issues and warnings detected in the files, allowing you to easily identify and navigate to problematic areas in your code.

ColourDescription
RedIndicates errors in the RDF files, such as syntax errors or invalid RDF constructs.
YellowIndicates warnings, such as deprecated terms or potential issues that may not prevent parsing but could lead to problems later.