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 intended 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 binary words of predefined lengths may contain one or more padding bits, said types of data having at least one facet relating to said length and 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 defined by a stop flag, said type of data having at least one facet relating to import mode and 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 gives 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 corresponds 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
5 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 intended 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 binary words of predefined lengths may contain one or more padding bits, said types of data having at least one facet relating to said length and 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 defined by a stop flag, said type of data having at least one facet relating to import mode and 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 gives 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 corresponds 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, 5)
-
-
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 fonnat 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 tat 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)
-
Specification