hdt-format

Explain the HDT binary RDF archive format and Sparq-hdt integration.

8|1|Updated Jun 7, 2026
One-click install
npx skills add https://github.com/sparq-org/sparq --skill hdt-format
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hdt-format
Source: https://github.com/sparq-org/sparq/tree/main/.claude/skills/hdt-format
Command: npx skills add https://github.com/sparq-org/sparq --skill hdt-format

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill unit helps users understand the HDT (Header-Dictionary-Triples) binary RDF archive format, how it is used in the Sparq-hdt crate, and how to work with it within the Sparq ecosystem.

Core Features & Use Cases

  • HDT Format Explanation: Provides a detailed layout of the HDT format, including dictionary sections and BitmapTriples.
  • sparq-hdt Integration: Offers insights into how Sparq-hdt wraps the hdt crate and how it is used to load .hdt archives into a Sparq Graph.
  • Use Case: For developers and data scientists who need to reason about HDT decode performance, translate id-level into Sparq's Dict, or understand the gaps in HDT write-support.

Quick Start

Learn about the HDT format and its usage in Sparq-hdt by reading the 'SKILL.md' file within the .claude/skills/hdt-format directory.

Frequently Asked Questions about hdt-format

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the HDT binary RDF archive format and how does its layout work?

The HDT (Header-Dictionary-Triples) binary RDF archive format compresses RDF data into a compact binary layout using dictionary sections and BitmapTriples to minimize storage footprint while enabling rapid querying.

How do I load .hdt.gz archive files into a Sparq Graph using Rust?

To load .hdt.gz archives into a Sparq Graph, use the Sparq-hdt crate, which wraps the hdt crate to handle compressed binary files and translates id-level data into Sparq's Dict.

Does Sparq-hdt support writing or modifying existing HDT archive files?

Sparq-hdt focuses on reading, decoding, and loading HDT archives, and there are known gaps in HDT write-support, meaning modifying or generating new HDT binary files is not fully supported.

How does Sparq-hdt translate HDT dictionary identifiers into Sparq's Dict?

Sparq-hdt performs id-level translation by mapping the internal dictionary identifiers from the HDT binary format directly into Sparq's Dict structure for data loading and reasoning.

Can I use Sparq-hdt to optimize RDF decode performance for large datasets?

Yes, Sparq-hdt allows developers to reason about HDT decode performance by leveraging the compact binary format and BitmapTriples structure to efficiently load and process large RDF datasets.