Localized attribute metadata
Resolve and Explore always return canonical machine-readable attributes in result.attributes or
exploration.attributes. Set the optional request field includeAttributeMetadata to true when
the application also needs localized display definitions. Structured Resolve also returns
canonicalAttributes, a persistence-oriented list of stable field identities and governed value
identities.
{
"text": "Замразен свински корем",
"locale": "bg",
"limit": 5,
"includeAttributeMetadata": true
}
The option is supported by POST /v1/resolve, POST /v1/explore, the generated TypeScript client,
and the MCP resolve_meat_product tool. It defaults to false; when it is omitted, the response
shape and resolver behavior are unchanged.
To discover fields that are not yet stated, use the separate Applicable RFQ attributes opt-in.
Response shape
attributeMetadata is a top-level sibling of result or exploration:
{
"attributeMetadata": {
"requestedLocale": "bg",
"resolvedLocale": "bg",
"fallbackLocale": "en",
"fallbackUsed": false,
"attributes": {
"refrigeration": {
"field": {
"id": "01a01a72-bdbe-739c-abc9-8141e0cb8afe",
"key": "refrigeration",
"cardinality": "one",
"valueKind": "controlled",
"locale": "bg",
"label": "Термично състояние",
"description": "Посоченото термично състояние на продукта: прясно, охладено или замразено.",
"fallbackUsed": false
},
"values": [
{
"id": "01a01a72-9d4e-724f-a634-0b047477a82a",
"key": "frozen",
"machineValue": "frozen",
"locale": "bg",
"label": "Замразено",
"description": "Продуктът се предлага в замразено състояние.",
"fallbackUsed": false
}
]
}
}
}
}
The attributes object contains metadata only for attributes present in that resolver response.
The map key matches the key in result.attributes or exploration.attributes.
field.idis the stable identity of the governed attribute field.values[].idis the stable identity of a governed controlled value.machineValuematches a canonical value found inside the resolved attribute'snormalizedvalue.labelanddescriptionare presentation text and can change in a later ontology release; do not use them as identifiers.- Measurements, references, and other runtime or composite values can have field metadata and an
empty
valuesarray. Their resolved machine data remains in the original attribute.
fabricatedFrom is a cardinality-many reference field used when a manufacturing output explicitly
states its anatomical source. Each normalized value contains the stable source conceptId, its
canonical label, and scheme IDs. For example, Pork collar trimmings selects the pork-trimmings
product and separately returns Pork Collar / Neck in fabricatedFrom; it does not turn the intact
collar product into a synonym for trimmings. Clients should persist the source concept ID and treat
the label as display text.
Metadata is read from the same immutable release snapshot as the resolution. Cache it by
taxonomyRelease.contentChecksum, locale, and field or value ID. Never combine metadata from one
release with attributes resolved by another.
Locales and fallback
The governed presentation locales are English (en), Bulgarian (bg), Polish (pl), and German
(de). A regional tag such as bg-BG selects its supported language (bg). Locale matching is
case-insensitive and accepts either - or _ as the regional separator.
English is the explicit fallback:
- Resolve uses
metadataLocalewhen supplied, otherwise the detected matched-term language; - Explore uses its request
locale; if neither operation has a presentation language, it uses English; - if the requested language is unsupported,
resolvedLocaleisenand top-levelfallbackUsedistrue; - if one definition is unavailable in the resolved locale, that field or value reports
locale: "en"andfallbackUsed: true, and the top-level flag is alsotrue.
New releases cannot publish an active governed attribute field or value unless all four required localizations are present. Per-definition fallback remains part of the contract so clients can handle legacy snapshots and future data faults explicitly.
Localized recognition aliases
Published releases may also contain governed attributeAliases. Resolve and Explore compile active
value aliases into the release-scoped resolver index. The first inventory recognizes conservative
Bulgarian, Polish, and German wording for 11 simple controlled fields while keeping the canonical
machine values unchanged:
{
"text": "Pork belly bez kości mrożone",
"locale": "pl"
}
The relevant result remains language-neutral:
{
"refrigeration": {
"normalized": "frozen",
"raw": "mrożone",
"confidence": 0.97,
"basis": "controlled_vocabulary"
},
"bone": {
"normalized": "boneless",
"raw": "bez kości",
"confidence": 0.98,
"basis": "controlled_vocabulary"
}
}
Matching is deterministic and conservative:
- a requested locale is a ranking hint and does not suppress an exact governed alias from another language;
- publication still requires every normalized spelling to have one globally unambiguous target, except for explicitly non-overlapping product scopes;
- a market-scoped alias matches only when that exact market is requested;
exactmatches the complete normalized input,phrasematches a complete token sequence, andtokenmatches one complete token;- there is no fuzzy alias matching, general stemming, or automatic accent removal; supplier-style ASCII spellings are separate governed aliases;
- conflicting explicit values still produce
conflicting_attribute_valuesand are never silently overwritten.
The active vocabulary also recognizes two claim-oriented fields:
breedClaimis cardinality-many and currently normalizes explicit Angus, Wagyu, Ibérico, Brangus, Limousin, Charolais, Holstein, Hereford, Simmental, and Duroc wording. It records what the listing says; it is not proof of genotype, breed percentage, purity, registration, or a branded certification. Published species applicability may constrain product candidates or provide the single compatible meat commodity, but never a cutting scheme. An explicit cross- species product conflict is reported asincompatible_breed_claim.feedingRegimeClaimis cardinality-one and currently normalizes explicitgrass-fedandgrain-fedwording. It is not certification and does not automatically assign a UNECE feeding system. If both values are stated, neither is selected and the resolver reportsconflicting_attribute_values; general wording such asnaturalremains unsupported.
originCountry adds ISO code AR. In addition to explicit forms such as Argentina origin and
origin: Argentina, the specialized origin parser accepts only the reviewed leading ERP forms
Arg., Argentina, and Brazil. Country adjectives elsewhere in a title still do not imply
product origin.
Resolve may also receive animalClass as a separately sourced context observation, for example a
platform category mapping. Context never becomes title evidence and is not copied into the returned
attribute. If one unambiguous reviewed animal class is present in the title and differs from the
context observation, the title value is retained and context_conflict is reported. Because the
automatic-tagging gate requires an empty ambiguities array, the conflict requires review.
Packaging keeps generic box distinct from the narrower fibreboard shipping carton. A bare box
is accepted as attributes.packaging[].normalized = "box" without a material-related review
flag. Unknown material is not a contradiction and does not imply carton.
The structured component remains { level: "shipping", form: "box" }, and any package net weight
is stored separately. Explicit carton/ctn, carton box, cardboard/fibreboard/corrugated/solid-
board box, master carton, and export carton wording resolves directly to carton. Plastic,
polyethylene, and liner-qualified boxes stay generic unless independent carton evidence is present.
Both governed flat identities remain active; there is no replacement relationship or historical
bare-box migration.
Since resolver 1.189.0, the flat array keeps the individual-pack trade terms that
packagingOptions already records:
IVPandindividually vacuum packedread asivp. Avacuummention beside them is dropped, because IVP already states vacuum.IWPandindividually wrappedread asiwp. IWP does not imply vacuum, so avacuummention beside it stays.
Since resolver 1.190.0, a bare naked is read as a naked block, the same as naked block. Bulk or
loose beside a shipping container (Bulk/Carton) describes what the container holds, so the flat array
carries the container. Beside an inner pack (IWP/bulk) it stays a choice, and the flat array is
omitted.
Since resolver 1.188.0, jumbo wording produces a pallet-sized bulk bin:
{ level: "shipping", form: "bin", tradeTerm: "jumbo-box" }.
- Wording. This covers
jumbo box,jumbo carton,Jumbokarton, embeddedJumbocartonand contextualin jumbo. Carton or Karton wording addsmaterials: ["cardboard"]. - Capacity guard. A stated jumbo package weight of 60 kg or less is reported as
underspecified_attribute_valuefor review. - Other bulk containers.
octabin,combo bin,gaylord,big box,bulk binandpallet boxare also shipping bins. Octabin and gaylord add cardboard. - Bin weights. A package weight beside a bulk container stays a package weight up to 1,200 kg, instead of becoming a shipment quantity.
- Unchanged. Vacuum wrapping can coexist with the outer container. Bare
jumboremains unsupported because it can describe product size.
From ontology 0.4.186 and resolver 1.130.0, explicit offer choices such as fresh or frozen,
fresh/frozen, and available fresh and frozen use refrigerationOptions:
{
"relation": "alternatives",
"options": [{ "refrigeration": "fresh" }, { "refrigeration": "frozen" }]
}
This is the normalized value of the evidence-bearing attribute. Each option can carry its own
packagingOptions: fresh in crates or frozen in cartons retains that pairing without emitting
global packaging. Multiple choices do not emit an arbitrary legacy refrigeration scalar.
Single-condition listings keep their existing scalar behavior. Unqualified conflicting conditions,
negation and incompatible observations still require review. Historical releases without the new
field retain the old conflict behavior. Field and value metadata is available in English,
Bulgarian, Polish and German; recognition of alternative phrases currently uses English wording.
Package-bound pc, pcs, piece, and pieces wording is retained as structured
contentCount, including exact values and ranges. The count belongs to the nearest explicit bag,
vacuum wrap, box, carton, or block in the same clause. It is separate from unitsPerParent, which
counts child packages in an outer container. Fabrication counts, per-piece calibration, ratios,
and unit prices are not converted into packaging content.
Context-bound fixed or fixed weight wording sets packaging weightMode: "fixed". It is
attached to the named component or presentation and its package net weight. When no container is
named, for example 10 kg fixed, the configuration carries the mode and net weight without
inventing a packaging form. Uses such as fixed contact person, fixed price, and fixed delivery date are intentionally excluded.
Since resolver 1.205.0, skin wording on a product of the pig is read into rind: on a pig, skin
and rind are one property and the release publishes it as rind. skin on, with skin are
rind-on and skinless, without skin are rindless; raw keeps the words. Skin and rind
wording that disagree on one pig product are conflicting_attribute_values on attributes.rind.
Poultry and other species keep skin.
Not every localized label is a recognition alias. Ambiguous skin/rind shorthand, product nouns, composite packaging, measurements, origins, dynamic grades, and context-dependent poultry or MSM values remain excluded or use their existing specialized parsers. This prevents display wording from erasing the core product term or manufacturing unsupported context.
From ontology 0.4.230 and resolver 1.166.0, seller-declared cut presentation uses two
product-scoped fields. bellyCutStyle currently accepts only straight-cut for Pork belly;
Pork belly narrow cut and wide cut remain bellyCutWidth. collarCutStyle accepts
straight-cut and narrow-cut only for Pork collar. These values do not supply dimensions,
anatomical boundaries, square geometry, false lean, fat cover, trim, bone, rind, tip state or
source-standard conformity. Bare, negated, alternative and unrelated-product phrases remain
reviewable.
Backward compatibility and metadata semantics
includeAttributeMetadata remains a read-model switch. It does not enable aliases, modify
candidate ranking, or change normalized values; recognition always comes from the active immutable
release. Applications should continue to use the original resolver result for decisions and use
attributeMetadata only for stable references, display, and explanation.
For durable structured storage, prefer result.canonicalAttributes. Every entry has a governed
fieldId; a controlled value has valueId when that exact value is governed in the release. A
broader structured observation may temporarily have only machineValue; consumers must not invent
a Meat Ontology value ID for it. The finite certification and packaging vocabularies accepted by the
structured Resolve contract are fully governed, and releases containing the ISO origin-country
vocabulary govern all 249 officially assigned ISO 3166-1 alpha-2 codes. Reserved, private-use,
deprecated, CLDR-only, and otherwise unassigned two-letter codes remain machine values without
Meat Ontology IDs.
const response = await taxonomy.resolveMeatProduct({
text: "Frozen pork belly",
metadataLocale: "de",
includeAttributeMetadata: true,
});
const refrigeration = response.attributeMetadata?.attributes.refrigeration;
console.log(refrigeration?.field.id, refrigeration?.field.label);
Persist the field/value IDs alongside canonical normalized values when durable attribute identity is useful. Alias additions are resolver-affecting ontology changes and carry a resolver behavior watermark; requesting metadata itself remains behavior-neutral.
Administrative governance
The protected admin API and Ontology → Attributes workspace expose the same governed records to editors, reviewers, and publishers without weakening the immutable-release boundary. Editors submit sourced append-only claims; the service computes alias normalization; reviewers see resolution and localization impact; publishers see the exact release delta. Publication requires all four locales for active fields and values and rejects translations linked to an outdated English claim.
See Attribute vocabulary administration for the lifecycle and
the nine taxonomy:admin operations. These privileged operations are described in
openapi/taxonomy-admin-v1.json; they remain intentionally excluded from the consumer OpenAPI
contract.