-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Version: 0.3.8
Mentor does not show any ontology in the workspace, or only shows the content of the first folder in the workspace. For example, the following code-workspace file:
{
"folders": [
{
"path": "../../../ontologies/dbt-tooling"
},
{
"path": "../../../ontologies/ies-building"
},
{
"path": "../../../ontologies/ies-common"
},
{
"path": "../../../ontologies/ontology-composer"
},
{
"path": "examples"
}
]
}Shows the folder names in the same order in the VSCode Explorer:
However, the Mentor workspace shows no RDF documents, as the first folder does not contain any:
If I change the order of the folders and the first one contains RDF files, the following happens.
Note that now the workspace only shows the content of the folder examples, and that I can select a graph with <workspace:/simple_ontology.ttl>. Even if the other RDF files are not shown in the Mentor workspace, I can still select a graph using a path relative to one of the other folders, e.g. <workspace:/src/data/simple_1.ttl>
This behaviour seems to depend on how the folders in the VSCode workspace are loaded, and in which order. Hence, when I create a folder that contains all the folders I want to see in my workspace and load it as the sole folder in my workspace, e.g.
{
"folders": [
{
"path": "mentor_debug"
}
]
}where the folder content is:
$ ls mentor_debug/
dbt-tooling examples ies-building ies-common ontology-composerThen the Explorer correctly shows all those folders as sub-folders of mentor_debug:
And the Mentor workspace shows the individual folders containing RDF files:
In this case, the graph contains the name of the folder e.g. <workspace:/examples/simple_ontology.ttl>, but this only happens because the "container" folder is ignored. In my opinion, the code-workspace` file should deal with relative paths, while Mentor should parse every path in the workspace and expose a "relative" path for graph selection. I hope this helps!