Skip to content

Commit

Permalink
Update CanonLinkedTreeFormat.md
Browse files Browse the repository at this point in the history
  • Loading branch information
filip26 authored Feb 8, 2025
1 parent 6aefa04 commit 71cc772
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions doc/CanonLT.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,34 @@ interface Node {

```

### JSON Representations of Typed Value Nodes

- **Typed Value Node:**
Represents a value with an associated type.
```javascript
{ "@value": value, "@type": URI }
```

- **Ordered List Value Node:**
Represents a list of items with a specified order.
```javascript
{ "@value": [ items ], "@type": "@list" }
```

- **Unordered Set Value Node:**
Represents a set of items where order does not matter.
```javascript
{ "@value": [ items ], "@type": "@set" }
```

- **Map or Sparse Array Value Node:**
Represents a mapping of key-value pairs or a sparse array.
```javascript
{ "@value": { "key|[index]": value }, "@type": "@map" }
```

### Template

```json
{
"id|@keyword" : [
Expand Down

0 comments on commit 71cc772

Please sign in to comment.