ArticleslgStudy

computer science

Data Format Description Language

Data Format Description Language is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Data Format Description Language rather than just read about it. In short: Data Format Description Language (DFDL, often pronounced daff-o-dil) is a modeling language for describing general text and binary data in a standard way. It was published as an Open Grid Forum Recommendation in February 2021, and in April 2024 was published as an ISO standard.

Key takeaways

  • Data Format Description Language belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Data Format Description Language to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Data Format Description Language from memory before moving on to harder problems.

Reference excerpt

Data Format Description Language (DFDL, often pronounced daff-o-dil) is a modeling language for describing general text and binary data in a standard way. It was published as an Open Grid Forum Recommendation in February 2021, and in April 2024 was published as an ISO standard. A DFDL model or schema allows any text or binary data to be read (or "parsed") from its native format and to be presented as an instance of an information set. (An information set is a logical representation of the data contents, independent of the physical format. For example, two records could be in different formats, because one has fixed-length fields and the other uses delimiters, but they could contain exactly the same data, and would both be represented by the same information set). The same DFDL schema also allows data to be taken from an instance of an information set and written out (or "serialized") to its native format. DFDL is descriptive and not prescriptive. DFDL is not a data format, nor does it impose the use of any particular data format. Instead it provides a standard way of describing many different kinds of data formats. This approach has several advantages. It allows an application author to design an appropriate data representation according to their requirements while describing it in a standard way which can be shared, enabling multiple programs to directly interchange the data. DFDL achieves this by building upon the facilities of W3C XML Schema 1.0. A subset of XML Schema is used, enough to enable the modeling of non-XML data. The motivations for this approach are to avoid inventing a completely new schema language, and to make it easy to convert general text and binary data, via a DFDL information set, into a corresponding XML document. Educational material is available in the form of DFDL Tutorials, videos and several hands-on DFDL labs.

History DFDL was created in response to a need for grid APIs to be able to understand data regardless of source. A language was needed capable of modeling a wide variety of existing text and binary data formats. A working group Archived 2010-11-27 at the Wayback Machine was established at the Global Grid Forum (which later became the Open Grid Forum) in 2003 to create a specification for such a language. A decision was made early on to base the language on a subset of W3C XML Schema, using <xs:appinfo> annotations to carry the extra information necessary to describe non-XML physical representations. This is an established approach that was already being used by 2003 in commercial systems. DFDL takes this approach and evolves it into an open standard capable of describing many text or binary data formats. Work continued on the language, resulting in the publication of a DFDL 1.0 specification as OGF Proposed Recommendation GFD.174 in January 2011. The official OGF Recommendation is now GFD.240 published in February 2021 which obsoletes all prior versions and incorporates all issues noted to date (also available as html). A summary of DFDL and its features is available at the OGF. Any issues with the specification are being tracked using GitHub issue trackers. In April 2024, DFDL was published as ISO/IEC 23415:2024 by way of the ISO Publicly Available Standards (PAS) process. The standard is available from ISO but will remain publicly available from the Open Grid Forum as well.

Implementations Implementations of DFDL processors that can parse and serialize data using DFDL schemas are available.

IBM has multiple DFDL implementations. a production-ready DFDL 1.0 streaming parser, modeler and visual tester. This is available in several IBM products including IBM App Connect Enterprise (formerly known as IBM Integration Bus). A free developer edition is available. IBM z/TPF DFDL which is part of the IBM Mainframe z/Transaction Processing Facility. Apache Daffodil is an open-source DFDL processor having both parser and unparser, an IDE that is an extension of VSCode, as well as integrations into Apache NiFi, the XML Calabash XProc pipeline engine, and Smooks. It continues to be under active development. European Space Agency project S2G Data Viewer includes a parser DFDL4S that implements a subset of the DFDL 1.0 specification. A public repository for DFDL schemas that describe commercial and scientific data formats has been established on GitHub. DFDL schemas for formats like UN/EDIFACT, NACHA, MIL-STD-2045, NITF, and ISO8583 are available for free download.

Example Take as an example the following text data stream which gives the name, age and location of a person: The logical model for this data can be described by the following fragment of an XML Schema document. The order, names, types and cardinality of the fields are expressed by the XML schema model.

To additionally model the physical representation of the data stream, DFDL augments the XML schema fragment with annotations on the xs:element and xs:sequence objects, as follows:

The property attributes on these DFDL annotations express that the data are represented in an ASCII text format with fields being of variable length and delimited by commas An alternative, more compact syntax is also provided, where DFDL properties are carried as non-native attributes on the XML Schema objects themselves.

Features The goal of DFDL is to provide a rich modeling language capable of representing any text or binary data format. The 1.0 release is a major step towards this goal. The capability includes support for:

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Data Format Description Language

Start with the simplest possible case. Write down what Data Format Description Language claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Data Format Description Language before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Data Format Description Language ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Data Format Description Language

In research
Data Format Description Language appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Data Format Description Language in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Data Format Description Language is common in secondary-school and first-year university syllabi. It links to neighbouring topics Data modeling languages, Grid computing, so understanding it makes those chapters shorter.
In everyday life
Look for Data Format Description Language outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Data Format Description Language” →

How to study Data Format Description Language in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Data Format Description Language means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Data Format Description Language out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Data Format Description Language in simple terms?

Data Format Description Language (DFDL, often pronounced daff-o-dil) is a modeling language for describing general text and binary data in a standard way. It was published as an Open Grid Forum Recommendation in February 2021, and in April 2024 was published as an ISO standard.

Why does Data Format Description Language matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Data Format Description Language?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Data Format Description Language.

Tags

  • Data modeling languages
  • Grid computing

Keep exploring