Technical tutorial by Loot Teknoloji, generated with AI and checked against the runnable fixture. All records in this example are synthetic. This is not a supplier directory, an endorsement, or a sales channel.
A row is a claim, not a supplier
Suppose a small manufacturer says it can turn aluminium parts in batches of 200. A purchasing database could store that sentence as an attractive line of copy. A useful dataset does something less glamorous: it describes the process, material, quantity unit, evidence, and date separately. It leaves a missing value blank rather than making a plausible guess. It also tells the reader what the number does not mean. A batch size is not monthly throughput; a past inspection does not reserve machine time; a translated statement does not make the original stronger. The difference matters whenever a hurried buyer, a spreadsheet, or an automated filter tries to read the row as an offer.
This companion specifies a small training dataset and a way to reproduce it without access to a platform or any business records. Every identifier and observation below is invented. The fixtures do not represent real factories in disguise; they were chosen to exercise questions a schema ought to answer. The point is not to infer an industry's productivity or to identify suppliers. It is to show how an import tool, an educator, or an analyst can distinguish a useful capability claim from one that is stale, unsupported or simply unknown. A reader who follows the published rules should obtain the same summary independently.
Scope, unit of observation and boundaries
The unit of observation is one reported capability for one synthetic site in one dated record. A capability describes the intersection of a manufacturing process and a material family. The table does not claim to cover all work a site can do. Several records may refer to the same site, but two records for the same site, process and material family must not be counted as evidence of two independently available production lines. A later record can describe a change. Before comparing sites, choose a reference date and decide which observation for each combination is in scope.
There are three things this dataset deliberately does not contain. It does not hold names, addresses, registration numbers or contact details. It does not hold bids, private specifications, prices, certifications or committed delivery dates. And it does not include a single score that ranks suppliers from good to bad. A database can give unwarranted authority to a score simply by displaying it consistently. Here the evidence state and the inspection date stay visible so a reviewer can use thresholds appropriate to a task. A learner can test a ranking model on these fixtures, but its output is a teaching artefact, not a recommendation.
The geographic unit is also deliberately absent. A legitimate production system might need a customs jurisdiction or broad operating region. This exercise has no reason to claim a city or use realistic coordinates. That omission prevents an invented row from being mistaken for a real facility and saves an instructor from explaining an irrelevant variable. Material and process names have ordinary industrial meanings; the values and site combinations do not come from an actual business or a hidden sample. If someone adds a region field in a later release, they must explain what it describes and whether it increases the risk of identifying a real company.
The field dictionary
The column names are part of the interface. They are written in lower-case ASCII. Labels in documentation may be translated; column names, values in controlled lists and units in the file should not drift with the display language. A spreadsheet configured for a different locale may silently change dates, numeric text or delimiters. Use the parsing specification, not what a single application happens to display.
| Field | Type and requirement | Meaning and validation |
|---|---|---|
record_id | Required string; unique | Stable row key for this release, for example SIM-C001. It is an identifier, not a count or a registration number. |
synthetic_site_id | Required string | A fictitious location key such as SIM-S01. Multiple capabilities may share it; do not count records as locations. |
process_code | Required enumeration | One of cnc_turning, sheet_bending or assembly. It does not specify a make, model or qualification. |
material_family | Required enumeration | One of aluminium_alloy, carbon_steel or mixed_components. These are broad classes, not material grade certifications. |
min_batch_pcs | Positive integer or empty | Smallest stated batch, in finished pieces, under the example conditions. Empty means no value was supplied. |
max_batch_pcs | Positive integer or empty | Largest stated batch, in finished pieces, under those conditions. When both bounds exist it must not be less than the minimum. |
observed_on | Required calendar date | The date the claim was collected or reviewed in this exercise, expressed as YYYY-MM-DD. It is not a certificate issue date. |
evidence_state | Required enumeration | self_reported, document_reviewed or unknown. All codes refer to simulated circumstances. A reviewed document is not a production audit. |
evidence_ref | Conditional string | When the state is document_reviewed, a synthetic evidence key such as SIM-E01 is required. For the other states the field is empty. |
record_origin | Required constant | Always synthetic in this release. Prevents an example row from being read as a verified live capability. |
The two batch fields are independently nullable. A minimum without a maximum might still answer a classroom question about whether a small trial is below the stated threshold, but it cannot demonstrate a firm's upper bound. An empty field is never zero, an unlimited quantity or a guess at an industry average. A quantity outside a stated range is outside this record's claim, not proof that a factory could never produce it. Capacity may depend on the geometry of a part, raw-material availability and queue length. None of these conditions is modelled here; silently treating them as constant would overstate what the table establishes.
The evidence fields are purposely modest. In a real program, a document might show that a process exists or that work was performed at a certain time. It may not establish which site delivered the work, how much it can run today or whether the company has the necessary approvals for another market. The exercise does not store the file; the synthetic reference merely tests that a reviewer can distinguish records with a stated source from records without one. If you want to teach provenance more deeply, put references in a second table with its own identifiers, evidence types, owner and observation dates. Do not paste actual customer documents into a public training repository.
A canonical fixture
Save the following as capabilities.csv in UTF-8. For the canonical release use LF line endings, a final line break, a comma delimiter and the header shown below. The values are ASCII for portability. The accompanying prose may use Unicode. A portable reader can choose to accept an input with CRLF line endings or a byte-order mark, but that should be a documented import tolerance, not a change to the published canonical bytes.
record_id,synthetic_site_id,process_code,material_family,min_batch_pcs,max_batch_pcs,observed_on,evidence_state,evidence_ref,record_origin SIM-C001,SIM-S01,cnc_turning,aluminium_alloy,50,200,2026-04-15,self_reported,,synthetic SIM-C002,SIM-S02,sheet_bending,carbon_steel,100,1000,2026-06-10,document_reviewed,SIM-E01,synthetic SIM-C003,SIM-S03,assembly,mixed_components,,,2026-02-01,unknown,,synthetic SIM-C004,SIM-S01,cnc_turning,aluminium_alloy,40,150,2026-09-01,document_reviewed,SIM-E02,synthetic SIM-C005,SIM-S02,sheet_bending,carbon_steel,100,,2026-10-10,self_reported,,synthetic The fixture contains five observations, three distinct sites and three distinct combinations of site, process and material. Three original records have both batch bounds; the date selection described below leaves one fully bounded record. Two rows are simulated document reviews. Blank cells in the assembly record are intentional. They test whether an importer preserves absence instead of converting it to zero. The last row is equally important: a later self-report lacks a maximum, even though an earlier record has one. Joining the missing field to last spring's evidence would create a more complete spreadsheet, but a worse account of what is known on the selected date.
Reproduction: from bytes to a stable answer
First preserve the source. Store the input, its schema, this methods note and the validator together. Treat the fixture as immutable within a release. Reformatting the CSV or sorting it in a spreadsheet can change its checksum without changing the values; a checksum is meant to date the exact bytes, not determine whether two tables are semantically equivalent. On a system with Python 3, the standard library is enough: csv.DictReader for parsing, datetime.date for dates and hashlib.sha256 for the byte digest. No network call, live scraping, account or access token should be necessary.
Next validate shape and types. Read the file with an explicit encoding and supply newline="" when opening it for Python's CSV reader. Check that the header exactly matches the dictionary, that rows contain the right number of cells and that identifiers follow the published patterns. Reject duplicate record keys even if the values appear identical; duplication undermines counting and later corrections. Before converting quantities, distinguish an empty field from a nonempty value. Permit decimal digits only, then check that the resulting integer is positive. A spreadsheet's convenient interpretation of 1,000, 1e3 or 200.0 is not part of this small schema.
Validate dates in two steps. First check the lexical form, including the hyphens and zero-padded month and day. Then check that the stated date exists. Otherwise a routine that merely matches digits may accept the thirty-first day of a month that has thirty. Use a declared reference date for analysis. In the snapshot below it is December 1, 2026. Treat any record observed after that date as not yet available in that historical view; in the raw table it may still be a valid observation for a later snapshot. Keeping validity and eligibility apart is important: a valid row isn't necessarily eligible for every analysis.
For each eligible combination of a site, a process and a material family, keep the record with the greatest observation date. The fixture needs no same-day tie. A useful validator should nevertheless report an ambiguity if two otherwise valid records have the same observation date and the same three-part key. Do not pick a row based on whichever one happens to come first. A revision identifier can resolve ties in a later schema, but that new rule should be announced and tested. For this release, include the conflicting keys in the diagnostic, fail the snapshot build and require a correction in the underlying practice data.
Finally report more than one denominator. Print the raw number of rows, eligible rows at the reference date, distinct site count, selected capability count, selected records with complete bounds and the number supported by each stated evidence category. In this fixture the snapshot contains SIM-C003, SIM-C004 and SIM-C005. Only SIM-C004 has both bounds. There is no basis for estimating a regional mean or the combined output of three factories. Even in a real dataset, adding largest stated batches across incompatible processes would not tell a buyer how many parts arrive on Friday. The right first statistic is usually coverage: for how much of the question do we have relevant evidence?
Here is a small snapshot check for the already validated fixture. It is deliberately separate from the validator so an instructor can demonstrate each stage. Bringing in new data requires the validation steps above, not just this reporting snippet.
import csv from datetime import date as_of = date(2026, 12, 1) latest = {} with open('capabilities.csv', encoding='utf-8', newline='') as source: for row in csv.DictReader(source): stamp = date.fromisoformat(row['observed_on']) if stamp > as_of: continue key = (row['synthetic_site_id'], row['process_code'], row['material_family']) previous = latest.get(key) if previous is not None and stamp == previous[0]: raise ValueError(f'Ambiguous observation: {key} on {stamp}') if previous is None or stamp > previous[0]: latest[key] = (stamp, row) selected = sorted(row['record_id'] for _, row in latest.values()) bounded = sum(bool(row['min_batch_pcs'] and row['max_batch_pcs']) for _, row in latest.values()) assert selected == ['SIM-C003', 'SIM-C004', 'SIM-C005'] assert bounded == 1 print(selected, bounded) Negative tests that teach something
A reproducibility exercise benefits from failures that everyone can interpret. Make copies in a test directory rather than changing the canonical fixture. Give the first copy a row where the minimum is greater than the maximum. This should fail a relationship check; it should not be repaired by swapping the numbers, because the reporter may have intended something else. In a second copy keep the batch values but remove the evidence reference from a document-reviewed row. The validator should reject the state and pointer combination; an automated downgrade would hide an accountability defect. In a third copy set the observation date to an impossible day. Validate it as incorrect independently of any snapshot date.
Also test a legitimate empty value. The assembly row should not fail because quantity is unknown. An important distinction follows: missing data can be valid for the dataset and nevertheless insufficient for a purchasing question. Students should be able to produce a filtered view excluding unknown quantities without having the validator discard those rows upstream. Conversely, a malformed input is not the same as an unknown value. The importer should not rewrite an unparseable quantity as blank, even if doing so would allow a downstream report to finish. If a program permits partial import, keep a clear rejected-row report and make it explicit that the snapshot is incomplete.
Try one successful transformation and one deliberately misleading one. The successful one translates the headings into another language while leaving field keys and enumerated values intact in the underlying file. Confirm that both views select the same three records. The misleading one takes the largest listed batch across a site's history and pastes it into the newest row. Show the reader exactly how the report changes, and why it now associates information from different observations. This is an easy trap to demonstrate with the last two sheet-bending records. The exercise is more instructive when students explain which step corrupts the meaning than when they merely report a different total.
Release notes, privacy and use in teaching
Publish a version number for the schema and fixture alongside the reference date, expected counts and an explicit statement that the data is synthetic. Separate corrections of spelling or explanations from changes to keys, list values or field definitions. If a spelling correction changes an enumeration, it is a data change for a program reading the file. A reader should be able to repeat an older demonstration without downloading today's replacement file and guessing which rules now apply. The release notes should identify any changes to canonical bytes as well as changes in interpretation.
Before making the example public, decide how it may be reused. A repository should declare whether the same licence applies to its prose, example data and code; do not assume that making a file visible grants permission for every kind of reuse. Keep only content that the publisher owns or has appropriate permission to include. In an actual compilation drawn from businesses, first establish the right to reuse each item and whether a supposedly anonymous combination could identify a shop. Never transform a customer list into synthetic data by changing the names and leaving rare capabilities, precise coordinates or document identifiers. For this exercise, independently constructed records are simpler and safer.
Accessibility is also a practical release consideration. Publish the dictionary in a readable format alongside the machine-readable file. Make the expected output available as plain text so learners can compare it without installing a notebook environment. Report errors by row key, column and reason; don't convey validity through colour alone. If a later edition provides a visual illustration, give the chart a textual explanation and identify how records were filtered. These details keep the exercise portable across classrooms, screen readers, locales and spreadsheet tools.
A useful discussion question is what this table is good enough to support. It can support a reproducible coding exercise and a bounded discussion about whether a record is fresh or complete. It cannot tell a buyer whom to contract with, show that a platform has live suppliers, or support a national export claim. Keeping those boundaries in writing gives the resource its credibility. The best test of this companion is whether a person who has never heard of its publisher can reproduce the answer, disagree with the schema and improve it without signing in anywhere.
Further reading
- W3C: Model for Tabular Data and Metadata on the Web, for the distinction between raw representations, tables, keys and metadata.
- W3C: Metadata Vocabulary for Tabular Data, for interoperable descriptions of columns, null semantics and keys. The prose dictionary here borrows those concepts; it is not itself a complete CSV on the Web metadata configuration.
- IETF RFC 4180: Common Format and MIME Type for CSV Files, a starting point for comma-delimited interchange. This fixture explicitly uses LF as a release convention rather than claiming byte-level conformance to every RFC 4180 detail.
- Python: csv standard library documentation, for explicit newline and reader behaviour.
Project context, not a data source: the KOCAELİT manufacturer directory illustrates the setting in which a capability dictionary could be relevant. Loot Teknoloji is affiliated with KOCAELİT. Active firms are planned for a later phase. No records in this resource came from that site, and it is not required to reproduce the exercise.
