OGS Core Specification
Open Gastronomy Standard — Core v0.6
1. Scope
1.1 What OGS Covers (v0.6)
The Open Gastronomy Standard (OGS) provides a machine-readable, JSON-based vocabulary for describing:
- Ingredients — sensory profiles, categories, and provenance
- Dishes — composition, cooking methods, and resulting sensory characteristics
- Beverages — wine, beer, cider, sake, spirits, cocktails, coffee, tea and non-alcoholic drinks: structural attributes, aromatics, style and typological classification
- Pairings — scored, explainable matches between a dish or an ingredient and a beverage
- Cuisines (new in v0.2) — culinary traditions with endonym-first naming and optional sub-cuisine hierarchy
- Allergens and diets (new in v0.4, optional module) — what an item contains and which diets it suits. See OGS Allergens and Diet.
v0.2 also introduces a full internationalization layer (LString, BCP 47,
multilingual thesauri, translation provenance). See OGS Internationalization.
The i18n additions are fully backwards-compatible with v0.1 documents: bare
strings remain valid as LString Form 1.
v0.3 makes the conformance levels checkable: shared schema definitions
(common.schema.json), the detailed sensory-value format in the schemas,
profile-level provenance, a texture vocabulary file, and precise rules for each level.
See the changelog.
v0.4 makes explanations checkable against the data: profiles gain fat, pungency and overall intensity; aroma groups are controlled; explanation codes declare the conditions under which they are true; pairings declare how they were scored.
v0.5 broadens coverage: every kind of drink, beverage styles as well as
products, sub-preparations such as sauces, pairings with a single ingredient,
and a pairing focus on one part of a dish.
v0.6 reviews every controlled vocabulary: definitions that say what each term covers and where it ends, new terms where coverage was thin, explanation codes corrected against established food-and-beverage interactions, and complete translation bundles.
1.2 What OGS Does NOT Cover (v0.6)
- Recipe instructions or step-by-step preparation methods
- Nutritional data (allergens are covered by the optional diet module)
- Pricing, availability, or supply-chain data
- Cocktail recipes and mixing specifications (a cocktail can be described as a beverage; how to make it is out of scope)
- Multi-course meal sequencing
- Cultural or religious dietary classifications
- Locale-aware number/date formatting, pluralization, grammatical gender (see OGS Internationalization §13 for the full out-of-scope list for i18n)
2. Design Principles
| Principle | Description |
|---|---|
| JSON-first | All OGS documents are valid JSON. Human-readable Markdown specifications define the semantics; JSON Schema enforces structure. |
| Controlled vocabularies | Sensory terms, component roles, cooking methods, and match types use finite, versioned term lists. |
| Explainability | Every pairing score is accompanied by structured explanation codes that articulate why a pairing works or fails. |
| Extensibility | Producers MAY include additional properties prefixed with x- without breaking conformance. |
| Ontology-compatible | ID formats and vocabulary structures are designed to map cleanly to RDF/OWL ontologies in future versions. |
| Provenance-aware | Data points carry source, confidence, and method metadata so consumers can assess reliability. |
3. Versioning
OGS uses Semantic Versioning:
- MAJOR — breaking changes to schema or vocabulary
- MINOR — backwards-compatible additions (new entity types, new explanation codes)
- PATCH — corrections, clarifications, example fixes
Every OGS document MUST include a top-level field:
"ogs_version": "0.6.0"
Schemas currently accept 0.1.x to 0.6.x versions (cuisine documents:
0.2.x and later). Consumers SHOULD reject documents whose MAJOR version they do
not support.
v0.3 is a MINOR release relative to v0.2. Every v0.1 and v0.2 document that followed the specification remains valid. The v0.3 schemas do enforce three rules the specification already stated, so documents that broke them now fail L1: the grade must match the score (OGS Matching §5), language tags must be valid BCP 47 (OGS Internationalization §4), and translation provenance may only use the fields defined in OGS Internationalization §7.
v0.4 is a MINOR release relative to v0.3. Requirements added in a version apply
to documents that declare that version or later: a 0.3.0 document is judged by
the v0.3 rules, so it keeps its conformance level. One exception: a document
that used a name v0.4 now defines (intensity in a sensory profile, dietary,
scoring) as its own unprefixed custom field must rename it; custom fields are
best prefixed with x- (§9).
v0.5 is a MINOR release relative to v0.4. It adds beverage types, cooking
methods, courses and optional fields, and a pairing now requires exactly one
of dish_ref and ingredient_ref instead of always dish_ref. As in v0.4, a
document that used one of the newly defined names as its own unprefixed
custom field must rename it: kind and style on a beverage,
serve_temperature_c on a dish, share and preparation_ref on a
component, focus and ingredient_ref on a pairing.
v0.6 is a MINOR release relative to v0.5. It adds vocabulary terms and
defines no new fields. Several explanation codes changed meaning or
conditions to match established food-and-beverage interactions (see the
CHANGELOG). A pairing is checked against the code conditions of the version
it declares, so earlier documents keep their level. Each release's schemas stay
published unchanged at https://opengastronomy.org/schema/<version>/.
4. Entity Types
OGS defines five entity types:
| Type | Schema | Description |
|---|---|---|
ingredient |
ingredient.schema.json |
A single culinary ingredient with sensory profile |
dish |
dish.schema.json |
A composed dish with components and overall profile |
beverage |
beverage.schema.json |
Any drink, alcoholic or not: a product or a style |
pairing |
pairing.schema.json |
A scored, explained match between a dish or an ingredient and a beverage |
cuisine |
cuisine.schema.json |
A culinary tradition with endonym-first naming (new in v0.2) |
5. Identifier Format
All OGS entities use a namespaced URI-style identifier:
ogs:<namespace>:<type>:<id>
| Segment | Description | Examples |
|---|---|---|
ogs |
Fixed protocol prefix | — |
<namespace> |
Publisher namespace | core, michelin, wset, user |
<type> |
Entity type | ingredient, dish, beverage, pairing |
<id> |
Kebab-case unique identifier | black-truffle, seared-wagyu-truffle |
Examples:
ogs:core:ingredient:black-truffleogs:core:dish:seared-wagyu-truffleogs:core:beverage:barolo-2018ogs:core:pairing:wagyu-barolo
5.1 ID Rules
- Namespace, type, and id segments MUST use lowercase ASCII alphanumeric characters and hyphens only.
- The
corenamespace is reserved for the OGS project's own reference data. - Third parties SHOULD use a recognizable namespace (e.g., organization name).
6. Provenance Model
Any data point in OGS MAY carry provenance metadata:
| Field | Type | Description |
|---|---|---|
source |
string |
Origin of the data (e.g., "WSET Level 4 tasting note", "instrumental GC-MS analysis") |
confidence |
number |
Value between 0.0 (no confidence) and 1.0 (absolute certainty) |
method |
string |
One of: expert_panel, instrumental, computed, estimated, user_submitted |
Provenance can be given on an individual value or, for sensory profiles, once for
the whole profile with the profile's provenance field; a value's own fields take
precedence (see OGS Sensory §7.3).
When provenance is not specified, consumers SHOULD treat the data as estimated with confidence: 0.5.
7. Conformance Levels
OGS defines three conformance levels so that producers can adopt the standard incrementally:
Level 1 — Structural (L1)
- The document is valid JSON.
- The document is UTF-8 encoded and Unicode NFC-normalized.
- The document passes validation against the appropriate OGS JSON Schema.
- Required fields (
id,ogs_version,name, entity-specific required fields) are present. - Bare-string
LStringvalues are permitted (LStringForm 1 — see OGS Internationalization).
Level 2 — Vocabulary (L2)
- Meets all L1 requirements.
- All enumerated fields use terms from the OGS controlled vocabularies (texture terms, component roles, cooking methods, match types, aromatic families, explanation codes, cuisines).
- Risks use negative explanation codes.
- Dish cuisines are cuisine references (
ogs:<namespace>:cuisine:<id>); references into thecorenamespace exist invocab/cuisines.json. - From v0.4, aroma groups belong to their family (
vocab/aromatic_families.json). - From v0.6, an ingredient's
categoryis not one its claimed diets exclude (OGS Allergens and Diet §4). - From v0.5, beverage
style.methodsare invocab/beverage_methods.json; a dish does not include itself through its sub-preparations (preparation_ref, OGS Composition §6.3); a beverage claimingalcohol_freehas an ABV of at most 0.5%. - When present,
dietaryfollows the diet module: known allergens and diets, and no diet claim contradicted by a contained allergen (OGS Allergens and Diet §5). - No unknown terms appear in vocabulary-controlled fields.
- All BCP 47 language tags appearing in the document parse validly.
- Entities SHOULD declare
primary_language.
Level 3 — Semantic (L3)
- Meets all L2 requirements.
- Sensory profiles are fully populated (all basic tastes and structural attributes present). This applies to an ingredient's or beverage's
sensory_profileand a dish'soverall_sensory_profile. - Explanation codes are provided for all pairings.
- Provenance metadata (
source,confidence,method) is present on every basic taste and structural value, either on the value itself or through the profile'sprovenance(OGS Sensory §7.3). - Pairing scores carry provenance:
confidence,evidence.method, and at least one entry inevidence.sources. - From v0.4: profiles also include
fat,pungencyand the overallintensity(OGS Sensory §4); pairings carry ascoringdeclaration and scoreintensity_alignmentandstructural_balance(OGS Matching §3–4). - Explanation codes SHOULD be consistent with the dish and beverage profiles: a code whose conditions the profiles contradict SHOULD NOT be used (OGS Matching §6.2).
- Entities MUST declare
primary_language. Human-readable fields SHOULD useLStringForm 2 or Form 3. Non-primary-language labels of rolepreferred/descriptive/loanSHOULD carrytranslationprovenance (see OGS Internationalization §7).
7.1 Checking Conformance
Where each requirement is checked:
| Level | Checked by |
|---|---|
| L1 | The entity's JSON Schema in schema/ (which references common.schema.json and lstring.schema.json), plus UTF-8 / NFC text checks (OGS Internationalization §10). |
| L2 | Membership of vocabulary-controlled values in vocab/*.json. Some small vocabularies are also enums in the schemas; tests keep both in sync. |
| L3 | Completeness and provenance rules above. |
A document's conformance level is the highest level whose requirements, and those of every level below it, are all met. A validator SHOULD report that level together with the requirements that block the next one.
References between documents (ingredient_ref, preparation_ref, dish_ref, beverage_ref, cuisine references) do not affect the level, because a document may point at entities published elsewhere. A publisher validating a collection of documents SHOULD also check that the references within it resolve.
Every schema declares an $id under https://opengastronomy.org/schema/<version>/ and is served at that URL; published versions never change. Entity schemas reference common.schema.json and lstring.schema.json relatively, so validators SHOULD load the schemas of one version together (or fetch them by $id). The schema index lists every version.
8. Document Structure
Every OGS document shares a common envelope:
{
"id": "ogs:<namespace>:<type>:<id>",
"ogs_version": "0.1.0",
"name": "Human-readable name",
"description": "Optional longer description",
"metadata": {
"created": "ISO-8601 datetime",
"updated": "ISO-8601 datetime",
"source": "Origin description",
"license": "Apache-2.0"
}
}
Entity-specific fields are defined in their respective specifications:
- Ingredients: See OGS Sensory for sensory profile structure
- Dishes: See OGS Composition for composition model
- Beverages: See OGS Sensory for sensory and structural attributes
- Pairings: See OGS Matching for matching and scoring model
9. Extension Mechanism
Producers MAY add custom fields to any OGS document by prefixing the field name with x-:
{
"id": "ogs:mycompany:ingredient:custom-spice",
"ogs_version": "0.1.0",
"name": "Custom Spice Blend",
"x-internal-sku": "SPB-2024-001",
"x-supplier-rating": 4.5
}
From v0.4, x- fields are allowed in any object of a document, including nested ones such as aroma entries, match types and risks (localizable strings excepted). Conformance validators MUST ignore x- prefixed fields. Consumers SHOULD NOT rely on x- fields for interoperability.
10. References
- OGS Sensory — Sensory Model Specification
- OGS Composition — Composition Model Specification
- OGS Matching — Pairing/Matching Model Specification
- OGS Internationalization — Internationalization Specification
- OGS Allergens and Diet — Allergens and Diet Module (optional)
- OGS-Bench — Benchmark Specification for evaluating AI systems
vocab/explanation_codes.json— Explanation Code Vocabularyvocab/{cooking_methods,component_roles,match_types,aromatic_families,textures,cuisines,allergens,diets}.json— Controlled vocabulariesvocab/translations/{lang}.json— Multilingual label bundlesschema/— JSON Schema definitions for all entity types (+ sharedcommon.schema.jsonandlstring.schema.json)- the changelog — Changes between versions