Skip to content

Commit 010eebf

Browse files
niklaslgkellogg
authored andcommitted
Add toRdf#t0133 test of expand#t0131
1 parent e6d1ea3 commit 010eebf

File tree

4 files changed

+58
-0
lines changed

4 files changed

+58
-0
lines changed

tests/toRdf-manifest.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,6 +1270,27 @@ <h2>
12701270
</dd>
12711271
</dl>
12721272
</dd>
1273+
<dt id='t0133'>
1274+
Test t0133 Reverse term with property based indexed container
1275+
</dt>
1276+
<dd>
1277+
<dl class='entry'>
1278+
<dt>id</dt>
1279+
<dd>#t0133</dd>
1280+
<dt>Type</dt>
1281+
<dd>jld:PositiveEvaluationTest, jld:ToRDFTest</dd>
1282+
<dt>Purpose</dt>
1283+
<dd>Expanding a reverse term using @container: @index and @index set to a property (from expand#t0131)</dd>
1284+
<dt>input</dt>
1285+
<dd>
1286+
<a href='toRdf/0133-in.jsonld'>toRdf/0133-in.jsonld</a>
1287+
</dd>
1288+
<dt>expect</dt>
1289+
<dd>
1290+
<a href='toRdf/0133-out.nq'>toRdf/0133-out.nq</a>
1291+
</dd>
1292+
</dl>
1293+
</dd>
12731294
<dt id='tc001'>
12741295
Test tc001 adding new term
12751296
</dt>

tests/toRdf-manifest.jsonld

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,13 @@
396396
"purpose": "IRI resolution according to RFC3986.",
397397
"input": "toRdf/0132-in.jsonld",
398398
"expect": "toRdf/0132-out.nq"
399+
}, {
400+
"@id": "#t0133",
401+
"@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"],
402+
"name": "Reverse term with property based indexed container",
403+
"purpose": "Expanding a reverse term using @container: @index and @index set to a property (from expand#t0131)",
404+
"input": "toRdf/0133-in.jsonld",
405+
"expect": "toRdf/0133-out.nq"
399406
}, {
400407
"@id": "#tc001",
401408
"@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"],

tests/toRdf/0133-in.jsonld

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[
2+
{
3+
"@id": "https://example.org/item/1",
4+
"@reverse": {
5+
"http://www.w3.org/1999/02/22-rdf-syntax-ns#subject": [
6+
{
7+
"https://example.net/ns#addedIn": [
8+
{
9+
"@id": "https://example.org/v1"
10+
}
11+
],
12+
"http://www.w3.org/1999/02/22-rdf-syntax-ns#object": [
13+
{
14+
"@id": "https://example.net/ns#A"
15+
}
16+
],
17+
"http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate": [
18+
{
19+
"@id": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
20+
}
21+
]
22+
}
23+
]
24+
}
25+
}
26+
]

tests/toRdf/0133-out.nq

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
_:b0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <https://example.net/ns#A> .
2+
_:b0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> .
3+
_:b0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <https://example.org/item/1> .
4+
_:b0 <https://example.net/ns#addedIn> <https://example.org/v1> .

0 commit comments

Comments
 (0)