Skip to main content

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

Reason this release was yanked:

Package data not properly included

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/.

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.1.tar.gz (7.5 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.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for json_ld_test-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7f762509386682b9f0f758236f53b675f6776b31346080679aff3e6ccf5dbac7
MD5 380a6a3e1d1bbb2d14a43702f42197e5
BLAKE2b-256 d3ad71e250e006fcad9a201d6f9de25823db95cac6c78c604a758ac23eda36ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for json_ld_test-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b3859b383fea14e150e0b7234e5260a6356d95c3b3cc9e8de781c202e9f6e489
MD5 888c6188fd79b74ebeab6ffd061658a5
BLAKE2b-256 639bcdcd0c78b8eedf588bf786b1231927ddb7d693f14c3b860fc8a26cdcf1df

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