Metadata-Version: 2.1
Name: json-ld-test
Version: 0.0.1
Summary: The official JSON-LD test suite as a Python package.
Author-email: Michael Milton <michael.r.milton@gmail.com>
License: MIT License
        
        Copyright (c) 2024 Michael Milton
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: linkml-runtime>=1.8.3
Requires-Dist: pydantic
Provides-Extra: dev
Requires-Dist: requests; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Requires-Dist: linkml-runtime>=1.8.3; extra == "dev"
Requires-Dist: linkml>=1.8.5; extra == "dev"
Requires-Dist: mkdocs-material>=9.5.48; extra == "dev"
Requires-Dist: mkdocs>=1.6.1; extra == "dev"
Requires-Dist: mkdocstrings[python]>=0.27.0; extra == "dev"
Requires-Dist: griffe-pydantic>=1.1.0; extra == "dev"

# 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 **<https://multimeric.github.io/json-ld-test/>**.
