@@ -18,18 +18,11 @@ For example a newly added property and the related value could be shown in the U
18
18
19
19
== Getting Started
20
20
21
- === Install from the public npm (Currently not available):
21
+ === Install from GitHub release repository
22
22
23
- [source,bash]
24
- ----
25
- npm install @esmf/aspect-model-loader
26
- ----
27
-
28
- === Install from github release repository:
29
-
30
- [source,bash]
23
+ [source,shell,subs="attributes+,+quotes"]
31
24
----
32
- npm install https://github.com/eclipse-esmf/esmf-sdk-js-aspect-model-loader/releases/download/<TAG_VERSION> /esmf-aspect-model-loader-x.x.x .tgz
25
+ npm install https://github.com/eclipse-esmf/esmf-sdk-js-aspect-model-loader/releases/download/v{esmf-sdk-js-aspect-model-loader-version} /esmf-aspect-model-loader-{esmf-sdk-js-aspect-model-loader-version} .tgz
33
26
----
34
27
35
28
== Usage
@@ -38,7 +31,7 @@ This package contains two methods for loading Turtle (.ttl) files (string value
38
31
39
32
Load an aspect model which is self-contained (includes no imports to other ttl file):
40
33
41
- [source,bash ]
34
+ [source,javascript ]
42
35
----
43
36
new AspectModelLoader().loadSelfContainedModel(ttl).subscribe((aspect: Aspect) => {
44
37
...
@@ -47,7 +40,7 @@ new AspectModelLoader().loadSelfContainedModel(ttl).subscribe((aspect: Aspect) =
47
40
48
41
or if the model contains imports to additional ttl files:
49
42
50
- [source,bash ]
43
+ [source,javascript ]
51
44
----
52
45
new AspectModelLoader().load('<aspect-model-urn>', ttl-1, ttl-2, ttl-3).subscribe((aspect: Aspect) => {
53
46
...
@@ -62,14 +55,14 @@ This module exposes some helper functions that can be used to find items inside
62
55
63
56
Find a specific model element, and returns it or undefined.
64
57
65
- [source,bash ]
58
+ [source,javascript ]
66
59
----
67
60
let specificElement = loader.findByUrn(options.urnSelectedModelElement)
68
61
----
69
62
70
63
Find a specific model element by name, and returns the found elements.
71
64
72
- [source,bash ]
65
+ [source,javascript ]
73
66
----
74
67
let specificElement = loader.findByName(options.selectedModelName)
75
68
----
0 commit comments