GTS (Graph Transport Substrate): a single-file CBOR transport for RDF 1.2 graphs — append-only log, BLAKE3 chain verification, deterministic fold, multi-segment cat-append composition.
Project description
gts — Graph Transport Substrate
A single-file, language-independent transport for an RDF 1.2 graph (statements and statement-level metadata) together with any content-addressed binary the graph references.
A GTS file is a CBOR Sequence of one or more segments, each an append-only
log: a header followed by frames chained by BLAKE3 content-id. Composition is
cat — concatenating valid GTS files yields a valid GTS file whose fold is
the value-union of the segment graphs.
This package is the Python reference implementation of the GTS specification: reader (fold, chain verification, opaque degradation, torn-append detection), writer, COSE signing, N-Quads projection, and the frozen language-neutral conformance corpus. A Rust engine implementing the same spec is gated against the identical corpus and will ship inside this package as a native wheel.
Install
pip install gmeow-gts
The installed package name is gmeow-gts; the import name and CLI binary both
remain gts, and GTS files keep the .gts extension.
Library
from pathlib import Path
import gts
graph = gts.read(Path("package.gts").read_bytes())
print(gts.to_nquads(graph))
Command line
gts info <file>... per-segment composition ledger
gts fold <file> fold to N-Quads on stdout
gts verify <file>... verify chains; exit 1 on any diagnostic
gts cat -o <out> <file>... validating composer: refuse degenerate inputs,
then byte-concatenate
cat output is the raw byte concatenation — validation added, transformation
never. It refuses dirty inputs, contributes-nothing segments, and compositions
whose suppressions hide every folded quad.
License
Apache-2.0. © Blackcat Informatics® Inc.
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gmeow_gts-0.1.0.tar.gz.
File metadata
- Download URL: gmeow_gts-0.1.0.tar.gz
- Upload date:
- Size: 40.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb4a2e2b76346e5a146c8eadd9555aacc4cf7fcc623aa7ff578b45a387196657
|
|
| MD5 |
72a0ed8010d078d0200a9ac8d274c007
|
|
| BLAKE2b-256 |
325e617b45b19c67017348bdf0efb43b134d990ac502b3f428734c147b14bdf1
|
Provenance
The following attestation bundles were made for gmeow_gts-0.1.0.tar.gz:
Publisher:
pypi-publish-gmeow-gts.yml on Blackcat-Informatics/gmeow-ontology
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gmeow_gts-0.1.0.tar.gz -
Subject digest:
bb4a2e2b76346e5a146c8eadd9555aacc4cf7fcc623aa7ff578b45a387196657 - Sigstore transparency entry: 1807803456
- Sigstore integration time:
-
Permalink:
Blackcat-Informatics/gmeow-ontology@3374fe2184aa8b8351d7ccd7e14d066d1543b7a3 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Blackcat-Informatics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish-gmeow-gts.yml@3374fe2184aa8b8351d7ccd7e14d066d1543b7a3 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file gmeow_gts-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gmeow_gts-0.1.0-py3-none-any.whl
- Upload date:
- Size: 48.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
860e3495e7647337776f72eda268830c70223e4fec7e119faa0604ed30326d3a
|
|
| MD5 |
08992dbabc2b5ec08de71b5553809abd
|
|
| BLAKE2b-256 |
c916287b624ab87558da79b0a6936f5e16e805a5ea9b92f8eb1dd951874331bb
|
Provenance
The following attestation bundles were made for gmeow_gts-0.1.0-py3-none-any.whl:
Publisher:
pypi-publish-gmeow-gts.yml on Blackcat-Informatics/gmeow-ontology
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gmeow_gts-0.1.0-py3-none-any.whl -
Subject digest:
860e3495e7647337776f72eda268830c70223e4fec7e119faa0604ed30326d3a - Sigstore transparency entry: 1807803479
- Sigstore integration time:
-
Permalink:
Blackcat-Informatics/gmeow-ontology@3374fe2184aa8b8351d7ccd7e14d066d1543b7a3 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Blackcat-Informatics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish-gmeow-gts.yml@3374fe2184aa8b8351d7ccd7e14d066d1543b7a3 -
Trigger Event:
workflow_dispatch
-
Statement type: