Skip to content

Commit 3c6b442

Browse files
gkelloggpchampin
andcommitted
Apply suggestions from code review
Improve compaction example. Co-Authored-By: Pierre-Antoine Champin <[email protected]>
1 parent c482f45 commit 3c6b442

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

tests/expand/pr29-in.jsonld

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"@version": 1.1,
44
"tag": {"@id": "http://example.org/ns/tag/", "@prefix": false}
55
},
6-
"tag:champin.net,2019:prop": "This is not treated as a Compact IRI"
6+
"tag:champin.net,2019:prop": "This is not treated as a Compact IRI",
7+
"tag": "tricky"
78
}

tests/expand/pr29-out.jsonld

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
[
2+
{
3+
"http://example.org/ns/tag/": [
4+
{
5+
"@value": "tricky"
6+
}
7+
]
8+
},
29
{
310
"tag:champin.net,2019:prop": [
411
{
512
"@value": "This is not treated as a Compact IRI"
613
}
714
]
815
}
9-
]
16+
]

0 commit comments

Comments
 (0)