Skip to content

Problem visualising ontology folders in Mentor Workspace #61

@otellomaria

Description

@otellomaria

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:

Image

However, the Mentor workspace shows no RDF documents, as the first folder does not contain any:

Image

If I change the order of the folders and the first one contains RDF files, the following happens.

Image
Image

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-composer

Then the Explorer correctly shows all those folders as sub-folders of mentor_debug:

Image

And the Mentor workspace shows the individual folders containing RDF files:

Image

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!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions