Skip to content

Commit 48e75fa

Browse files
pjohnston-wileygkellogg
authored andcommitted
New test: frame-g010: Multiple named graphs
1 parent aff9169 commit 48e75fa

File tree

4 files changed

+172
-1
lines changed

4 files changed

+172
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"@context": {
3+
"@vocab": "http://example.com/",
4+
"loves": {
5+
"@type": "@id"
6+
},
7+
"unionOf": {
8+
"@type": "@id",
9+
"@id": "owl:unionOf",
10+
"@container": "@list"
11+
},
12+
"Class": "owl:Class"
13+
},
14+
"@graph": [
15+
{
16+
"@explicit": false,
17+
"@embed": "@last",
18+
"@type": [
19+
"Act",
20+
"Class"
21+
],
22+
"@graph": [{
23+
"@explicit": true,
24+
"@embed": "@always",
25+
"@type": "Person",
26+
"@id": {},
27+
"loves": {"@embed": "@never"}
28+
}]
29+
}
30+
]
31+
}

test-suite/tests/frame-g010-in.jsonld

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"@context": {
3+
"@vocab": "http://example.com/",
4+
"loves": {
5+
"@type": "@id"
6+
},
7+
"unionOf": {
8+
"@type": "@id",
9+
"@id": "owl:unionOf",
10+
"@container": "@list"
11+
},
12+
"Class": "owl:Class"
13+
},
14+
"@graph": [
15+
{
16+
"@type": "Act",
17+
"@graph": [
18+
{
19+
"@id": "Romeo",
20+
"@type": "Person"
21+
},
22+
{
23+
"@id": "Juliet",
24+
"@type": "Person"
25+
}
26+
]
27+
},
28+
{
29+
"@id": "ActTwo",
30+
"@type": "Act",
31+
"@graph": [
32+
{
33+
"@id": "Romeo",
34+
"@type": "Person",
35+
"loves": "Juliet"
36+
},
37+
{
38+
"@id": "Juliet",
39+
"@type": "Person",
40+
"loves": "Romeo"
41+
}
42+
]
43+
},
44+
{
45+
"@id": "Person",
46+
"@type": "Class",
47+
"unionOf": {
48+
"@list": [
49+
{
50+
"@id": "Montague",
51+
"@type": "Class"
52+
},
53+
{
54+
"@id": "Capulet",
55+
"@type": "Class"
56+
}
57+
]
58+
}
59+
}
60+
]
61+
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"@context": {
3+
"@vocab": "http://example.com/",
4+
"loves": {
5+
"@type": "@id"
6+
},
7+
"unionOf": {
8+
"@type": "@id",
9+
"@id": "owl:unionOf",
10+
"@container": "@list"
11+
},
12+
"Class": "owl:Class"
13+
},
14+
"@graph": [
15+
{
16+
"@graph": [
17+
{
18+
"@id": "Juliet",
19+
"@type": "Person",
20+
"loves": null
21+
},
22+
{
23+
"@id": "Romeo",
24+
"@type": "Person",
25+
"loves": null
26+
}
27+
],
28+
"@type": "Act"
29+
},
30+
{
31+
"@graph": [
32+
{
33+
"@id": "Juliet",
34+
"@type": "Person",
35+
"loves": "Romeo"
36+
},
37+
{
38+
"@id": "Romeo",
39+
"@type": "Person",
40+
"loves": "Juliet"
41+
}
42+
],
43+
"@id": "ActTwo",
44+
"@type": "Act"
45+
},
46+
{
47+
"@id": "Capulet",
48+
"@type": "Class"
49+
},
50+
{
51+
"@id": "Montague",
52+
"@type": "Class"
53+
},
54+
{
55+
"@id": "Person",
56+
"@type": "Class",
57+
"unionOf": [
58+
{
59+
"@id": "Montague",
60+
"@type": "Class"
61+
},
62+
{
63+
"@id": "Capulet",
64+
"@type": "Class"
65+
}
66+
]
67+
}
68+
]
69+
}

test-suite/tests/frame-manifest.jsonld

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,17 @@
526526
"frame": "frame-g009-frame.jsonld",
527527
"expect": "frame-g009-out.jsonld",
528528
"option": {"specVersion": "json-ld-1.1"}
529-
}, {
529+
},{
530+
"@id": "#tg010",
531+
"@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"],
532+
"name": "Multiple named graphs",
533+
"purpose": "Test embedded graphs",
534+
"input": "frame-g010-in.jsonld",
535+
"frame": "frame-g010-frame.jsonld",
536+
"expect": "frame-g010-out.jsonld",
537+
"option": {"pruneBlankNodeIdentifiers": true}
538+
},
539+
{
530540
"@id": "#tp010",
531541
"@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"],
532542
"name": "property CURIE conflict (prune bnodes)",

0 commit comments

Comments
 (0)