ontologyviewer 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ja.md +5 -5
- package/README.md +5 -5
- package/package.json +5 -6
package/README.ja.md
CHANGED
|
@@ -19,7 +19,7 @@ Webページ内のTurtleを、読み取り専用の **Schema** 図と **Triples*
|
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
21
|
<script type="module">
|
|
22
|
-
import ontologyviewer from "https://cdn.jsdelivr.net/npm/ontologyviewer@0.1.
|
|
22
|
+
import ontologyviewer from "https://cdn.jsdelivr.net/npm/ontologyviewer@0.1.2/dist/ontologyviewer.esm.min.mjs";
|
|
23
23
|
ontologyviewer.initialize({ startOnLoad: true });
|
|
24
24
|
</script>
|
|
25
25
|
```
|
|
@@ -28,12 +28,12 @@ Webページ内のTurtleを、読み取り専用の **Schema** 図と **Triples*
|
|
|
28
28
|
|
|
29
29
|
`examples/` のHTMLをFinderなどから直接開かないでください。ブラウザのES Moduleは `file:` URLでCORSブロックされます。`webplugin/` で `npm run examples` を実行し、`http://127.0.0.1:4173/examples/index.html` を開いてください。直開きや `dist/` 未生成時には、example画面に起動手順が表示されます。
|
|
30
30
|
|
|
31
|
-
再現性を重視するページでは完全なバージョン(`@0.1.
|
|
31
|
+
再現性を重視するページでは完全なバージョン(`@0.1.2`)を固定してください。`@10` のようなmajor指定は互換更新に追従できますが、配信内容は将来変化します。
|
|
32
32
|
|
|
33
33
|
## npmから利用
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
|
-
npm install --save-exact ontologyviewer@0.1.
|
|
36
|
+
npm install --save-exact ontologyviewer@0.1.2
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
```ts
|
|
@@ -107,13 +107,13 @@ inline `<style>` が許可されない場合は自動注入を止め、CSSを明
|
|
|
107
107
|
|
|
108
108
|
```html
|
|
109
109
|
<link rel="stylesheet"
|
|
110
|
-
href="https://cdn.jsdelivr.net/npm/ontologyviewer@0.1.
|
|
110
|
+
href="https://cdn.jsdelivr.net/npm/ontologyviewer@0.1.2/dist/ontologyviewer.css"
|
|
111
111
|
data-ontologyviewer-styles>
|
|
112
112
|
<script type="module" src="/assets/start-ontologyviewer.mjs"></script>
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
```js
|
|
116
|
-
import ontologyviewer from "https://cdn.jsdelivr.net/npm/ontologyviewer@0.1.
|
|
116
|
+
import ontologyviewer from "https://cdn.jsdelivr.net/npm/ontologyviewer@0.1.2/dist/ontologyviewer.esm.min.mjs";
|
|
117
117
|
ontologyviewer.initialize({ startOnLoad: true, injectStyles: false });
|
|
118
118
|
```
|
|
119
119
|
|
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ A standalone, read-only Turtle ontology viewer for web pages. It renders class-f
|
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
21
|
<script type="module">
|
|
22
|
-
import ontologyviewer from "https://cdn.jsdelivr.net/npm/ontologyviewer@0.1.
|
|
22
|
+
import ontologyviewer from "https://cdn.jsdelivr.net/npm/ontologyviewer@0.1.2/dist/ontologyviewer.esm.min.mjs";
|
|
23
23
|
ontologyviewer.initialize({ startOnLoad: true });
|
|
24
24
|
</script>
|
|
25
25
|
```
|
|
@@ -28,12 +28,12 @@ The inert `text/turtle` script is retained in the DOM and hidden while its viewe
|
|
|
28
28
|
|
|
29
29
|
Do not double-click the files under `examples/`: browser ES Modules are commonly blocked on `file:` URLs. From `webplugin/`, run `npm run examples` and open `http://127.0.0.1:4173/examples/index.html`. The example page now keeps an actionable message visible when it is opened incorrectly or when `dist/` has not been built.
|
|
30
30
|
|
|
31
|
-
For reproducible pages, pin a complete version (`@0.1.
|
|
31
|
+
For reproducible pages, pin a complete version (`@0.1.2`). A major selector such as `@10` follows compatible releases but can change the delivered bytes.
|
|
32
32
|
|
|
33
33
|
## Install from npm
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
|
-
npm install --save-exact ontologyviewer@0.1.
|
|
36
|
+
npm install --save-exact ontologyviewer@0.1.2
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
```ts
|
|
@@ -109,14 +109,14 @@ Automatic style injection is convenient but requires an inline `<style>`. Disabl
|
|
|
109
109
|
|
|
110
110
|
```html
|
|
111
111
|
<link rel="stylesheet"
|
|
112
|
-
href="https://cdn.jsdelivr.net/npm/ontologyviewer@0.1.
|
|
112
|
+
href="https://cdn.jsdelivr.net/npm/ontologyviewer@0.1.2/dist/ontologyviewer.css"
|
|
113
113
|
data-ontologyviewer-styles>
|
|
114
114
|
<script type="module" src="/assets/start-ontologyviewer.mjs"></script>
|
|
115
115
|
```
|
|
116
116
|
|
|
117
117
|
```js
|
|
118
118
|
// /assets/start-ontologyviewer.mjs
|
|
119
|
-
import ontologyviewer from "https://cdn.jsdelivr.net/npm/ontologyviewer@0.1.
|
|
119
|
+
import ontologyviewer from "https://cdn.jsdelivr.net/npm/ontologyviewer@0.1.2/dist/ontologyviewer.esm.min.mjs";
|
|
120
120
|
ontologyviewer.initialize({ startOnLoad: true, injectStyles: false });
|
|
121
121
|
```
|
|
122
122
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ontologyviewer",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Standalone read-only Turtle ontology viewer for web pages, with Schema and Triples diagrams powered by Cytoscape.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/ontologyviewer.esm.mjs",
|
|
@@ -56,13 +56,12 @@
|
|
|
56
56
|
"license": "MIT",
|
|
57
57
|
"repository": {
|
|
58
58
|
"type": "git",
|
|
59
|
-
"url": "git+https://github.com/yaggytter/
|
|
60
|
-
"directory": "webplugin"
|
|
59
|
+
"url": "git+https://github.com/yaggytter/ontologyviewer.git"
|
|
61
60
|
},
|
|
62
61
|
"bugs": {
|
|
63
|
-
"url": "https://github.com/yaggytter/
|
|
62
|
+
"url": "https://github.com/yaggytter/ontologyviewer/issues"
|
|
64
63
|
},
|
|
65
|
-
"homepage": "https://github.com/yaggytter/
|
|
64
|
+
"homepage": "https://github.com/yaggytter/ontologyviewer/tree/main#readme",
|
|
66
65
|
"publishConfig": {
|
|
67
66
|
"access": "public"
|
|
68
67
|
},
|
|
@@ -89,4 +88,4 @@
|
|
|
89
88
|
"typescript-eslint": "8.67.0",
|
|
90
89
|
"vitest": "4.1.11"
|
|
91
90
|
}
|
|
92
|
-
}
|
|
91
|
+
}
|