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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| json_ld_test-0.0.2.tar.gz | 219.0 kB | Without provenance | Details for json_ld_test-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| json_ld_test-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for json_ld_test-0.0.2-py3-none-any.whl |
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
|
Security for json-ld-test 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.