Draft until 0.1.0. These 0.1 schema files may change until OpenMaterica 0.1.0 is released. From that release they are frozen: CI fails any change to them, and a change is a new minor version in a new directory.
- vocabulary/
- README.md
- build_report.json
BuildReport
The build's report (declarations.md section 2): consumer, as declared; records, every record a read resolved; declaration, as given; refusals, the declaration's own (section 1); results, every field result of section 2 and every combination result of section 3 item 6; watches (section 8); and unused (section 2 item 9). watches is optional, so that a build that does not yet emit watches omits it rather than hold an empty list; every other list is required, and may be empty. A declaration the build refuses on its own gives no results, no watches and nothing unused, so a report holding a refusal holds those lists empty, its declaration as given where its text is JSON, and its consumer where the declaration declares one, whatever their shape. A report holding no refusal holds its consumer and a declaration valid against declaration.json.
Identifier:https://w3id.org/materica/schema/0.1/build_report.json - case.json
Case
A conformance case file, one per arm of a case (README.md, "Case files").
Identifier:https://w3id.org/materica/schema/0.1/case.json - declaration.json
Declaration
A consumer's declaration (declarations.md section 1), as the build checks it on its own before any record is read: every member its table of the declaration's shape names, at its place, with the members each place requires, the tokens and registered names each member takes, and the constraints its values hold. Closed at every level: a member the table does not name at a place is refused there, a member one slip from a named one included. Members a build over records does not check (a domain, a path, region_conditions, a region or interval location, sampling, a requirement's represents and population_level, a distribution, engine) are named, so that they are refused by the rule that refuses them (section 1 item 12) and never as unknown. What the schema does not state is the build's own check, by the same table. A schema could state some of it, but only with one conjunct for each registered name, written again for each name the vocabulary adds, where the build's check states each once: two requirements for one field where the members differ beside it; a requirement or a trainable entry for a field its model does not list in reads; a combination of fields of one section, or of a field not in reads. No JSON Schema can state two models of one name, or two trainable entries for one field at one location, where the members differ beside it (a model's name and an entry's location are values no registry lists, and no JSON Schema compares a free value across the items of an array; the schema refuses an identical duplicate in models, requirements or trainable, by uniqueItems, which compares whole items); a trainable entry at a location its model is not checked over; a range whose lo is above its hi; which of several rules a fault breaks, and so its case and pointer (the precedence rule); or a text that is not JSON by record_format.md section 1 item 6, which a schema never sees. And the rules beside the table, which are not the declaration's shape: section 1 items 7, 9, 10 and 12, and section 4.1 item 4.
Identifier:https://w3id.org/materica/schema/0.1/declaration.json - page_text.json
PageTextDocument
A page-text document (page_text.md section 1): the text of one copy of one document as one text extraction gave it, identified by its RFC 8785 hash. It holds the pages of a PDF, or the text and elements of an XML file, never members of both kinds.
Identifier:https://w3id.org/materica/schema/0.1/page_text.json - read_request.json
ReadRequest
read_side_contract.md section 1. A reader checks a request member by member at step 0, refusing with reasons, and ignores a member not named here, at any depth.
Identifier:https://w3id.org/materica/schema/0.1/read_request.json - read_result.json
ReadResult
read_side_contract.md section 2.
Identifier:https://w3id.org/materica/schema/0.1/read_result.json - record.reader.json
Record
A record as a reader checks it at step 3 of a read (record_format.md section 1 item 2): the envelope, and the body's structure as far as schema 0.1 knows it. Open: members and tokens it does not know pass, and it never applies the shape of a value field, a form or a section's specimen. Its $defs hold those shapes as step 8 checks them (read_side_contract.md section 3), opened alike, without the members a read does not check.
Identifier:https://w3id.org/materica/schema/0.1/record.reader.json - record.writer.json
Record
A record as a writer writes it (record_format.md, provenance.md and uncertainty.md): closed in its structure, with no member it does not define, and every token list the vocabulary's, but for what is not yet written. Each section's field names, an overlay's replaced fields, each field's forms, unit and label, and a numeric condition's unit are bound to the specification's rows through the vocabulary. Open until written: the parameter names of `per_parameter`; the namespaces in `extensions`, which a reader never checks; an interface record's `body`; and the placeholders, any object until their members are named: the `power_law`, `parameter_set` and `reference_data` forms' members, the `fit` record, and in provenance `assistance`, `formulation`, `import`, `recipe`, `search` beside its weighting and inputs, and extraction's `digitisation`. The status-object tokens are written here, by hand, and checked against provenance.md section 1.
Identifier:https://w3id.org/materica/schema/0.1/record.writer.json