https://github.com/multimeric/json-ld-test
The official JSON-LD test suite as a Python package.
https://github.com/multimeric/json-ld-test
Last synced: about 1 month ago
JSON representation
The official JSON-LD test suite as a Python package.
- Host: GitHub
- URL: https://github.com/multimeric/json-ld-test
- Owner: multimeric
- License: mit
- Created: 2024-12-09T14:52:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-16T12:55:40.000Z (over 1 year ago)
- Last Synced: 2025-08-25T09:54:27.659Z (7 months ago)
- Language: Python
- Homepage: https://multimeric.github.io/json-ld-test/
- Size: 1.01 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```python
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 ****.
## 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](https://www.w3.org/copyright/software-license-2023/).