LoginSignup
1
0

AUTOSARでは、AUTOSAR XMLとしてARXMLを規定している。

(1) AUTOSAR XML Schema Production Rules 文書番号122

(2) ARXML Serialization Rules 文書番号 779

Meta Model-generated XML Schema

4つのファイルがある。

readme.txt
This file
AUTOSAR_00050.xsd
This is the AUTOSAR XML Schema provided as AUTOSAR standard.
Note that this is the only file in this archive which is STANDARD.
autosar.soc
This AUXILIARY file provides an OASIS open catalog file which refers to the AUTOSAR XSD files. It is intended as an illustration how to specify such a catalog file.
xml.xsd
This is the schema for the xml namespace as provided by W3C.
For xml.xsd the W3C license applies, which can be found on
https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document:

Interoperability of Autosar Tools Supplement

各版に関するARXMLファイルがある。最新は7.2MBと結構大きい。

XML

Open OfficeがODAを、
Microsoft Officeが OOXMLを採用し、
時代はXMLの時代と言われた。

その後、XMLで、複雑な定義をすると、
入力の整合性を編集時に行うのは間に合わず、
保存時にする方法だったり、整合性の確認に関連するボタンを押すと、
整合性を確認する方法をとることがあったかもしれない。

XMLとJSON

XMLよりJSONの方がファイルが小さく、見通しがよい。
・定義名:定義値
でよい。
・開始タグ文字はあるが終了タグ文字がいらない
・ファイル、フォルダは定義の羅列でよい。

タブは用いずに空白を用いる。

RFC8259 The JavaScript Object Notation (JSON) Data Interchange Format
https://datatracker.ietf.org/doc/html/rfc8259

ECMA-404 The JSON data interchange syntax 2nd edition, December 2017
https://www.ecma-international.org/publications-and-standards/standards/ecma-404/

XML to JSON

XML to JSON Converter

XML から JSON コンバータ

XML to JSON Converter

json lint

関連資料

ARXML からの AUTOSAR コンポジションのインポート

Reference

reference on (1)

[1] XML Schema 1.0 http://www.w3.org/TR/xmlschema-1
[2] Meta Model AUTOSAR_MMOD_MetaModel
[3] XML Metadata Interchange (XMI) Specification version 2.1 http://www.omg.org/cgi-bin/apps/doc?formal/05-09-01.pdf
[4] XML Metadata Interchange (XMI) Specification version 1.2 http://www.omg.org/cgi-bin/apps/doc?formal/02-01-01.pdf
[5] Unified Modeling Language: Superstructure, Version 2.0, OMG Available Specifi- cation, ptc/05-07-04
http://www.omg.org/cgi-bin/apps/doc?formal/05-07-04
[6] Unified Modeling Language OCL, Version 2.0, OMG Available Specification, ptc/05-06-06
http://www.omg.org/cgi-bin/apps/doc?ptc/05-06-06.pdf
[7] ARXML Serialization Rules AUTOSAR_TPS_ARXMLSerializationRules
[8] Interoperability of Autosar Tools Supplement AUTOSAR_TR_InteroperabilityOfAutosarToolsSupplement
[9] MSR-SW http://www.msr-wg.de/medoc/download/msrsw/v230/msrsw_v230-eadoc- en/msrsw_v2_3_0.sl-eadoc.pdf
[10] XHTML http://www.w3.org/TR/xhtml11/
[11] Generic Structure Template AUTOSAR_TPS_GenericStructureTemplate
[12] Meta-Object Facility MOF, Version 2.0, OMG Available Specification, ptc/04-10-15 http://www.omg.org/cgi-bin/apps/doc?ptc/04-10-15.pdf

reference on (2)

[1] AUTOSAR XML Schema Production Rules AUTOSAR_TPS_XMLSchemaProductionRules
[2] Software Component Template AUTOSAR_TPS_SoftwareComponentTemplate
[3] System Template AUTOSAR_TPS_SystemTemplate
[4] Specification of ECU Configuration AUTOSAR_TPS_ECUConfiguration
[5] Meta Model AUTOSAR_MMOD_MetaModel
[6] Meta Model-generated XML Schema AUTOSAR_MMOD_XMLSchema
[7] Standardization Template AUTOSAR_TPS_StandardizationTemplate
[8] Extensible Markup Language (XML), v1.0 http://www.w3.org/TR/REC-xml/
[9] XML Schema 1.0 http://www.w3.org/TR/xmlschema-1
[10] Generic Structure Template AUTOSAR_TPS_GenericStructureTemplate
[11] Unified Modeling Language: Superstructure, Version 2.0, OMG Available Specifi- cation, ptc/05-07-04
http://www.omg.org/cgi-bin/apps/doc?formal/05-07-04
[12] Software Process Engineering Meta-Model Specification http://www.omg.org/spec/SPEM/2.0/

文書履歴

ver. 0.01 初稿 20211201
ver. 0.02 AUTOSAR文書とそのReference記録。20220108

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0