Linked data class python package
Project description
oold
Linked data class python package for object oriented linked data (OOLD). This package aims to implemment this functionality independent from the osw-python package.
Concept
Illustrative example how the object orient linked data (OOLD) package provides an abstract knowledge graph (KG) interface. First (line 3) primary schemas (Foo) and their dependencies (Bar, Baz) are loaded from the KG and transformed into python dataclasses. Instantiation of foo is handled by loading the respective JSON(-LD) document from the KG and utilizing the type relation to the corresponding schema and dataclass (line 5). Because bar is not a dependent subobject of foo it is loaded on-demand on first access of the corresponding class attribute of foo (foo.bar in line 7), while id as dependent literal is loaded immediately in the same operation. In line 9 baz is constructed by an existing controller class subclassing Foo and finally stored as a new entity in the KG in line 11.
Dev
git clone https://github.com/OpenSemanticWorld/oold-python
pip install -e .[dev]
Note
This project has been set up using PyScaffold 4.5. For details and usage information on PyScaffold see https://pyscaffold.org/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file oold-0.2.1.tar.gz
.
File metadata
- Download URL: oold-0.2.1.tar.gz
- Upload date:
- Size: 514.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e56e6027f18f2a4d17aef505a3c34c4bc303981358f35f5fd5bfdcb38d46e915 |
|
MD5 | 4cdaf6e2d6557846b7ccbd1708ee5d2c |
|
BLAKE2b-256 | 896f86525ed10c1967ba7cbb0554bf08d5ac6ffd028d80158bc4282b5352f0c6 |
File details
Details for the file oold-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: oold-0.2.1-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e9f2be46de7d3d70cc12ae3b34fa432054fae00c40da8f473ca2d5b22743c17 |
|
MD5 | cedf9ad5e576596a99522c11ea29f662 |
|
BLAKE2b-256 | eb932264d60864455a135458eb14c167531e8b87f2a120c29890d35380f336c0 |