ISO/IEC 15475-2:2002
(Main)Information technology — CDIF transfer format — Part 2: Syntax SYNTAX.1
Information technology — CDIF transfer format — Part 2: Syntax SYNTAX.1
The CDIF family of standards is primarily designed to be used as a description of a mechanism for transferring information between modelling tools. It facilitates a successful transfer when the authors of the importing and exporting tools have nothing in common except an agreement to conform to CDIF. The language that is defined for the transfer format also has applicability as a general language for Import/Export from repositories. The CDIF semantic metamodel defined for modelling tools also has applicability as the basis of standard definitions for use in repositories. The standards, which form the complete family of CDIF Standards, are documented in ISO/IEC 15474-1:2002, Information technology — CDIF framework — Part 1: Overview. These standards cover the overall framework, the transfer format and the CDIF semantic metamodel. Figure 1 − Position in the CDIF family of standards The diagram in Figure 1 depicts the various standards that comprise the CDIF family of standards. The shaded box depicts this Standard and its position in the CDIF family of standards. This document describes the standard CDIF transfer syntax. No encodings for SYNTAX.1 are specified in this document. ISO/IEC 15475-3:2002, Information technology — CDIF transfer format — Part 3: Encoding ENCODING.1, specifies one standard encoding for this syntax. This document is intended to be used by anyone wishing to understand and/or use CDIF. This document provides an introduction to the entire CDIF family of standards. It is suitable for: — Those evaluating CDIF, — Those who wish to understand the principles and concepts of a CDIF transfer, and — Those developing importers and exporters. The documents ISO/IEC 15474-1:2002, Information technology — CDIF framework — Part 1: Overview and ISO/IEC 15474-2:2002, Information technology — CDIF framework — Part 2: Modelling and extensibility should be read first when initially exploring CDIF and before attempting to read other documents in the CDIF family of standards. This document should be read in conjunction with ISO/IEC 15475-1:2002, Information technology — CDIF transfer format — Part 1: General rules for syntaxes and encodings. While there are no specific prerequisites for reading this document, it will be helpful for the reader to have familiarity with the following: — Entity-Relationship-Attribute modelling; — Modelling (CASE) tools; — Information repositories; — Data dictionaries; — Multiple meta-layer modelling; — Formal grammars; — Transfer formats.
Technologies de l'information — Format de transfert CDIF — Partie 2: Syntaxe SYNTAX.1
General Information
Relations
Standards Content (Sample)
INTERNATIONAL ISO/IEC
STANDARD 15475-2
First edition
2002-11-01
Information technology — CDIF transfer
format —
Part 2:
Syntax SYNTAX.1
Technologies de l'information — Format de transfert CDIF —
Partie 2: Syntaxe SYNTAX.1
Reference number
ISO/IEC 15475-2:2002(E)
©
ISO/IEC 2002
---------------------- Page: 1 ----------------------
ISO/IEC 15475-2:2002(E)
PDF disclaimer
This PDF file may contain embedded typefaces. In accordance with Adobe's licensing policy, this file may be printed or viewed but
shall not be edited unless the typefaces which are embedded are licensed to and installed on the computer performing the editing. In
downloading this file, parties accept therein the responsibility of not infringing Adobe's licensing policy. The ISO Central Secretariat
accepts no liability in this area.
Adobe is a trademark of Adobe Systems Incorporated.
Details of the software products used to create this PDF file can be found in the General Info relative to the file; the PDF-creation
parameters were optimized for printing. Every care has been taken to ensure that the file is suitable for use by ISO member bodies. In
the unlikely event that a problem relating to it is found, please inform the Central Secretariat at the address given below.
© ISO/IEC 2002
All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form or by any means,
electronic or mechanical, including photocopying and microfilm, without permission in writing from either ISO at the address below or
ISO's member body in the country of the requester.
ISO copyright office
Case postale 56 • CH-1211 Geneva 20
Tel. + 41 22 749 01 11
Fax + 41 22 749 09 47
E-mail copyright@iso.org
Web www.iso.org
Published in Switzerland
ii © ISO/IEC 2002 – All rights reserved
---------------------- Page: 2 ----------------------
ISO/IEC 15475-2:2002(E)
Contents
1 Scope. 1
2 Conformance. 2
3 Normative references. 2
4 Terms and definitions . 3
4.1 From other standards. 3
4.1.1 ISO/IEC 15474-1. 3
4.1.2 ISO/IEC 15475-1. 4
4.1.3 ISO/IEC 13238-1. 4
4.2 For this standard . 4
5 Symbols (and abbreviated terms). 4
5.1 Naming and diagramming notations. 4
5.2 BNF conventions. 4
5.3 Abbreviations. 5
6 CDIF transfer concepts and facilities . 5
6.1 Syntax identifier. 5
6.2 Token separation rules. 5
7 Syntax sections and structures in the CDIF transfer. 5
7.1 Introduction. 5
7.2 CDIF transfer components. 5
7.2.1 Introduction. 5
7.2.2 Transfer header. 6
7.2.3 Transfer contents. 6
7.3 Header section. 6
7.3.1 Introduction. 6
7.3.2 Summary. 7
7.4 Metamodel section. 8
7.4.1 Introduction. 8
7.4.2 CDIF subject area reference. 8
7.4.3 Metamodel extension. 9
7.4.4 Meta-meta-entity instance. 9
7.4.5 Meta-meta-attribute instance. 10
7.4.6 Meta-meta-relationship instance. 10
7.4.7 Enumerated meta-attribute extension . 11
7.5 Model section. 12
7.5.1 Introduction. 12
7.5.2 Meta-entity instance. 12
7.5.3 Meta-relationship instance. 13
7.5.4 Meta-attribute instance. 14
7.5.5 Meta-attribute value. 14
7.6 Comment. 19
7.7 Syntax terminal symbols. 19
Annex A (normative) SYNTAX.1 formal grammar. 22
Annex B (informative) Multibyte examples. 28
B.1 Example of 7.3.2 Summary. 28
B.2 Example of 7.4.5 Meta-meta-attribute instance . 28
B.3 Example of 7.5.5.5 enumerated value. 28
B.4 Example of 7.5.5.7 Identifier value. 28
B.5 Example of 7.5.5.12 String value. 28
© ISO/IEC 2002 — All rights reserved iii
---------------------- Page: 3 ----------------------
ISO/IEC 15475-2:2002(E)
B.6 Example of 7.6 Comment . 29
Table of Illustrations
Figure 1 − Position in the CDIF family of standards . 1
Figure 2 − CDIF transfer. 6
iv © ISO/IEC 2002 — All rights reserved
---------------------- Page: 4 ----------------------
ISO/IEC 15475-2:2002(E)
Foreword
ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission)
form the specialized system for worldwide standardization. National bodies that are members of ISO or IEC
participate in the development of International Standards through technical committees established by the
respective organization to deal with particular fields of technical activity. ISO and IEC technical committees
collaborate in fields of mutual interest. Other international organizations, governmental and non-governmental, in
liaison with ISO and IEC, also take part in the work. In the field of information technology, ISO and IEC have
established a joint technical committee, ISO/IEC JTC 1.
International Standards are drafted in accordance with the rules given in the ISO/IEC Directives, Part 3.
The main task of the joint technical committee is to prepare International Standards. Draft International Standards
adopted by the joint technical committee are circulated to national bodies for voting. Publication as an International
Standard requires approval by at least 75 % of the national bodies casting a vote.
Attention is drawn to the possibility that some of the elements of this part of ISO/IEC 15475 may be the subject of
patent rights. ISO and IEC shall not be held responsible for identifying any or all such patent rights.
ISO/IEC 15475-2 was prepared by Joint Technical Committee ISO/IEC JTC 1, Information technology,
Subcommittee SC 7, Software and system engineering.
ISO/IEC 15475 consists of the following parts, under the general title Information technology — CDIF transfer
format :
Part 1: General rules for syntaxes and encodings
Part 2: Syntax SYNTAX.1
Part 3: Encoding ENCODING.1
Annex A forms a normative part of this part of ISO/IEC 15475. Annex B is for information only.
© ISO/IEC 2002 — All rights reserved v
---------------------- Page: 5 ----------------------
ISO/IEC 15475-2:2002(E)
Introduction
This standard will assist the vendors and users of modelling tools and metadata repositories in developing
mechanisms for interchanging information. This standard specifies an element of a family of related standards.
When used together, these standards specify a mechanism for transferring information between tools.
ISO/IEC 15474-1:2002, Information technology — CDIF framework — Part 1: Overview and ISO/IEC 15474-
2:2002, Information technology — CDIF framework — Part 2: Modelling and extensibility should be read first when
initially exploring CDIF. The first explains the overall CDIF Architecture and how the family of standards fits
together. The second explains the scope, and modelling approach in CDIF. The CDIF Meta-metamodel and
extensibility mechanisms are also defined in that document.
ISO/IEC 15475-3:2002, Information technology — CDIF transfer format — Part 3: Encoding ENCODING.1, defines
an encoding of SYNTAX.1. ISO/IEC 15475-1:2002, Information technology — CDIF transfer format — Part 1:
General rules for syntaxes and encodings define how CDIF supports multiple exchange syntaxes and encodings.
This document, ISO/IEC 15475-2:2002, Information technology — CDIF transfer format — Part 2: Syntax
SYNTAX.1 defines the CDIF transfer format syntax, SYNTAX.1.
This standard has been developed with the wide support and participation of vendors, users, academia and
government involved in or familiar with the CASE industry, its products and the general requirements associated
with interchanging information between these products.
This document is organized into the following Clauses:
Clauses 1 to 5 are prescribed ISO/IEC Clauses
Clause 6: Concepts and facilities
This specifies the unique identifier for the syntax defined in this document and describes the concept of
token separation used in this document.
Clause 7: Syntax sections and structures in the CDIF transfer
This section describes, in detail, the exact syntax of each of the three major sections of a transfer.
Annex A (normative): SYNTAX.1 formal grammar
This defines the grammar rules for the syntax in Backus Naur Form (BNF).
Annex B (informative): Multibyte examples
Supplementary Examples using multibyte codeset encoding are provided.
vi © ISO/IEC 2002 — All rights reserved
---------------------- Page: 6 ----------------------
INTERNATIONAL STANDARD ISO/IEC 15475-2:2002(E)
Information technology — CDIF transfer format —
Part 2:
Syntax SYNTAX.1
1 Scope
The CDIF family of standards is primarily designed to be used as a description of a mechanism for transferring
information between modelling tools. It facilitates a successful transfer when the authors of the importing and
exporting tools have nothing in common except an agreement to conform to CDIF. The language that is defined for
the transfer format also has applicability as a general language for Import/Export from repositories. The CDIF
semantic metamodel defined for modelling tools also has applicability as the basis of standard definitions for use in
repositories.
The standards, which form the complete family of CDIF Standards, are documented in ISO/IEC 15474-1:2002,
Information technology — CDIF framework — Part 1: Overview. These standards cover the overall framework,
the transfer format and the CDIF semantic metamodel.
Figure 1 − Position in the CDIF family of standards
The diagram in Figure 1 depicts the various standards that comprise the CDIF family of standards. The shaded box
depicts this Standard and its position in the CDIF family of standards.
© ISO/IEC 2002 — All rights reserved 1
---------------------- Page: 7 ----------------------
ISO/IEC 15475-2:2002(E)
This document describes the standard CDIF transfer syntax. No encodings for SYNTAX.1 are specified in this
document. ISO/IEC 15475-3:2002, Information technology — CDIF transfer format — Part 3: Encoding
ENCODING.1, specifies one standard encoding for this syntax.
This document is intended to be used by anyone wishing to understand and/or use CDIF. This document provides
an introduction to the entire CDIF family of standards. It is suitable for:
— Those evaluating CDIF,
— Those who wish to understand the principles and concepts of a CDIF transfer, and
— Those developing importers and exporters.
The documents ISO/IEC 15474-1:2002, Information technology — CDIF framework — Part 1: Overview and
ISO/IEC 15474-2:2002, Information technology — CDIF framework — Part 2: Modelling and extensibility should be
read first when initially exploring CDIF and before attempting to read other documents in the CDIF family of
standards.
This document should be read in conjunction with ISO/IEC 15475-1:2002, Information technology — CDIF transfer
format — Part 1: General rules for syntaxes and encodings.
While there are no specific prerequisites for reading this document, it will be helpful for the reader to have familiarity
with the following:
— Entity-Relationship-Attribute modelling;
— Modelling (CASE) tools;
— Information repositories;
— Data dictionaries;
— Multiple meta-layer modelling;
— Formal grammars;
— Transfer formats.
2 Conformance
A product is standards conformant this standard if and only if the product obeys all definitions and rules in Annex A
of this standard, and is also CDIF architecture conformant, as defined in Clause 2 of ISO/IEC 15474-1:2002,
Information technology — CDIF framework — Part 1: Overview. A product can be either transfer format standards
conformant or non-conformant. Partial standards conformance to a standard defining a part of the CDIF transfer
format is not defined.
A product is standards conformant to a CDIF encoding standard only if it is standards conformant to Annex A of
ISO/IEC 15475-3:2002, Information technology — CDIF transfer format — Part 3: Encoding ENCODING.1 and also
conformant to Annex A of ISO/IEC 15475-2:2002, Information technology — CDIF transfer format — Part 2: Syntax
SYNTAX.1. A product is standard conformant to a CDIF syntax standard only if it is standards conformant to Annex
A of ISO/IEC 15475-2:2002, Information technology — CDIF transfer format — Part 2: Syntax SYNTAX.1.
3 Normative references
The following normative documents contain provisions which, through reference in this text, constitute provisions of
this part of ISO/IEC 15475. For dated references, subsequent amendments to, or revisions of, any of these
publications do not apply. However, parties to agreements based on this part of ISO/IEC 15475 are encouraged to
2 © ISO/IEC 2002 — All rights reserved
---------------------- Page: 8 ----------------------
ISO/IEC 15475-2:2002(E)
investigate the possibility of applying the most recent editions of the normative documents indicated below. For
undated references, the latest edition of the normative document referred to applies. Members of ISO and IEC
maintain registers of currently valid International Standards.
ISO/IEC 9075:1992, Information technology — Database languages — SQL
ISO/IEC 10646-1:1993, Information technology — Universal Multiple-Octet Coded Character Set (UCS) — Part 1:
Architecture and Basic Multilingual Plane
ISO/IEC 10646-1:1993/Amd:2:1996, Information technology — Universal Multiple-Octet Coded Character Set
(UCS) — Part 1: Architecture and Basic Multilingual Plane. Amendment 2: UCS Transformation Format 8 (UTF-8)
1)
ISO/IEC 13238-1:— , Information technology — Data management export/import — Part 1: Standardization
framework
ISO/IEC 15474-1:2002, Information technology — CDIF framework — Part 1: Overview
ISO/IEC 15474-2:2002, Information technology — CDIF framework — Part 2: Modelling and extensibility
ISO/IEC 15475-1:2002, Information technology — CDIF transfer format — Part 1: General rules for syntaxes and
encodings
4 Terms and definitions
For the purposes of this part of ISO/IEC 15475, the following definitions apply. Unless otherwise noted, the
definitions are specific to this part of ISO/IEC 15475.
4.1 From other standards
4.1.1 ISO/IEC 15474-1
This part of ISO/IEC 15475 makes use of the following terms defined in ISO/IEC 15474-1:
CDIF
CDIF family of standards
CDIF graphical notation
CDIF identifier
CDIF semantic metamodel
CDIF meta-metamodel
CDIF transfer
CDIF transfer format
Character set
Encoding
ENCODING.1
Instance
Meta-attribute
Meta-entity
Metamodel
Meta-object
Meta-relationship
Model
Non-terminal symbol
Production rule
Subject area
Syntax
SYNTAX.1
Terminal symbol
1)
To be published.
© ISO/IEC 2002 — All rights reserved 3
---------------------- Page: 9 ----------------------
ISO/IEC 15475-2:2002(E)
Transfer
Transfer format
4.1.2 ISO/IEC 15475-1
This part of ISO/IEC 15475 makes use of the following terms defined in ISO/IEC 15475-1:
Metamodel section
Transfer header
4.1.3 ISO/IEC 13238-1
This part of ISO/IEC 15474 makes use of the following terms from ISO/IEC 13238-1:
Transfer file
CDIF transfer file
Export process
Exporter
Import process
Importer
Clear text file encoding
4.2 For this standard
For the purposes of this part of ISO/IEC 15475 new terms are defined when introduced. Double quotes are used to
introduce new terms (e.g., “model layer”).
5 Symbols (and abbreviated terms)
5.1 Naming and diagramming notations
All meta-objects and meta-meta-objects in CDIF (in metamodels and meta-metamodels) are named by
concatenating all the words that name the meta-object or meta-meta-object; the first letter of each word is upper-
case, the rest are lower-case (e.g., MetaAttribute, AttributeDerivation, IsDrawnUsing, IsOptional).
Full details of the CDIF graphical notation used in the metamodel and the meta-metamodel can be found in the
Framework document (ISO/IEC 15474-2:2002).
5.2 BNF conventions
An extended Backus Naur Form (BNF) is used to define the structure and describe the sequence of data in the
transfer file.
This document uses the conventions established in subclause 5.2 of ISO/IEC 15475-1:2002, Information
technology — CDIF transfer format — Part 1: General rules for syntaxes and encodings.
4 © ISO/IEC 2002 — All rights reserved
---------------------- Page: 10 ----------------------
ISO/IEC 15475-2:2002(E)
5.3 Abbreviations
The following abbreviations are used in this part of ISO/IEC 15475:
BNF Backus Naur Form
CDIF CASE Data Interchange Format (originally)
6 CDIF transfer concepts and facilities
6.1 Syntax identifier
The syntax defined in this version of this standard shall have a CDIF standardized syntax identifier of "SYNTAX.1",
and a version of "15475-2:2002". This is used to define the standardized syntax used in a CDIF transfer (see
ISO/IEC 15475-1).
The syntax of the CDIF syntax ID and the syntax Version is as follows:
::= 'SYNTAX.1'
::= '15475-2:2002'
6.2 Token separation rules
The "tokens" (or terminal symbols) are the primitive level elements in the syntax. Tokens are normally separated by
one or more "whitespace" characters, as defined in the specific encoding. After token identification, these
whitespace characters are ignored by importers.
Certain terminal symbols act as token separators; these terminal symbols do not need to be preceded or followed
by whitespace characters. All other terminal symbols must be followed by one of these token separators or by one
or more whitespace characters. The terminal symbols that act as token separators are listed in subclause 7.7
Syntax terminal symbols.
7 Syntax sections and structures in the CDIF transfer
7.1 Introduction
This section describes, in detail, the exact syntax of each of the major sections of a transfer, together with the
syntax of each of the component structures.
Examples of transfers given in this section use the CDIF standard encoding as defined in ISO/IEC 15475-3.
7.2 CDIF transfer components
7.2.1 Introduction
The general syntax of a CDIF transfer is as follows:
::=
Figure 2 illustrates the complete structure of a CDIF transfer.
A transfer is typically contained in a file, but other means of transfer such as pipes, mailboxes, shared memory, or
any other mechanism that can be interpreted as a byte stream may be used.
© ISO/IEC 2002 — All rights reserved 5
---------------------- Page: 11 ----------------------
ISO/IEC 15475-2:2002(E)
7.2.2 Transfer header
The transfer header consists of the CDIF Signature, the syntax identifier and the encoding identifier. As the transfer
header syntax is the same for any CDIF transfer, it is defined in ISO/IEC 15475-1. The syntax identifier for
SYNTAX.1 is specified in 6.1 Syntax identifier of this document.
7.2.3 Transfer contents
As the first level of the grammar of the transfer Contents is the same for any CDIF transfer, it is defined in ISO/IEC
15475-1, but is reproduced here for clarity:
::=
[ ]
The further levels are detailed in the next section.
CDIF Signature
Transfer
Syntax Identifier
Header
Encoding Identifier
Char. Set Identifier
Transfer
Contents
Header
Summary
Section
CDIF Subject Area
Meta- References
model
Meta-meta-entity and
Section
Meta-model Meta-meta-relationship
Exten sions Instance s, and Enumerated
Meta-attribute Extensions
Meta-entity and
Model
Meta-relationship
Section
Instance s
Figure 2 − CDIF transfer
7.3 Header section
7.3.1 Introduction
The header section defines information that applies to the whole transfer.
The syntax of the header section is:
::=
6 © ISO/IEC 2002 — All rights reserved
---------------------- Page: 12 ----------------------
ISO/IEC 15475-2:2002(E)
that is, an introductory keyword followed by a summary , all enclosed within scope delimiters.
An example of the header section is:
(:HEADER )
7.3.2 Summary
The summary specifies summary information about the transfer, in the form of a number of items. Each item is
introduced by an identifier. This standard defines meanings for certain summary identifiers. Other identifiers may be
used, to introduce other items of summary information, but their meanings are not defined in this standard.
The syntax of the summary is:
::=
[ ] .
::=
::=
::=
The identifiers must conform to the rules for data type identifier.
The defined summary identifiers and their definitions are:
• ExporterName - The name of the exporting software product;
• ExporterVersion - The version of the exporting software product;
• ExportDate - The date of commencement of the export, in the form YYYY/MM/DD;
• ExportTime - The time of commencement of the export, in the form HH:MM:SS;
• PublisherName - The name of the person (or function) who initiated the export.
An example of a summary is:
(:SUMMARY (ExporterName "AutoPal")
(ExporterVersion "3.2")
(ExportDate "1991/01/12")
(ExportTime "13:00:00")
(PublisherName "Andrew Shilling")
(HardwarePlatform "Apple MacIntosh")
(VendorCompanyName "UltraCASE")
)
© ISO/IEC 2002 — All rights reserved 7
---------------------- Page: 13 ----------------------
ISO/IEC 15475-2:2002(E)
7.4 Metamodel section
7.4.1 Introduction
The metamodel section of the transfer consists of references to standardized subject areas, followed by extensions
to the metamodel. The metamodel for the transfer, known as the "working metamodel", is defined by the set of
meta-meta-entity and meta-meta-relationship instances that are used in any of the referenced subject areas, plus
those added by extensions.
The working metamodel may be extended as defined in ISO/IEC 15474-2.
As a conveyor of metamodels, this section contains instances of meta-metamodel concepts. The mapping between
these concepts, as defined in ISO/IEC 15474-2, and this syntax is straightforward and therefore clarification is
included only where necessary.
The syntax of the metamodel section is:
::=
.
[ ].
An example of the metamodel section is:
(:META-MODEL .
[ ].
)
7.4.2 CDIF subject area reference
The syntax of the CDIF Subject Area Reference is:
::=
::=
!! must be the value of the Name meta-meta-
attribute of the relevant SubjectArea instance.
::=
!! must be the value of the
VersionNumber meta-meta-attribute of the relevant SubjectArea
8 © ISO/IEC 2002 — All rights reserved
---------------------- Page: 14 ----------------------
ISO/IEC 15475-2:2002(E)
instance. A reference to at least one CDIF Subject Area must
be included in the metamodel section.
An example of the CDIF Subject Area Reference is:
(:SUBJECTAREAREFERENCE Foundation
(:VERSIONNUMBER "15476-1:2002")
)
7.4.3 Metamodel extension
The syntax of the metamodel Extension is:
::=
|
|
Note that although the syntax allows meta-meta-entity instances, meta-meta-relationship instances and
enumerated meta-
...
Questions, Comments and Discussion
Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.