Skip to content
Sign in

Formats

Canonical releases are Parquet tables (ADR-0005). Import formats:

CSV (product) — one row per product. Identity columns: gtin (or ean), mpn, brand (or manufacturer), name. Every other column is an attribute: property[unit]@language, e.g. rated_voltage[V], weight[kg], description@de, class:etim. Empty cells are skipped. GTINs are normalized to 14 digits; products without a GTIN are keyed mpn:<manufacturer>:<mpn> (ADR-0027).

BMEcat — profile product.cloud/bmecat-min@0.1 (1.2 ARTICLE and 2005 PRODUCT): GTIN, description, manufacturer PID/name, long description, supplier PID, ETIM feature groups and features. Everything else is listed in the import's loss report.

JSONL / Parquet — columns of the canonical table (--table <name>), strings only; decimals are strings (e.g. confidence "0.98").

KindTables (primary key)
productproducts (gtin), attributes (gtin, property, language)
classificationclasses (code), class_labels (code, language), properties (code), class_properties (class_code, property_code), values (property_code, value_code)
mappingmappings (source ns/version/id, target ns/version/id) with relation, confidence, status, evidence
rulepackrules (id) with severity, target, property, check, parameter, message

Large tables are split into key-anchored shards of at most 1,000,000 rows (ADR-0026).

Spec 0.4 asset repositories (ADR-0083)

An asset repository publishes files with per-file rights. product init <ns/repo> --kind asset --spec 0.4 creates one. It has three tables, and its manifest lists the files as blobs:

TableHolds
assetsOne row per file: digest, media type, size, role
asset_rightsThe file's license and its publisher's attestation
asset_linksWhich product key and property the file supports, and where in it

The files travel with product push, product clone and product pull, like shards; the hub never parses them. The normative description is in specs/repository/0.4/.

Spec 0.5 (ADR-0104) changes one thing: the role of an asset may also be article (a Markdown article) or ledger (its claim ledger), for editorial repositories. The manifest then records product.cloud/assets@0.5. Create one with --spec 0.5; a 0.4 repository that uses these roles fails validation. The normative description is in specs/repository/0.5/.

Spec 0.2 product repositories (ADR-0040, ADR-0052)

Spec 0.2 is opt-in per repository: product init <ns/name> --spec 0.2, or spec_version: '0.2' in product.yaml. Spec 0.1 stays the default, and 0.1 repositories are read and written exactly as before. Upgrading a 0.1 repository (edit spec_version, re-import, commit) reports no changes until new metadata is added.

Tables. attributes@0.2 has the 0.1 columns followed by seven optional assertion columns. The new erasures (gtin, property, language) table records legally erased keys.

ColumnMeaningRule
valid_from, valid_toWhen the statement applies in the world (inclusive)YYYY-MM-DD or YYYY-MM-DDThh:mm:ss[.f]Z; valid_from ≤ valid_to
observed_atWhen the source observed the valuesame date format
marketMarket the statement applies toassigned ISO 3166-1 alpha-2 code (DE, AT, …)
methodHow the value was obtainedlower-case identifier; supplier_feed, measurement, datasheet, derived, manual, and estimate are documented; other values produce a warning
qualifierestimated, approximate, none, not_applicablenone/not_applicable assert no value; a non-empty value is a warning
tolerance± tolerance in the value's unitnon-negative decimal string

Record time is the commit time and is never repeated in rows. Absence stays unknown: an empty cell or a missing column never means "none".

CSV metadata columns. Whole-catalog CSV imports read # columns:

  • <attribute header>#<field> sets one field of that attribute, e.g. weight[kg]#qualifier, weight[kg]#tolerance, description@de#market;

  • #<field> sets a row-wide default for every attribute of the row, e.g. #observed_at, #market, #method; a per-attribute column wins over the default.

gtin,name,weight[kg],weight[kg]#qualifier,weight[kg]#tolerance,#observed_at,#market
04012345678901,Cordless drill,2.40,estimated,0.1,2026-08-01,DE

A spec 0.1 repository reports # columns in the loss report and never turns them into attributes. JSONL and Parquet table imports (--table attributes) read the columns by name. A BMEcat import into a 0.2 repository sets method = supplier_feed, observed_at from HEADER/CATALOG/DATETIME[@type=generation_date], and market from a single HEADER/CATALOG/TERRITORY.

Erasure. To erase a product or one of its values for legal reasons, remove it from the catalog and add its key to erasures, for example product import csv erasures.csv --table erasures with columns gtin,property,language,reason (an empty property erases the whole product). Validation rejects a state that still contains an erased key. The diff and the change feed report the removal as erase and never carry its values; the hub deletes the key's identity claims and discovery entries. Historical objects need the procedure in an operator procedure (ask the hub operators).

Change meanings. Diffs of spec 0.2 states give every replacement and removal a meaning:

  • supersede: the value or its metadata was replaced;

  • retract: the value was withdrawn, but the product is still covered;

  • remove: the product is no longer covered;

  • erase: legal erasure.

Spec 0.1 diffs are unchanged.