Skip to main content

The official JSON-LD test suite as a Python package.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

json_ld_test-0.0.2.tar.gz (219.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

json_ld_test-0.0.2-py3-none-any.whl (834.2 kB view details)

Uploaded Python 3

File details

Details for the file json_ld_test-0.0.2.tar.gz.

File metadata

  • Download URL: json_ld_test-0.0.2.tar.gz
  • Upload date:
  • Size: 219.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.7

File hashes

Hashes for json_ld_test-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6965901c6459ce7361bac0eda0b16456927a3d116bd2135b046c2845f55d3c83
MD5 6840a6f118fd27d4998f8ba7c8dcbfd6
BLAKE2b-256 3aefb42b7f02e1942ed9b6eba7476988868e6c4250ecd149c8091538e7f9d4e7

See more details on using hashes here.

File details

Details for the file json_ld_test-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for json_ld_test-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4f6a013c6748285eaba35448a9e7ee0ed91179bc5a59c05146ec71fd3eb6b091
MD5 2e27143383746965a5f5ee74bbf2700f
BLAKE2b-256 5e116d6689b5a1b9ea7daa18bd447f5faf21d4f452b11895de5b1d1655cdd6fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page