Skip to main content

JSON-LD-Test

Makes it easy to test the conformance of your JSON-LD parser by providing the official JSON-LD test suite as a Python package.

Installation

pip install json-ld-test

Example Usage

from json_ld_test import get_all_tests, get_test_file

for test_case in get_all_tests():
    input = get_test_file(test_case.input)
    context = get_test_file(test_case.context)
    output = get_test_file(test_case.expected)
    assert parse_input(input, context) == output

LinkML

This repo also includes a LinkML schema for describing the official JSON-LD test suite. Feel free to re-use this for generating code that relates to these entities.

Documentation

API docs are available at https://multimeric.github.io/json-ld-test/.

JSON-LD License

Use of the JSON-LD test suite, originally from https://w3c.github.io/json-ld-api/tests/ is licensed under the W3C Software and Document License.

Metadata

Release files for json-ld-test 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for json-ld-test 0.0.2
File Size Uploaded
json_ld_test-0.0.2.tar.gz 219.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for json-ld-test 0.0.2
File Interpreter ABI Platform
json_ld_test-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / json_ld_test-0.0.2.tar.gz

Download URL json_ld_test-0.0.2.tar.gz
Size 219.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6965901c6459ce7361bac0eda0b16456927a3d116bd2135b046c2845f55d3c83
BLAKE2b-256 checksum
How to use checksums
3aefb42b7f02e1942ed9b6eba7476988868e6c4250ecd149c8091538e7f9d4e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.7

Release files / json_ld_test-0.0.2-py3-none-any.whl

Download URL json_ld_test-0.0.2-py3-none-any.whl
Size 834.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f6a013c6748285eaba35448a9e7ee0ed91179bc5a59c05146ec71fd3eb6b091
BLAKE2b-256 checksum
How to use checksums
5e116d6689b5a1b9ea7daa18bd447f5faf21d4f452b11895de5b1d1655cdd6fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.7

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page