Skip to content

Commit 71cc772

Browse files
authored
Update CanonLinkedTreeFormat.md
1 parent 6aefa04 commit 71cc772

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

doc/CanonLT.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,34 @@ interface Node {
3838

3939
```
4040

41+
### JSON Representations of Typed Value Nodes
42+
43+
- **Typed Value Node:**
44+
Represents a value with an associated type.
45+
```javascript
46+
{ "@value": value, "@type": URI }
47+
```
48+
49+
- **Ordered List Value Node:**
50+
Represents a list of items with a specified order.
51+
```javascript
52+
{ "@value": [ items ], "@type": "@list" }
53+
```
54+
55+
- **Unordered Set Value Node:**
56+
Represents a set of items where order does not matter.
57+
```javascript
58+
{ "@value": [ items ], "@type": "@set" }
59+
```
60+
61+
- **Map or Sparse Array Value Node:**
62+
Represents a mapping of key-value pairs or a sparse array.
63+
```javascript
64+
{ "@value": { "key|[index]": value }, "@type": "@map" }
65+
```
66+
67+
### Template
68+
4169
```json
4270
{
4371
"id|@keyword" : [

0 commit comments

Comments
 (0)