Skip to content

Commit

Permalink
#frame-t0001
Browse files Browse the repository at this point in the history
  • Loading branch information
anatoly-scherbakov committed Jun 30, 2024
1 parent ab9fbc0 commit a633911
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/cases/frame/0001-frame.yamlld
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"@context":
dcterms: http://purl.org/dc/terms/
ex: http://example.org/vocab#
"@type": ex:Library
ex:contains:
"@type": ex:Book
ex:contains:
"@type": ex:Chapter
18 changes: 18 additions & 0 deletions tests/cases/frame/0001-in.yamlld
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"@context":
dcterms: http://purl.org/dc/terms/
ex: http://example.org/vocab#
ex:contains:
"@type": "@id"
"@graph":
- "@id": http://example.org/test/#library
"@type": ex:Library
ex:contains: http://example.org/test#book
- "@id": http://example.org/test#book
"@type": ex:Book
dcterms:contributor: Writer
dcterms:title: My Book
ex:contains: http://example.org/test#chapter
- "@id": http://example.org/test#chapter
"@type": ex:Chapter
dcterms:description: Fun
dcterms:title: Chapter One
16 changes: 16 additions & 0 deletions tests/cases/frame/0001-out.yamlld
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"@context":
dcterms: http://purl.org/dc/terms/
ex: http://example.org/vocab#
"@graph":
- "@id": http://example.org/test/#library
"@type": ex:Library
ex:contains:
"@id": http://example.org/test#book
"@type": ex:Book
dcterms:contributor: Writer
dcterms:title: My Book
ex:contains:
"@id": http://example.org/test#chapter
"@type": ex:Chapter
dcterms:description: Fun
dcterms:title: Chapter One
9 changes: 9 additions & 0 deletions tests/manifest.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,15 @@
"input": "cases/flatten/0044-in.yamlld",
"context": "cases/flatten/0044-context.yamlld",
"expect": "cases/flatten/0044-out.yamlld"
},
{
"@id": "#frame-t0001",
"@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"],
"name": "Library framing example",
"purpose": "Basic example used in playground and spec examples.",
"input": "frame/0001-in.yamlld",
"frame": "frame/0001-frame.yamlld",
"expect": "frame/0001-out.yamlld"
}
]
}

0 comments on commit a633911

Please sign in to comment.