|
| 1 | ++++ |
| 2 | +title = 'Version 2.0.0' |
| 3 | +date = 2024-09-20T14:52:37-05:00 |
| 4 | ++++ |
| 5 | + |
| 6 | +> A JSON Schema implementation of the ANSI/ISA-95 and ANSI/ISA-88 standards. |
| 7 | +
|
| 8 | +An JSON implementation of the ANSI/ISA-95, Enterprise-Control System Integration, family of standards (ISA-95), known internationally as IEC/ISO 62264. B2MML consists of a set of JSON schemas written using the JSON Schema's Schema language (2020) that implement the data models in the ISA-95 standard. |
| 9 | + |
| 10 | +This JSON schema can be used for design for syncrhonous and asynchronous APIs. |
| 11 | + |
| 12 | +Based on the works of https://github.com/MESAInternational/B2MML-BatchML. |
| 13 | + |
| 14 | +## Abbreviations |
| 15 | + |
| 16 | +| Acronynm | Description | |
| 17 | +|-------------|---------------------------------------------------------------| |
| 18 | +| **ANSI** | American National Standards Institute | |
| 19 | +| **API** | Application Programming Interface | |
| 20 | +| **B2MML** | Business to (2) Manufacturing Markup Language | |
| 21 | +| **BatchML** | Batch Markup Language | |
| 22 | +| **BOD** | Business Object Document | |
| 23 | +| **ISA** | International Society of Automation | |
| 24 | +| **IEC** | International Electrotechnical Commission | |
| 25 | +| **JSON** | JavaScipt Object Notation | |
| 26 | +| **XML** | eXensible Markup Language | |
| 27 | +| **XSD** | eXtensible markup language Schema Definition | |
| 28 | + |
| 29 | +## Quick start |
| 30 | + |
| 31 | +Start out by importing the schema and using it in your JSON documents. |
| 32 | + |
| 33 | +``` |
| 34 | +"$schema": "{{< siteurl >}}schemas/" |
| 35 | +``` |
| 36 | + |
| 37 | +Here is an example using the JSON schema in a `NotifyWorkDefined` message. |
| 38 | + |
| 39 | +```json |
| 40 | +{ |
| 41 | + "$schema": "{{< siteurl >}}schemas/", |
| 42 | + "NotifyWorkDefined": { |
| 43 | + "ApplicationArea": {}, |
| 44 | + "DataArea": { |
| 45 | + "Notify": {}, |
| 46 | + "WorkDefined": { |
| 47 | + |
| 48 | + } |
| 49 | + } |
| 50 | + } |
| 51 | +} |
| 52 | +``` |
| 53 | + |
| 54 | +## Updates Introduced in Version 2.0.0 |
| 55 | + |
| 56 | +Refactored the v1.0.0.base.schema.json JSON file by separating it into multiple files that use the prefix "v2.0.0", aligning the structure with the existing B2MMl XML implementation https://github.com/MESAInternational/B2MML-BatchML/tree/master/Schema. |
| 57 | + |
| 58 | +Implemented several automated scripts to assist in refactoring. While these scripts are tailored for specific use cases, they can generally be disregarded outside of those particular scenarios. |
| 59 | + |
| 60 | +In Version 2.0.0, a JSON Schema validator is used for verification, replacing the previous Lint-based approach. This update compiles and validates schemas through the use of scripts, specifically compileSchemas.js, located in scripts, and validate.mjs. |
0 commit comments