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.32.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.32.0
File Size Uploaded Provenance Actions
tarka_rdf-0.32.0.tar.gz 1.1 MB With provenance Details for tarka_rdf-0.32.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for tarka-rdf 0.32.0
File Actions
tarka_rdf-0.32.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for tarka_rdf-0.32.0-cp310-abi3-win_amd64.whl
tarka_rdf-0.32.0-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.32.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
tarka_rdf-0.32.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for tarka_rdf-0.32.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
tarka_rdf-0.32.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for tarka_rdf-0.32.0-cp310-abi3-macosx_11_0_arm64.whl
tarka_rdf-0.32.0-cp310-abi3-macosx_10_13_x86_64.whl CPython 3.10 abi3 macOS 10.13+ x86-64 Details for tarka_rdf-0.32.0-cp310-abi3-macosx_10_13_x86_64.whl

Total release size: 53.4 MB

Release files / tarka_rdf-0.32.0.tar.gz

Download URL tarka_rdf-0.32.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
1f7c824486775a58a3a4f894db6651dc151edd88a9da9411cfd8d6d1b1b88147
BLAKE2b-256 checksum
How to use checksums
0a654619739a4258a49cd4b7ce54a98d60cf3309f46b09d6d45cb9a1ee9d86a9
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 Dec 2, 2026.

Transparency log

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

Download URL tarka_rdf-0.32.0-cp310-abi3-win_amd64.whl
Size 11.0 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
6a8b8d743cded43d564f9f64934ea4433de11837282d5062c334234334f11233
BLAKE2b-256 checksum
How to use checksums
5aa5d0e63c0f3a4ecf1fb1a47b3ace57abac69a3fed07cb557b78b194a4eab90
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 Dec 2, 2026.

Transparency log

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

Download URL tarka_rdf-0.32.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 10.8 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
f8518df960291ee9c9b328635a696fb8744ba6d123da6dd66f77b95e82afb5cb
BLAKE2b-256 checksum
How to use checksums
512b2014a34cea051ae271e0633ac0453bb37ab9d8d34698738c43b002ed3c16
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 Dec 2, 2026.

Transparency log

Release files / tarka_rdf-0.32.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL tarka_rdf-0.32.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 10.2 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
6be2f6cfab88e96723af268787c00a91e6e48bb985a91cf58b018bbf98dbdf01
BLAKE2b-256 checksum
How to use checksums
fa449760c38e1e0f494ef520e69e12a6d7c1e9871b58870d477b470a93ae3fda
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 Dec 2, 2026.

Transparency log

Release files / tarka_rdf-0.32.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL tarka_rdf-0.32.0-cp310-abi3-macosx_11_0_arm64.whl
Size 9.7 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b7c72ac3c7a1a772a63a83be4f3c4294397e5ffa4662d874e16168360e45fe0d
BLAKE2b-256 checksum
How to use checksums
f052e5e7404a82b79ab6aa19a4b86b17a46a14f7eef231abf463e15a1b24d2df
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 Dec 2, 2026.

Transparency log

Release files / tarka_rdf-0.32.0-cp310-abi3-macosx_10_13_x86_64.whl

Download URL tarka_rdf-0.32.0-cp310-abi3-macosx_10_13_x86_64.whl
Size 10.5 MB
Tags CPython 3.10 abi3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
5e7484407e7442aa7b15befbd1cb250abaeb3528c02e31669d602b22e750cb97
BLAKE2b-256 checksum
How to use checksums
ca1163ec3b73861748d5449f1a83c5648eec6f76a03e6f85edd58685d4964d99
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 Dec 2, 2026.

Transparency log

Security for tarka-rdf 0.32.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 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for tarka_rdf-0.32.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 Dec 2, 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