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

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.2.2
File Size Uploaded Provenance Actions
tarka_rdf-0.2.2.tar.gz 155.5 kB With provenance Details for tarka_rdf-0.2.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for tarka-rdf 0.2.2
File Interpreter ABI Platform Actions
tarka_rdf-0.2.2-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for tarka_rdf-0.2.2-cp310-abi3-win_amd64.whl
tarka_rdf-0.2.2-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for tarka_rdf-0.2.2-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
tarka_rdf-0.2.2-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64 Details for tarka_rdf-0.2.2-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Total release size: 39.5 MB

Release files / tarka_rdf-0.2.2.tar.gz

Download URL tarka_rdf-0.2.2.tar.gz
Size 155.5 kB
Tags Source
SHA-256 checksum
How to use checksums
16e16ddc24827af61f66575ff8aa70e28742bb52122ec6e7bd1e204d1675d24c
BLAKE2b-256 checksum
How to use checksums
857b5e175913c24db10c108bc97f77c9252795e499f1849bf1f4cd4b2ed71937
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 Nov 12, 2026.

Transparency log

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

Download URL tarka_rdf-0.2.2-cp310-abi3-win_amd64.whl
Size 10.9 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
f6f44d959e68c8f88ebb3dcf99069032917652a773f53c6546ae4f5c04a6df54
BLAKE2b-256 checksum
How to use checksums
2df41d62d0a2965cb43ec7aab1105836c7a947bbe9c5504f6ab70551e529c0a0
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 Nov 12, 2026.

Transparency log

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

Download URL tarka_rdf-0.2.2-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_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
1d6050fddd052ed8a5db1c2648713d5cb7b92459d9d17e4f7f36868b6541b018
BLAKE2b-256 checksum
How to use checksums
f27de2f57a2ef93b463dfeb6c736bc59f794ceb98914eb5ccf40c0aff440aba3
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 Nov 12, 2026.

Transparency log

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

Download URL tarka_rdf-0.2.2-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.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
73c5a413c4963bb28190cb20dea3fd72bc3977b40e038bfb539068fd281e653e
BLAKE2b-256 checksum
How to use checksums
a598a6337cd07a507e6b97701e06a1849d1c717f72f8c3b050ac17e18b498ca5
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 Nov 12, 2026.

Transparency log

Security for tarka-rdf 0.2.2

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.2.2.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 Nov 12, 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