Skip to content

Commit e21cca4

Browse files
committed
Add simple compaction test for annotation maps
This addresses #196.
1 parent d741bd5 commit e21cca4

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"@context": {
3+
"author": {"@id": "http://example.com/vocab/author", "@container": "@annotation" }
4+
}
5+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[{
2+
"@id": "http://example.com/article",
3+
"http://example.com/vocab/author": [{
4+
"@id": "http://example.org/person/1",
5+
"@annotation": "regular"
6+
}, {
7+
"@id": "http://example.org/guest/cd24f329aa",
8+
"@annotation": "guest"
9+
}]
10+
}]
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"@context": {
3+
"author": {
4+
"@id": "http://example.com/vocab/author",
5+
"@container": "@annotation"
6+
}
7+
},
8+
"@id": "http://example.com/article",
9+
"author": {
10+
"regular": {
11+
"@id": "http://example.org/person/1"
12+
},
13+
"guest": {
14+
"@id": "http://example.org/guest/cd24f329aa"
15+
}
16+
}
17+
}

test-suite/tests/compact-manifest.jsonld

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,5 +174,11 @@
174174
"input": "compact-0028-in.jsonld",
175175
"context": "compact-0028-context.jsonld",
176176
"expect": "compact-0028-out.jsonld"
177+
}, {
178+
"@type": ["test:TestCase", "jld:CompactTest"],
179+
"name": "Simple @annotation map",
180+
"input": "compact-0029-in.jsonld",
181+
"context": "compact-0029-context.jsonld",
182+
"expect": "compact-0029-out.jsonld"
177183
}]
178184
}

0 commit comments

Comments
 (0)