Skip to main content

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. 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.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tarka-rdf 0.1.0
File Size Uploaded Provenance
tarka_rdf-0.1.0.tar.gz 150.6 kB With provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for tarka-rdf 0.1.0
File Interpreter ABI Platform
tarka_rdf-0.1.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
tarka_rdf-0.1.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.1.0-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl CPython 3.10 abi3 macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64 Details

Total release size: 39.3 MB

Release files / tarka_rdf-0.1.0.tar.gz

Download URL tarka_rdf-0.1.0.tar.gz
Size 150.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8ac8432733b1b92838fbafb1065064dc4ad64e6c85eb7a87a26c5d6c2fa80c59
BLAKE2b-256 checksum
How to use checksums
bcfb7ae7dafee6f0a76c5c81d47804874a0b12321d3bdf1a8f0b8d18405a4844
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 7, 2026.

Transparency log

Release files / tarka_rdf-0.1.0-cp310-abi3-win_amd64.whl

Download URL tarka_rdf-0.1.0-cp310-abi3-win_amd64.whl
Size 10.8 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
86e2b6f1af99809e81611a17425d574f499916f7d56b37124729a1ce05869b1c
BLAKE2b-256 checksum
How to use checksums
ab40c02aa0cf6c8e0561765d8db17a9dbb492f02399e01b0c2fdf740ed9c6c86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 7, 2026.

Transparency log

Release files / tarka_rdf-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tarka_rdf-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 9.9 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
0606549fab3399deabb1ab5d8e89d06c54d6b0d3d80fbc1cb22deb83e45bda96
BLAKE2b-256 checksum
How to use checksums
5a23be509370040a30433783e569b7ff453b9ae8b341c69a064ffdb41967ecfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 7, 2026.

Transparency log

Release files / tarka_rdf-0.1.0-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl

Download URL tarka_rdf-0.1.0-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Size 18.4 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
bc3491ca17be00e5c938fb9d98144f532f10a6e7078b922312b80cc75ddc3f67
BLAKE2b-256 checksum
How to use checksums
de30759d69013206794b3b117d6c5bf09c83d2e08ed875755b3d32c497f2f1f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 7, 2026.

Transparency log

Security for tarka-rdf 0.1.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.

Select from 4 files

Attestation for tarka_rdf-0.1.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 7, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page