Getting Started

Opening the example workspace

First, complete the installation and SAMM CLI setup.

  1. Open the esmf-examples repository and choose Code → Download ZIP. Extract the archive locally.

  2. In VS Code, choose File → Open Folder…​ and open the extracted repository.

  3. Open any Aspect Model and confirm that the language mode in the status bar is Turtle.

  4. Wait for the language server to start. Syntax highlighting and the outline view should become available.

Validating and navigating a model

  1. Create an arbitrary problem, e.g., by removing the closing dot of a triple.

  2. Open View → Problems and select the issue about the just removed dot.

  3. Re-add the dot.

  4. Wait for the validation to complete. The problem reported for the missing dot should disappear.

Turtle syntax validation runs while typing. Aspect Model validation runs after a pause in editing and when saving.

walkthrough validation
Figure 1. Example of validation diagnostics

If setup or validation fails, see Support.

Creating your own workspace

Create a new folder for your models and open it in VS Code. Models must be organized in a hierarchical manner, file paths must follow the structure: namespace/version/name.ttl.

models root (open folder in VS Code)
└── com.mycompany.myproduct
    ├── 1.0.0
    │   ├── MyAspect.ttl
    │   ├── MyEntity.ttl
    │   └── myProperty.ttl
    └── 1.1.0
        └── MyAspect.ttl

The namespace and version directories must match the namespace and version in the model URNs. For example, files in com.mycompany.myproduct/1.0.0 use @prefix : <urn:samm:com.mycompany.myproduct:1.0.0#> ..