Automic VaultAutomic Vault

brew

使用 Homebrew, Nix 安装 hdt

查看 hdt 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install hdt

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#hdt

nixpkgs package indexes · pkgs/by-name/hd/hdt/package.nix · 来源: api.github.com

概览

软件包摘要

Header Dictionary Triples (HDT) is a compression format for RDF data

命令和别名

  • hdt2rdf
  • hdtInfo
  • hdtSearch
  • modifyHeader
  • rdf2hdt
  • replaceHeader
  • searchHeader

历史

项目历史与用法

HDT, short for Header, Dictionary, Triples, is a compact binary representation for RDF datasets. The Homebrew package builds the C++ library and command-line tools that create, inspect, query, and convert HDT files.

项目历史

HDT emerged from Semantic Web research on publishing and exchanging very large RDF graphs without the verbosity of textual RDF serializations. The W3C Member Submission dated 30 March 2011 describes HDT as a binary RDF format organized around a header, a dictionary of terms, and compressed triples.

The RDF HDT project presents the format as both a data structure and serialization: the dictionary replaces repeated RDF terms with identifiers, the triples component stores graph structure compactly, and the header carries metadata about the dataset. The format was later described in publications from ISWC 2010, WWW 2012, ESWC 2012, and a 2013 Web Semantics journal article listed by the project.

The hdt-cpp repository is the C++ implementation and tool suite. Its README describes tools such as rdf2hdt for creating HDT from RDF, hdt2rdf for exporting RDF, hdtSearch for triple-pattern queries, hdtInfo for headers, and replaceHeader for metadata maintenance. GitHub release history shows a post-Google-Code release in 2015, which reflects a migration from earlier hosting into the GitHub-centered packaging era.

采用历史

HDT adoption grew around Linked Data distribution, where the pain point is not just storing RDF but moving and querying huge dumps. The RDF HDT site lists use cases such as sharing RDF data on the Web, mirroring SPARQL endpoints, data analysis, visualization, embedded devices, and federated querying.

The project's datasets page shows HDT used to distribute large public knowledge graphs, including DBpedia, Freebase, YAGO, WordNet, DBLP, and multiple Wikidata dumps. That page also notes collections with billions of triples, including LOD-a-lot, demonstrating HDT's role as an interchange format for people who need local, compressed, indexed RDF snapshots.

The implementation family includes C++ tools, Java libraries, Jena integration, a GUI, an online conversion service, and HDT-backed dataset publishing. The Homebrew `hdt` formula packages the Unix CLI side of that ecosystem for local conversion and inspection.

使用方式

Typical command-line usage starts with converting an RDF serialization to an HDT file using rdf2hdt. A user can then query it interactively with hdtSearch, export it back with hdt2rdf, inspect metadata with hdtInfo, or replace header information without rebuilding the whole dataset.

HDT is read-optimized. Its project site emphasizes that an HDT file is already indexed and can be searched or browsed without prior decompression, which is why it is attractive for large dumps that would otherwise require a database import before the first useful query.

为什么软件包爱好者会关心

For package maintainers, hdt is a classic data-tool package: a research format turned into a practical CLI. It pulls in native C/C++ build tooling, RDF parser dependencies such as Serd, and compression support, then exposes a small set of executables that slot into data-publishing pipelines.

The package matters because RDF dump users often want repeatable local workflows rather than a bespoke triplestore setup. Installing hdt gives them the compact-file workflow directly: convert, inspect, query, and ship a single indexed artifact.

时间线

  • 2010: HDT was presented in ISWC slide material on compact representation of large RDF datasets.
  • 2011-03: W3C published the HDT Member Submission.
  • 2012: HDT work appeared at ESWC and WWW venues on exchanging and consuming huge RDF data.
  • 2013: The project lists the Web Semantics article Binary RDF Representation for Publication and Exchange (HDT).
  • 2014-04: The hdt-cpp GitHub repository was created.
  • 2015-12: hdt-cpp v1.1.1 was published as a post-Google-Code release.
  • 2017-09: hdt-cpp v1.2.0 was released.
  • 2019-01: hdt-cpp v1.3.3 added bug fixes and 64-bit support.

Related projects

  • hdt-java provides Java libraries around the same HDT format.
  • Jena integration and Fuseki support connect HDT files to SPARQL tooling.
  • LOD-a-lot and LOD Laundromat are related large-scale Linked Open Data distribution efforts that make HDT attractive.
  • DBpedia, Wikidata, YAGO, Freebase, WordNet, and DBLP appear as datasets distributed or mirrored in HDT form.

安全态势

风险级别:yellow

broad file, network, media, or database tool signal. generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • broad file, network, media, or database tool signal
  • generalized runtime or code generation signal

信号

  • text:compress
  • text:repl

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 4 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
hdt2rdfcli全局可执行文件
hdtInfocli全局可执行文件
hdtSearchcli全局可执行文件
modifyHeadercli全局可执行文件
rdf2hdtcli全局可执行文件
replaceHeadercli全局可执行文件
searchHeadercli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本1.3.3
管理器更新时间
本地数据OK
上游当前
检测到的最新版本v1.3.3

https://github.com/rdfhdt/hdt-cpp

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键brew:hdt
版本1.3.3
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/hdt
主页https://github.com/rdfhdt/hdt-cpp
仓库https://github.com/rdfhdt/hdt-cpp
上游文档https://www.rdfhdt.org/manual-of-the-c-hdt-library
许可证LGPL-2.1-or-later
源码归档https://github.com/rdfhdt/hdt-cpp/archive/refs/tags/v1.3.3.tar.gz
依赖serd
构建依赖autoconf, automake, libtool, pkgconf
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namehdt
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

hdt

nix profile install nixpkgs#hdt
  • normalized package name match
  • 匹配方式:Hdt
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/hd/hdt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment