Schema, syntactic analysis method and method of generating a bit stream based on a schema
First Claim
Patent Images
1. A method of syntactically analyzing a bit stream containing data which have a structure and contents according to a certain format, said method being ntended to generate a tree-like representation of said stream, characterized in that said method comprises:
- A) reading a schema which, for generically describing said format;
a) defines one or more types of data which may contain one or more facets, notably;
when said format uses binary words of predefined length or lengths;
, one or more types of data corresponding to said binary words of predefined length or lengths, said types of data having at least one facet relating to said length and, when said binary words of predefined lengths may contain one or more padding bits, said types of data having a facet relating to said padding bits, when said format uses binary segments of indefinite length which have contents intended to be imported in said representation by using a certain import mode;
a type of data corresponding to said binary segments, said type of data having at least one facet relating to said import mode and, when said binary segments are defined by a stop flag, said type of data having one facet relating to said stop flag, b) comprises a plurality of elements for which it describes a name, a type of data, an interleaving, a predefined or random order and number of occurrences, the occurrence of an element being mandatory or optional, c) when said format provides that data situated at the front of said bit stream give information about the structure or the contents of the rest of said bit stream, defines one or various variables constituted by an access path in said tree-like representation to said data situated at the front, and comprises one or more conditional branches for describing various possible structures or contents as a function of the value of said variable or variables, B) searching in said bit stream for the data that correspond to the elements contained in said schema, C) generating an instance of said schema which contains the data found in said bit stream and which constitutes said tree-like representation.
1 Assignment
0 Petitions
Accused Products
Abstract
The invention proposes a new type of schema derived from the XML schema which permits to describe a coding format in a generic fashion. Such a schema is used to carry out the syntactic analysis of a bit stream to produce a document that represents the bit stream which is an instance of said schema, or to generate a bit stream from a document representing the bit stream.
-
Citations
7 Claims
-
1. A method of syntactically analyzing a bit stream containing data which have a structure and contents according to a certain format, said method being ntended to generate a tree-like representation of said stream, characterized in that said method comprises:
-
A) reading a schema which, for generically describing said format;
a) defines one or more types of data which may contain one or more facets, notably;
when said format uses binary words of predefined length or lengths;
, one or more types of data corresponding to said binary words of predefined length or lengths, said types of data having at least one facet relating to said length and, when said binary words of predefined lengths may contain one or more padding bits, said types of data having a facet relating to said padding bits,when said format uses binary segments of indefinite length which have contents intended to be imported in said representation by using a certain import mode;
a type of data corresponding to said binary segments, said type of data having at least one facet relating to said import mode and, when said binary segments are defined by a stop flag, said type of data having one facet relating to said stop flag,b) comprises a plurality of elements for which it describes a name, a type of data, an interleaving, a predefined or random order and number of occurrences, the occurrence of an element being mandatory or optional, c) when said format provides that data situated at the front of said bit stream give information about the structure or the contents of the rest of said bit stream, defines one or various variables constituted by an access path in said tree-like representation to said data situated at the front, and comprises one or more conditional branches for describing various possible structures or contents as a function of the value of said variable or variables, B) searching in said bit stream for the data that correspond to the elements contained in said schema, C) generating an instance of said schema which contains the data found in said bit stream and which constitutes said tree-like representation. - View Dependent Claims (2)
-
-
3. A method of generating a bit stream according to a certain format, from a document which is a tree-like representation of said bit stream and which contains data, notably data imported by the use of a certain import mode, characterized in that it comprises:
-
A) reading said document B) reading in parallel a schema which, for generically describing said format;
a) defines one or more types of data which may have one or more facets, notably;
a type of data corresponding to binary segments of indefinite length which have at least a facet that relates to said import mode and, when said format uses binary words of predefined length or lengths, one or more types of data corresponding to said binary words of predefined length or lengths which have at least a facet that relates to said length, and when said binary words contain one or more padding bits, a facet that relates to said padding bits, b) comprises a plurality of elements for which it describes a name, a type of data, an interleaving, an order and a number of predefined or random occurrences, the occurrence of an element being mandatory or optional, C) coding said data as a function of the type defined, D) constituting a bit stream from the coded data. - View Dependent Claims (4)
-
-
5. A schema defining one or more types of data which may have one or more facets, and comprising a plurality of elements for which it describes a name, a type of data, an interleaving, an order and a number of predefined and random occurrences, the occurrence of an element being mandatory or optional, characterized in that said schema has at least one of the following characteristic features:
-
said schema defines a type of data which corresponds to binary segments of indefinite length and which has at least a facet relating to a data import mode and optionally a facet relating to a stop flag of a binary segment, said schema defines one or more types of data which correspond to binary words of predefined length or lengths and which have at least a facet relating to said length and, optionally, a facet relating to padding bits contained in said binary words, said schema defines one or more variables constituted by a data access path and it comprises one or more conditional branches for describing various structures or possible contents as a function of the value of the or said variables. - View Dependent Claims (6, 7)
-
Specification