Skip to content

Commit 2f1763e

Browse files
committed
added a test for issue #167
1 parent a124ac1 commit 2f1763e

4 files changed

Lines changed: 71 additions & 1 deletion

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"@context": {
3+
"dc": "http://purl.org/dc/elements/1.1/",
4+
"ex": "http://example.org/vocab#"
5+
},
6+
"@type": "ex:Library",
7+
"ex:contains": {
8+
"@explicit":true,
9+
"dc:title":{"@default":"Title missing"},
10+
"dc:creator":{}
11+
}
12+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"@context": {
3+
"dc": "http://purl.org/dc/elements/1.1/",
4+
"ex": "http://example.org/vocab#"
5+
},
6+
"@graph": [
7+
{
8+
"@id": "http://example.org/library",
9+
"@type": "ex:Library",
10+
"ex:contains": [{"@id":"http://example.org/library/the-republic#introduction"},{"@id":"http://example.org/library/the-republic"}]
11+
},
12+
{
13+
"@id": "http://example.org/library/the-republic",
14+
"@type": "ex:Book",
15+
"dc:creator": "Plato",
16+
"dc:title": "The Republic"
17+
},
18+
{
19+
"@id": "http://example.org/library/the-republic#introduction",
20+
"@type": "ex:Book",
21+
"dc:creator": "Plato"
22+
}
23+
]
24+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"@context": {
3+
"dc": "http://purl.org/dc/elements/1.1/",
4+
"ex": "http://example.org/vocab#"
5+
},
6+
"@graph": [
7+
{
8+
"@id": "http://example.org/library",
9+
"@type": "ex:Library",
10+
"ex:contains": [
11+
{
12+
"@id": "http://example.org/library/the-republic#introduction",
13+
"@type": "ex:Book",
14+
"dc:creator": "Plato",
15+
"dc:title": "Title missing"
16+
},
17+
{
18+
"@id": "http://example.org/library/the-republic",
19+
"@type": "ex:Book",
20+
"dc:creator": "Plato",
21+
"dc:title": "The Republic"
22+
}
23+
]
24+
}
25+
]
26+
}

core/src/test/resources/json-ld.org/frame-manifest.jsonld

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,5 +152,13 @@
152152
"input": "frame-0021-in.jsonld",
153153
"frame": "frame-0021-frame.jsonld",
154154
"expect": "frame-0021-out.jsonld"
155-
}]
155+
}
156+
, {
157+
"@id": "#t0022",
158+
"@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"],
159+
"name": "Default inside sets",
160+
"input": "frame-0022-in.jsonld",
161+
"frame": "frame-0022-frame.jsonld",
162+
"expect": "frame-0022-out.jsonld"
163+
}]
156164
}

0 commit comments

Comments
 (0)