Concepts and versioning
Canonical model policy and current behavior
The agreed architectural direction, dated 2026-08-30, is one MeatBorsa canonical model. Existing MeatBorsa family schemes and concepts without a scheme will be consolidated into it. IMPS, UNECE, and other standards remain versioned external reference specifications mapped to canonical concepts and constraints. A different standard, name, language, or missing detail does not by itself justify a separate canonical product; genuine product distinctions must remain explicit.
Under that target model, ordinary discovery and tagging use MeatBorsa identities, including when an explicit external code supplies constraints. Standards are exposed through reference and comparison views, not duplicate primary products. See the repository's governing decision for curation requirements and the documentation sweep.
Migration is pending. This page otherwise describes the existing API: published releases can still contain separate scheme concepts, scheme-dependent selection, and qualified display labels. Clients must preserve those IDs and their release provenance until reviewed replacements or retagging instructions are published. Do not merge by label, hide unresolved distinctions, or assume new response fields or endpoint behavior from the architectural decision alone.
Product name and compatibility
The product is named Meat Ontology, and its immutable data releases are ontology releases. API field
names (taxonomyRelease, taxonomyReleaseId), auth scopes (taxonomy:read, taxonomy:resolve,
taxonomy:admin, and the other taxonomy: scopes), the host taxonomy.meatborsa.com, the
@meat-taxonomy/client package, and mtk_ service keys keep their "taxonomy" naming so existing
integrations keep working. Do not rename them in client code.
https://ontology.meatborsa.com serves the same HTTP API, OpenAPI contract and docs as
https://taxonomy.meatborsa.com, with the same credentials and data. Either base URL works and
both are permanent. MCP stays at https://taxonomy.meatborsa.com/mcp, because its OAuth resource
is bound to that URL; the new name redirects MCP requests there. Admin is at
https://ontology.meatborsa.com/admin; the old name redirects Admin links there.
API, ontology, and resolver versions are independent
/v1 is the HTTP contract version. It controls paths, request fields, response fields,
authentication, and error behavior. The current live OpenAPI contract is 1.7.0; the latest
immutable snapshot is 1.2.0. The path remains /v1 because existing requests and responses
retain their meaning.
taxonomyRelease.version is the version of the published ontology data used for a response. The
ontology release is returned as taxonomyRelease (field name kept for compatibility). A new
ontology release may add concepts, terms, translations, identifiers, or reviewed relationships
without changing the /v1 HTTP contract.
resolver.version and resolver.behaviorChecksum identify the independently deployed behavior
that normalizes product text, extracts qualifiers and attributes, ranks candidates, and selects an
outcome. The checksum is the authoritative equality check. A resolver behavior change can require
re-tagging even when the ontology release is unchanged.
Clients should:
- integrate against the
/v1contract; - preserve
taxonomyRelease.id,version, andcontentChecksumwith cached or derived results; - preserve
resolver.versionandbehaviorChecksumwith resolver-derived results; - invalidate ontology-data caches when the content checksum changes;
- never construct entity IDs or pagination cursors;
- treat canonical labels as display data rather than stable identifiers.
Current-release behavior
Resolution and ordinary browse operations use the current immutable published ontology release.
Historical releases cannot be selected for Resolve. getReleaseDiff compares historical releases
for change planning; getReleaseDictionary and getReleaseExpansions expose immutable historical
display and membership projections for already-tagged records. None selects a historical release
for text resolution.
Stable identifiers
Concepts, schemes, terms, relationships, sources, releases, governed collections, governed
attribute fields, and governed attribute values have stable UUIDv7 identifiers. Use the id field when storing a durable
reference. Names, labels, aliases, and classification codes are search and display inputs and may
evolve in later ontology releases.
Retired classes represented by composition
A deprecated animal class can carry replacementComposition with speciesConceptId, scopeNote
and at least one of sex (male or female), lifeStage (young),
feedingRegimeClaim (milk-fed) or animalClassComposition. Qualifiers may coexist when independently supported. It cannot also carry replacementConceptId. The species
must be an active animal species concept. This is an explicit reviewed decomposition, not a
single-ID redirect or a general language for arbitrary attribute expressions. young is
qualitative: it supplies no numerical age or weight limit and does not establish nursing.
Local ontology 0.4.94 uses this for Male pig. GET /v1/concepts/{id} keeps the old ID readable;
release dictionaries expose the same composition instructions. Resolver 1.74.1 recognizes the
six retained English, Polish, Bulgarian and German phrases as pig plus male, preserving a stated
cut or carcass separately. The retired ID is not a new animal-class selection or context. No
age, intact/castrated status, live-animal sale or external-standard conformity follows from it.
Ordinary legacy deprecations without this explicit field retain their existing behavior.
Clients must re-resolve saved descriptions under release-diff recheck advice, preserve separately supported product and attribute evidence, and review conflicts. Never replace the old ID with the species ID while discarding sex. An explicitly saved category 8 reference needs its separate male/intact/immature requirements; the old ID alone cannot establish them. Historical dictionaries remain immutable. This local publication does not migrate client records or production.
Local 0.4.96 extends this contract for Young pig. Its old ID
019ff700-0000-711e-864e-1ab57d893560 remains readable as deprecated with Domestic pig and
lifeStage: "young". Resolver 1.75.0 emits attributes.lifeStage from the retained exact
Young pig phrase; it preserves product wording, excludes the retired class from new class contexts,
and does not infer sex, nursing or numerical age/weight. Negated phrases supply no positive stage;
explicit adjacent adult/mature wording requires review. This bounded extension does not add a
generic young-adjective matcher, plural alias or automatic maturity classifier.
The controlled lifeStage field and young value have governed IDs, returned in
canonicalAttributes, and display definitions in English, Bulgarian, Polish and German via
includeAttributeMetadata. Their localizations are not resolver aliases. Category 7 now belongs
to Live pig as a narrower external reference: qualitative youth, hot carcass weight strictly
below 35 kg, and head-on presentation. The latter remains explicit in the reference scope note;
numeric criteria alone cannot establish eligibility. Suckling pig and Milk-fed pig are unchanged.
Clients must preserve life stage when migrating the old ID and follow full release-diff advice
with the changed resolver provenance. No existing client tags are rewritten by local publication.
Local 0.4.97 retires Hog/Barrow and/or gilt with this composition:
{
"speciesConceptId": "0198a000-0000-7000-8000-000000001001",
"animalClassComposition": {
"mode": "options",
"classConceptIds": [
"019ff700-0000-7045-8402-6183955286f9",
"019ff700-0000-712b-867d-c18cb0d702c8"
]
},
"scopeNote": "Keep the product separately; either class or both may be present."
}
options means one or more listed classes are possible, without confirming which. mixture
means explicit reviewed evidence confirms every listed class is present. Neither mode supplies
proportions. At least two distinct active animal-class IDs of exactly the declared species are
required. Member IDs are sorted canonically; their order conveys no priority or proportion.
Resolver 1.76.0 emits attributes.animalClassComposition for the three existing full reviewed
phrases, preserving a separately stated product. The structured canonical field retains the
mode and IDs in its JSON machineValue; display metadata is available in all four supported
languages. Embedded member terms and excluded compositions must not select a member. Separately
stated class/sex evidence requires review rather than silently narrowing options. This release
does not parse arbitrary class lists or mixture grammar; unreviewed wording remains unresolved.
The retired ID remains readable in concept lookup and dictionaries, with no single replacement ID and no eligibility as a new class context. Category 3 is an overlapping external Live pig reference, not proof of confirmed membership or exact canonical eligibility. Clients must preserve the composition when re-resolving old tags. Release-diff full recheck advice includes all three original term IDs and changed resolver provenance; no client records are rewritten.
Local 0.4.98 retires Milk-fed pig with speciesConceptId for Domestic pig,
feedingRegimeClaim: "milk-fed" and a scope note. Its old ID remains readable, with no single
replacement ID or new class-context eligibility. Resolver 1.77.0 emits the existing
attributes.feedingRegimeClaim shape for the full reviewed phrase. The new controlled value has
a governed ID in canonicalAttributes and four-language display metadata; the field ID is unchanged.
Milk-fed is a stated claim, not verified feeding protocol, exclusive milk diet, nursing, age, weight or certification. Suckling pig is unchanged and is not inferred. Product context and independently stated attributes remain separate. Negated phrases supply no positive claim; conflicting feeding values require review. This adds no unrestricted milk-fed matcher, plural or translated alias. Full release-diff recheck advice includes the old term and changed resolver provenance. Client migration must preserve the feeding claim; no saved tags are rewritten locally.
Local 0.4.99 separates ordinary Lamb — A young sheep into MeatBorsa concept
01a053e5-4a97-7469-837d-10dfa17bd060. The old source-bound ID
019ff700-0000-75b2-8ac1-48ba86cf07e4 remains readable as a deprecated reference, with neither
replacementConceptId nor replacementComposition: the two meanings are not equivalent.
The retained external category identifier now targets the new class with a narrower mapping
and conjunctive age/dentition requirements. Ordinary Lamb/Lamm terms retain their IDs but change
concept ownership; cut, carcass and offal product IDs are unchanged. Bare Lamb supplies animal
context without inventing a meat product or live-animal sale.
Resolver 1.78.0 excludes deprecated animal classes from fresh matching and animal-class context,
after applying any separately reviewed redirect or composition. Lookup and historical dictionaries
remain available. Re-resolve saved descriptions and retain independently supported source
requirements; do not infer age, dentition or conformity from the old ID alone. The full release
diff includes both concept IDs and both original terms. Local publication does not update clients.
Local 0.4.100 makes the existing English Young lamb term a synonym of that same MeatBorsa
Lamb concept, preserving the term ID. Young lamb's source-bound concept
019ff700-0000-7ce4-8524-1eababfbd961 remains readable as deprecated, with no automatic redirect.
Its category 1 identifier is now a narrower Lamb reference with age below six months AND no
permanent incisors; the existing category 2 reference is unchanged. Ordinary words establish
neither requirement. Product IDs are preserved, and no extra canonical class is introduced.
Resolver 1.78.0 is unchanged. The old ID is rejected as new class context, while the ordinary
context name Young lamb identifies canonical Lamb. Negated young-lamb wording supplies no positive
Lamb attribute. Unreviewed age, teeth or feeding phrases stay unresolved; reference metadata is
not an automatic classifier. Release-diff advice still requests a full recheck, including the
original term and both concept IDs. Preserve independently supported source requirements when
re-resolving saved descriptions.
Local 0.4.101 adds Ewe — An adult female sheep as MeatBorsa class
01a05409-479b-7183-9395-040df60dfcee, with an English preferred term and IS_A Live sheep edge.
External Ewe mutton (019ff700-0000-769e-8e91-2f6d35f710f8) remains active in its original scheme,
with unchanged terms, criteria and identifier. Both IDs remain separate; neither redirects to
the other, and no client tags are rewritten. Resolver 1.78.0 is unchanged. This addition does
not complete short-product parsing or general validation of textual qualifiers against class
criteria. See the publication record.
Qualified external references
External identifiers can carry an optional mapping with a reviewed relation and scopeNote.
The direction is external specification relative to the canonical concept: narrower
means that the external category has additional restrictions. Other supported relations are
exact, broader, and overlapping. An identifier without a mapping has no declared equivalence;
neither attachment of a code nor an exact class mapping establishes whole-product conformity.
For a narrower animal-class reference, additionalCriteria can record extra class requirements.
These are reference requirements, not facts inferred from a listing or added to the canonical
class. Qualitative requirements that cannot be evaluated are retained in the scope note.
The release export, dictionary, concept enrichment, Explore, and admin reference responses retain
the qualification. The admin exposes it under an expandable external-reference detail.
This additive support does not introduce automatic standard-code parsing or conformity evaluation.
Bull is the first local use, in ontology 0.4.87: the existing canonical ID means male cattle
that have not been castrated, with no age restriction. Its external 2023 bovine category 1
reference is narrower: older than 24 months, with evidence of male sex traits. A stored Bull ID
alone never supplies those facts. Young bull remains a separate, unchanged record pending review.
Local ontology 0.4.88 applies the same boundary to Steer: male cattle that have been castrated,
with no canonical age restriction. External category 3 is narrower because it requires youth.
That requirement remains in the mapping note; the reviewed entry gives no numeric cutoff,
so the mapping has no numeric additionalCriteria and is not automatically evaluated.
Local 0.4.89 adds Heifer to MeatBorsa with unchanged female/has_not_calved criteria and no age
cutoff. Its category 4 reference similarly retains youth as a qualitative narrower requirement,
without numeric additionalCriteria. Cow remains a separate, unchanged concept for later review.
Live-animal roles
Published animal-class payloads can carry animalClassRole: "live_animal_root" for a broad
tradable live animal without class restrictions. This role is independent of scheme membership;
the graph must also connect the class to an animal_taxon. A class such as Sow or Turkey hen
does not acquire that role merely by joining MeatBorsa. Resolver 1.72.0 supports the explicit
role and retains the four established live-animal IDs for historical payloads without it.
Do not infer the role from the English label or the absence of criteria. This was first published
locally in ontology 0.4.86; it is not a statement that production has received that release.
Localized attribute presentation
Resolve and Explore keep their canonical machine attributes in result.attributes and
exploration.attributes. Callers that set includeAttributeMetadata: true receive a separate,
optional attributeMetadata read model from the same immutable release. It supplies stable field
IDs, stable controlled-value IDs, and localized labels and descriptions in English, Bulgarian,
Polish, or German with explicit English fallback.
Requesting the metadata layer does not change the resolver. Store and compare IDs and machine values; use labels and descriptions only for presentation. An immutable release can separately publish governed recognition aliases that normalize reviewed localized input to those same machine values. Aliases are release data, not display labels, and they apply equally with or without the metadata option. See localized attributes.
Published resources
Published resources include provenance metadata:
{
"id": "0198a000-0000-7000-8000-000000001025",
"sourceId": "0198a000-0000-7000-8000-000000000002",
"evidenceClass": "authoritative",
"confidence": 1,
"payload": {
"conceptType": "cut",
"canonicalLabel": "Pork Belly",
"definition": "The ventral portion of a pig carcass after removal of the loin.",
"status": "active"
}
}
sourceId, evidenceClass, and confidence are part of the public contract and should not be
discarded when consumers need traceable ontology decisions.
Operation selection
GET /v1/concepts (listConcepts) accepts an optional scheme filter: use a scheme UUIDv7
from listSchemes, or none to find concepts whose schemeIds are absent or empty. Omit it
to include all concepts. Scheme membership is combined with query, type, and status
before cursor pagination; keep the same filters when requesting the next page. This supports
inspection of the current published model and does not change concept identity or resolution.
| Need | Operation |
|---|---|
| Search or page through concepts | listConcepts |
| Browse animal species | listSpecies |
| Retrieve one stable concept | getConcept |
| Expand a semantic selector to current concept IDs | expandConcepts |
| Discover or load an explicit governed set | listCollections, getCollection |
| Render IDs under one immutable release | getReleaseDictionary |
| Query tags under one immutable release | getReleaseExpansions |
| Inspect reviewed relationships | listConceptRelationships |
| Browse a classification hierarchy | browseSchemeTree |
| Resolve free text into candidates and attributes, optionally with localized metadata | resolveMeatProduct |
| Enrich the shared resolver selection with context and optional localized metadata | exploreMeatProduct |
| Compare two concepts | compareMeatCuts |
| Find reviewed directional substitutes | findMeatSubstitutes |
| Plan incremental re-tagging after a watermark change | getReleaseDiff |
| Cache the entire current release | getReleaseExport |
Release diffs and re-tagging
getReleaseDiff compares the effective records in two immutable snapshots and reports stable
entity changes. It also compares the caller's stored resolver behavior checksum with the current
resolver and returns none, targeted, or full re-tagging guidance.
Term and concept changes can be targeted through affected IDs and locale-aware vocabulary. Changes to the resolution graph or context, and any changed or unknown resolver behavior checksum, require a full pass. Source and other metadata-only changes remain visible in the diff but do not require re-resolution. The comparison spans the two requested snapshots directly, so clients do not need to replay intermediate releases.
The diff also returns reviewed replacements for deprecated concepts, attribute fields, attribute
values, and collections. Apply those stable-ID mappings before the separate retagging plan.
Deprecation without a replacement is not a safe ID substitution. Local 0.4.105 retires the two
source-owned Pork trimmings profiles and the browse-family concept without redirecting them.
The general product keeps ID 01a01840-8a81-7ee6-ba34-5476d05c3322; IMPS 418 and UNECE 4470
appear as qualified narrower references. Collection 01a056c4-37a8-71cc-af88-7cfe93e1f078
preserves the wider grouping. Resolver 1.81.0 excludes retired concepts from fresh matching
after valid redirects/compositions. Recheck original evidence and preserve stated attributes,
even when the surviving primary ID does not change. The collection is not a product replacement.
See the ontology decision and downstream migration guidance.
Resolver and Explore semantics
resolveMeatProduct owns concept selection. exploreMeatProduct uses that same selection and adds
published evidence and graph context; it does not apply a second ranking rule. An ambiguous or
unresolved resolver result therefore has no Explore focus.
Resolver candidates distinguish matchType, which compares a reviewed term with the complete
input, from matchTypeCore, which excludes safely consumed controlled attributes and compatible
reviewed qualifiers. This keeps the stable /v1 meaning of matchType while allowing a qualified
description such as frozen pork shoulder to report an exact core product term. Core matching does
not change candidate ranking or confidence scores.
The supported automatic-tagging gate requires a resolved selection whose primary candidate has
matchTypeCore: "exact", plus empty ambiguities and no unresolved entries other than typed
non_product_vocabulary residue. Raw score is not a
probability, and scoreMargin does not replace the resolver's selection status. See the
quickstart for the copyable policy
function and persistence requirements.
Reviewed commodity or species words found in the description may remove incompatible hierarchy
branches before selection. They do not break a tie between products that remain compatible with the
same context. For example, beef rump can exclude veal rump concepts while remaining ambiguous
among Rump cap, Beef rump cuts, and D-rump.
The free-text API also recognizes reviewed animal-class wording without requiring clients to send
a structured species field. When an animal class has exactly one reviewed meat commodity for its
taxon, the resolver may use every reviewed same-language commodity alias as internal context. This
allows wording such as Hen breast fillet to reach chicken products while preserving Hen as an
explicit context candidate. It does not invent a bridge for a class whose meat commodity is absent
or non-unique, except for the bounded canonical-class rule below.
From resolver 1.80.0, a MeatBorsa class immediately followed by the English head meat can
compose into its commodity while retaining the explicit class attribute: lamb meat is Sheep
meat plus Lamb; young bull meat is Beef plus Young bull. Where cattle has both Beef and Veal,
the class must have a reviewed output whose ancestry establishes exactly one commodity.
Shared animal origin is insufficient, and no age or diet is inferred. This new composition does
not apply to external classes such as Mutton, and is not a general multilingual grammar.
Commodity typo correction permits only a single spelling edit; a common meat word or
-fleisch suffix cannot provide the missing animal identity. Explicit live-animal wording cannot
select a meat or organ product. An unsupported live animal stays unresolved; no live-animal
concept is invented to fill that gap.
The same conservative commodity bridge is available for a caller-supplied species field. If the
species has exactly one reviewed compatible meat commodity, the resolver may use that commodity as
virtual lexical context for wording such as Loins IVP with Domestic pig. The bridge requires a
non-fuzzy orderable-product match, does not infer a scheme, and is disabled when the text already
states a commodity, when an animal-class bridge applies, or when compatible commodities are
non-unique. The caller's text and species remain the authoritative assertions.
The reviewed Argentine cattle-offer rule is a deliberately narrower exception to the unique-
commodity requirement. A leading Arg. or Argentina origin, caller-supplied Domestic cattle,
and an unqualified Striploin or Tenderloin head may supply scheme-neutral Beef terminology.
That market convention does not turn Domestic cattle into a global Beef synonym: other origins,
origin-less titles, missing cattle context, and other cuts retain the ordinary ambiguity boundary.
Explicit title or caller Beef/Veal evidence always overrides the default.
A separately supplied commodity is more direct than the species bridge and should be used when a
platform category is already known. It can supply compatible commodity terminology to a non-fuzzy
orderable-product phrase without modifying the submitted text or inferring a scheme. Compatibility
comes from explicit published commodity lineage, with species fallback only when exactly one meat
commodity shares that lineage. If every credible product conflicts, the outcome is
unsupported_product_for_commodity with no cross-commodity options.
When explicit embedded species or caller-supplied species context conflicts with every credible
product candidate, the resolver returns unsupported_product_for_species with no cross-species
options. This is an ontology coverage outcome, not permission to drop the stated species.
An active orderable product or animal class must inherit exactly one animal taxon through the
published relationship graph. Additive release preparation, preview, and verification reject
zero-species and multi-species projections. NARROWER_THAN mappings participate in that lineage,
which currently lets standardized presentations inherit species from a reviewed broader market
identity while retaining separate stored concepts. That describes the pre-consolidation graph;
it is not a rule requiring separate canonical identities because their source standards differ.
When the resolver can identify a specific missing discriminator, it returns an actionable
unresolved outcome instead of a generic ambiguity. The unresolved selection exposes a stable
reasonCode, the missingContext fields to request, and every viable option with distinguishing
species, scheme, and bone-state context. Consumers should ask for the missing context and must not
turn the first or highest-scoring option into a default. Ordinary close matches remain ambiguous
when no supported context field is sufficient to explain the tie.
missing_scheme remains a current diagnostic, not a permanent requirement that traders know a
standard. Do not manufacture a scheme to satisfy it; retain the unresolved outcome if the caller
cannot supply the context. The target model must distinguish missing product detail from duplicate
standard-owned identities and ask about the actual product distinction where clarification matters.
Completion of the original animal-class inventory
Local 0.4.102–0.4.103 settles all original 40 records: 28 active MeatBorsa classes and seven
active external categories. Scheme filtering selects membership; unfiltered discovery is not
yet canonical-only.
Young bull (01a05417-fc98-7696-bfea-49110a6cfa1b), Kid
(01a05417-fc98-7696-bfea-4d09d5627f47) and Wether (sheep)
(01a05417-fc98-7696-bfea-521022d769c3) are new IDs. The old bounded young-male and two Kid IDs
remain readable and deprecated without replacement IDs or compositions. Generic Goat's former
class ID is also deprecated without redirect; ordinary goat wording supplies species context,
not Live goat. Seven ordinary adopted classes retain their IDs. Retained external categories,
including Mutton, Ewe mutton and Wether mutton, receive no new canonical replacements.
Resolver 1.79.0 recognizes Turkey hen without also applying chicken Hen and prevents no young
bull from asserting Bull. Separate explicit classes still produce ambiguity. A reviewed output
edge keeps Young bull carcass phrases on the existing Bovine carcass ID with exact core matching.
This does not implement general eligibility validation. Before a separately authorized client
rollout, request release-diff guidance using the previous release ID and resolver checksum, and
perform the advised full recheck; no client tags were rewritten locally.
Commodity identity and translated descriptions
Local ontology 0.4.104 provides fourteen MeatBorsa commodities. The ten previously published
commodity IDs remain valid; the additional four cover rabbit, horse, llama and alpaca meat.
Membership and description changes do not certify old tags: Veal's scope correction and repaired
vocabulary require reviewing saved descriptions before client migration. Beef and Veal remain
separate commercial categories; Venison denotes deer meat, not all game. Commodity scope includes
edible meat products without changing the type of a liver, fat product or cut.
Concept claims and admin create/update requests accept an optional localizedDefinitions map.
It must include en exactly equal to definition; locale keys and nonempty text are validated.
Translations are part of the same reviewed claim as the English definition, so they share its
publication history. The dictionary uses them in localizations[locale].description.
fallbackUsed is true if either the label or description falls back; resolvedLocale continues
to describe the label's locale. A label translation alone does not imply a translated description.
When an admin update omits the map and retains the English definition, existing translations are preserved. Changing English without supplying updated translations clears the old map. Explicit stale maps are rejected; legacy imported mismatches fall back to the current English description. Existing claims without the field remain valid. This pass supplies EN/BG/DE/PL/HR/FR/ES descriptions for commodities; it does not claim complete translated descriptions for the rest of the catalogue.