# US 2021/0334080 A1 · Data parsing apparatus and data parsing method

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0334080 A1
- Document ID: US20210334080A1
- Status: Published application
- Kind: A1
- Application number: 16/877,430
- Filed: 2020-05-18
- Published: 2021-10-28
- Earliest claimed: 2020-04-27
- Assignees: Institute for Information Industry
- Applicants: Institute For Information Industry
- Inventors: Chih-Kai Chen; Yu-Chang Kuo
- Web page: https://patentgrep.com/patent/US20210334080A1

## CPC

- G06F 8/427: {Parsing}
- G06F 8/37: {Compiler construction; Parser generation}
- G06F 8/447: {Target code generation}
- G06F 8/457: {Communication (intertask communication G06F9/54)}
- G06F 9/541: {via adapters, e.g. between incompatible applications}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In a data parsing method, a data adapter receives a piece of reference data, wherein the reference data has a data structure, the data structure includes at least one tag and a value corresponding to each of the at least one tag, and the reference data corresponds to a topic. The data adapter establishes a schema for the topic according to at least one path related to at least a portion of the at least one tag and the at least one value of the data structure. Referring to the schema, the data adapter uses a parser to parse a piece of objective data into a piece of parsed data, wherein the objective data has the data structure and corresponds to the topic.

## Claims

### Claim 1

A data parsing apparatus, comprising:
an interface, being configured to receive a piece of first reference data, wherein the first reference data has a first data structure, the first data structure comprises at least one tag and a value corresponding to each of the at least one tag, and the first reference data corresponds to a first topic; and
a processor, being electrically connected to the interface, and being configured to:
establish a first schema for the first topic according to at least one path related to at least a portion of the at least one tag and the at least one value of the first data structure; and
parse a piece of first objective data into a piece of first parsed data by using a parser and referring to the first schema, wherein the first objective data is one of the first reference data and a piece of first data, and the first data has the first data structure and corresponds to the first topic.

### Claim 2 (depends on 1)

The data parsing apparatus of claim 1, wherein the data parsing apparatus subscribes to the first topic from a message broker to receive the first data from the message broker.

### Claim 3 (depends on 2)

The data parsing apparatus of claim 2, wherein:
the interface is further configured to receive a piece of second data, wherein the second data has the first data structure and corresponds to the first topic; and
the processor is further configured to parse the second data into a piece of second parsed data by using the parser and referring to the first schema.

### Claim 4 (depends on 1)

The data parsing apparatus of claim 1, wherein:
the interface is further configured to receive a piece of third reference data, wherein the third reference data has a third data structure, the third data structure comprises at least one tag and a value corresponding to each of the at least one tag of the third data structure, and the third reference data corresponds to a third topic; and
the processor is further configured to:
establish a third schema for the third topic according to at least one path related to at least a portion of the at least one tag and the at least one value of the third data structure; and
parse a piece of third objective data into a piece of third parsed data by using the parser and referring to the third schema, wherein the third objective data is one of the third reference data and a piece of third data, and the third data has the third data structure and corresponds to the third topic.

### Claim 5 (depends on 1)

The data parsing apparatus of claim 1, wherein:
the interface is further configured to receive the first data which originates from a terminal apparatus; and
the interface is further configured to transmit the first parsed data to a database.

### Claim 6 (depends on 1)

The data parsing apparatus of claim 1, wherein:
the first data originates from an application program; and
the interface is further configured to transmit the first parsed data to a terminal apparatus.

### Claim 7 (depends on 6)

The data parsing apparatus of claim 6, wherein:
the processor is further configured to define a second topic for the first parsed data.

### Claim 8 (depends on 1)

The data parsing apparatus of claim 1, wherein:
the interface is further configured to receive at least one setting provided by a user for the first reference data; and
the processor establishes the first schema according to the at least one setting.

### Claim 9 (depends on 1)

The data parsing apparatus of claim 1, wherein the first data is one of a JSON file, an xml file, and a txt file.

### Claim 10 (depends on 1)

The data parsing apparatus of claim 1, wherein:
the processor is further configured to establish the first schema according to a topic path corresponding to the first topic.

### Claim 11

A data parsing method, comprising the following steps:
receiving, by a data adapter, a piece of first reference data, wherein the first reference data has a first data structure, the first data structure comprises at least one tag and a value corresponding to each of the at least one tag, and the first reference data corresponds to a first topic;
establishing, by the data adapter, a first schema for the first topic according to at least one path related to at least a portion of the at least one tag and the at least one value of the first data structure; and
parsing, by the data adapter, a piece of first objective data into a piece of first parsed data by using a parser and referring to the first schema, wherein the first objective data is one of the first reference data and a piece of first data, and the first data has the first data structure and corresponds to the first topic.

### Claim 12 (depends on 11)

The data parsing method of claim 11, wherein the data adapter subscribes to the first topic from a message broker to receive the first data from the message broker.

### Claim 13 (depends on 12)

The data parsing method of claim 12, further comprising the following steps:
receiving, by the data adapter, a piece of second data from the message broker, wherein the second data has the first data structure and corresponds to the first topic; and
parsing, by the data adapter, the second data into a piece of second parsed data by using the parser and referring to the first schema.

### Claim 14 (depends on 11)

The data parsing method of claim 11, further comprising the following steps:
receiving, by the data adapter, a piece of third reference data, wherein the third reference data has a third data structure, the third data structure comprises at least one tag and a value corresponding to each of the at least one tag of the third data structure, and the third reference data corresponds to a third topic;
establishing, by the data adapter, a third schema for the third topic according to at least one path related to at least a portion of the at least one tag and the at least one value of the third data structure; and
parsing, by the data adapter, a piece of third objective data into a piece of third parsed data by using the parser and referring to the third schema, wherein the third objective data is one of the third reference data and a piece of third data, and the third data has the third data structure and corresponds to the third topic.

### Claim 15 (depends on 11)

The data parsing method of claim 11, further comprising the following steps:
receiving, by the data adapter, the first data which originates from a terminal apparatus; and
transmitting, by the data adapter, the first parsed data to a database.

### Claim 16 (depends on 11)

The data parsing method of claim 11, wherein the first data originates from an application program, and the data parsing method further comprises the following step:
transmitting, by the data adapter, the first parsed data to a terminal apparatus.

### Claim 17 (depends on 16)

The data parsing method of claim 16, further comprising the following step:
defining, by the data adapter, a second topic for the first parsed data.

### Claim 18 (depends on 11)

The data parsing method of claim 11, further comprising the following step:
receiving, by the data adapter, at least one setting provided by a user for the first reference data;
wherein the data adapter establishes the first schema according to the at least one setting.

### Claim 19 (depends on 11)

The data parsing method of claim 11, wherein the first data is one of a JSON file, an xml file, and a txt file.

### Claim 20 (depends on 11)

The data parsing method of claim 11, wherein the data adapter further establishes the first schema according to a topic path corresponding to the first topic.
