Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iolanta-tech/python-yaml-ld
YAML-LD implementation for Python
https://github.com/iolanta-tech/python-yaml-ld
json-ld json-ld-11 json-ld-context json-ld-frame linked-data linked-open-data linked-open-usable-data python rdf yaml
Last synced: 3 months ago
JSON representation
YAML-LD implementation for Python
- Host: GitHub
- URL: https://github.com/iolanta-tech/python-yaml-ld
- Owner: iolanta-tech
- Created: 2023-09-01T18:49:17.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-04T15:57:02.000Z (3 months ago)
- Last Synced: 2024-11-04T16:44:44.866Z (3 months ago)
- Topics: json-ld, json-ld-11, json-ld-context, json-ld-frame, linked-data, linked-open-data, linked-open-usable-data, python, rdf, yaml
- Language: Python
- Homepage: https://python-yaml-ld.iolanta.tech
- Size: 1.39 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# python-yaml-ld
![](docs/logos/python-yaml-ld.png)
A Python implementation for handling YAML-LD documents. Basically, a wrapper on top of [digitalbazaar/pyld](https://github.com/digitalbazaar/pyld).
## What is YAML-LD?
YAML-LD is a YAML-based serialization for Linked Data, drawing inspiration from [JSON-LD](https://json-ld.org/). It aims to bring the ease of YAML along with the structured linked data principles of JSON-LD. The [YAML-LD specification](https://json-ld.github.io/yaml-ld/spec/) provides detailed information on the structure and usage of YAML-LD.
## For whom is this library?
For Python developers who are interested in parsing and transforming YAML-LD data.
## Installation
```shell
pip install yaml-ld
```## Functions
* [`yaml_ld.expand()`](https://python-yaml-ld.iolanta.tech/expand/)
* [`yaml_ld.compact()`](https://python-yaml-ld.iolanta.tech/compact/)
* [`yaml_ld.flatten()`](https://python-yaml-ld.iolanta.tech/flatten/)
* [`yaml_ld.frame()`](https://python-yaml-ld.iolanta.tech/frame/)
* [`yaml_ld.to_rdf()`](https://python-yaml-ld.iolanta.tech/to-rdf/)
* [`yaml_ld.from_rdf()`](https://python-yaml-ld.iolanta.tech/from-rdf/)See [Docs](https://python-yaml-ld.iolanta.tech) for more details.
## Contributing
* Clone the repository
* Set up a Python virtual environment
* Install Poetry:```shell
pip install -U pip poetry
```* Install the project:
```shell
poetry install
```* Retrieve submodules:
```shell
j update-submodule
```