@twin.org/standards-ld-contexts 0.0.3-next.6 → 0.0.3-next.61
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.md +2 -2
- package/dist/es/ldContexts/dataspace-protocol-2024.json +57 -0
- package/dist/es/ldContexts/gs1-epcis.json +593 -0
- package/dist/es/ldContexts/gs1-vocab.json +59070 -0
- package/dist/es/ldContexts/odrl-dataspace-protocol.json +96 -0
- package/dist/es/ldContexts/schema.org.json +139 -1
- package/dist/es/ldContexts/w3c-data-integrity-v2.json +81 -0
- package/dist/es/ldContexts/w3c-odrl.json +1 -1
- package/dist/es/ldContexts/w3c-vc-data-model-v1.json +231 -0
- package/dist/es/ldContexts/w3id-cid-v1.json +113 -0
- package/dist/es/ldContexts/w3id-did-v1.json +57 -0
- package/dist/es/ldContexts/w3id-ed25519-v1.json +93 -0
- package/dist/es/ldContexts/w3id-multikey-v1.json +35 -0
- package/dist/es/ldContexts.js +66 -27
- package/dist/es/ldContexts.js.map +1 -1
- package/docs/changelog.md +486 -77
- package/docs/examples.md +19 -1
- package/package.json +4 -4
- /package/dist/es/ldContexts/{dataspace-protocol.json → dataspace-protocol-2025.json} +0 -0
- /package/dist/es/ldContexts/{un-cefact-vocab.json → un-cefact-d23b.json} +0 -0
package/docs/examples.md
CHANGED
|
@@ -1 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Standards LD Contexts Examples
|
|
2
|
+
|
|
3
|
+
These snippets show how to inspect bundled contexts and add them to the JSON-LD document cache.
|
|
4
|
+
|
|
5
|
+
## Context Cache Helpers
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import {
|
|
9
|
+
LD_CONTEXTS,
|
|
10
|
+
addAllContextsToDocumentCache,
|
|
11
|
+
addContextToDocumentCache
|
|
12
|
+
} from '@twin.org/standards-ld-contexts';
|
|
13
|
+
|
|
14
|
+
const contextCount = Object.keys(LD_CONTEXTS).length;
|
|
15
|
+
await addAllContextsToDocumentCache();
|
|
16
|
+
await addContextToDocumentCache('https://www.w3.org/ns/credentials/v2');
|
|
17
|
+
|
|
18
|
+
console.log(contextCount > 0); // true
|
|
19
|
+
```
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/standards-ld-contexts",
|
|
3
|
-
"version": "0.0.3-next.
|
|
4
|
-
"description": "Local
|
|
3
|
+
"version": "0.0.3-next.61",
|
|
4
|
+
"description": "Local JSON-LD contexts for offline and controlled use.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/
|
|
7
|
+
"url": "git+https://github.com/iotaledger/standards.git",
|
|
8
8
|
"directory": "packages/standards-ld-contexts"
|
|
9
9
|
},
|
|
10
10
|
"author": "cornel.filip@iota.org",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"specification"
|
|
45
45
|
],
|
|
46
46
|
"bugs": {
|
|
47
|
-
"url": "git+https://github.com/
|
|
47
|
+
"url": "git+https://github.com/iotaledger/standards/issues"
|
|
48
48
|
},
|
|
49
49
|
"homepage": "https://twindev.org"
|
|
50
50
|
}
|
|
File without changes
|
|
File without changes
|