tarka-rdf
Python bindings for tarka: turn Polars data frames, Parquet
and CSV files into RDF with TARQL queries (SPARQL CONSTRUCT, as TARQL and oxi-gen run them)
or OTTR templates (stOTTR), and run bOTTR mapping files. The engine is Rust; mapping runs
release the GIL and use every core.
pip install tarka-rdf
import polars as pl
import tarka_rdf
m = tarka_rdf.Mapping.tarql_file("people.rq") # a TARQL query
m = tarka_rdf.Mapping.ottr(["templates/"], ["ex:Person"]) # or OTTR templates: files or directories, root templates
df = pl.read_parquet("people.parquet")
triples = m.triplify(df) # a DataFrame of N-Triples terms: subject, predicate, object
m.write(df, "people.ttl") # Turtle, or format="ntriples" / "nquads" (with graph=…)
m.run_csv("people.csv", "people.ttl") # CSV in oxi-gen's dialect
shapes = m.shapes() # SHACL shapes for what the mapping makes, as Turtle
tarka_rdf.expand(["templates/"], ["instances.stottr"], "people.ttl") # OTTR instances, as Lutra does
tarka_rdf.bottr(["templates/"], ["people.bottr.ttl"], "people.ttl") # bOTTR instance maps
Typed columns become typed literals for typed OTTR parameters (xsd:integer, xsd:date …),
and list columns feed OTTR list parameters. A row with a value its parameter cannot take
(n/a for an ottr:IRI) is left out, as bOTTR leaves out an instance: the rest is made, and a
ValueError lists the rows left out, unless strict=False. The package is called tarka-rdf
and imported as tarka_rdf, because tarka on PyPI is another project.
Licensed MIT OR Apache-2.0.
Metadata
Release files for tarka-rdf 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tarka_rdf-0.2.0.tar.gz | 154.7 kB | With provenance | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tarka_rdf-0.2.0-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details |
| tarka_rdf-0.2.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| tarka_rdf-0.2.0-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl | CPython 3.10 | abi3 | macOS 10.12+ x86-64, macOS 10.12+ universal2 (ARM64, x86-64), macOS 11.0+ ARM64 | Details |
Total release size: 39.5 MB
Release files / tarka_rdf-0.2.0.tar.gz
| Download URL | tarka_rdf-0.2.0.tar.gz |
|---|---|
| Size | 154.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63b477ccbe26980e6316bfef638c61940c1264230e66dde0c4f9ba8d8fab927d
|
|
BLAKE2b-256 checksum How to use checksums |
ff3be1142b9e98a80935200d01cfb5bf44493fe28f0a6c7e08cd59098f2523da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logRelease files / tarka_rdf-0.2.0-cp310-abi3-win_amd64.whl
| Download URL | tarka_rdf-0.2.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 10.9 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c463336013bdabda438b87a986bca6df634646956be8783c63fb4ddffeca39ce
|
|
BLAKE2b-256 checksum How to use checksums |
2df1bb6dcaaa3bdb9d77a4610b557b6de2c30e5a76c22f4a75be58de758cc830
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logRelease files / tarka_rdf-0.2.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | tarka_rdf-0.2.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 10.0 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
d49c2522576892e3666ef20a4e9f47e9d376ce0d78748b44036f9edd4a2d4385
|
|
BLAKE2b-256 checksum How to use checksums |
d34e80190d3faa629bb8db51b79c6e2d766c141745c38a0027a8b232db7f4460
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logRelease files / tarka_rdf-0.2.0-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
| Download URL | tarka_rdf-0.2.0-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl |
|---|---|
| Size | 18.5 MB |
| Tags | CPython 3.10 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
693d85d740af0a2143eb4da926208c3fc7eee77e6306863e522a89372e350138
|
|
BLAKE2b-256 checksum How to use checksums |
7bf941fd4fe2596e2a966c8c7e1dcc2e9d51f4f90f1ea6e92c34e36a68ccad80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logSecurity for tarka-rdf 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 4 files in this release have been uploaded with provenance metadata.
Attestation for tarka_rdf-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.