Patent ID: 11907390
Assignee: ZHEJIANG LAB
Field: Computer technology (Electrical engineering)
Classification: CPC G  H | IPC G  H

Claim 2:
3. The method for visual construction of a knowledge graph system according to claim 1, wherein the distributed client receiving the natural language inputted by the user and parsing to generate the abstract syntax tree is as follows:
the distributed client receives the natural language inputted by the user, and an inputted data format is defined as:

InputModel=[nodeName[edgeName1[edgeName11,edgeName12, . . . ], edgeName2, . . . ]]

where InputModel is a natural language input model, an operator [ ] represents obtaining a child node set corresponding to a node of the knowledge graph system, nodeName is a node name of the node, edgeNamei represents an ith-level child node corresponding to the node, and edgeNameij represents a jth-level child node corresponding to the ith-level child node; and
wherein the natural language input model InputModel and the operator [ ] are used as a dictionary for performing character string parsing to generate the abstract syntax tree; a data structure of the abstract syntax tree comprises a root node name, a node id and a child node set, and a data structure of elements in the child node set comprises the child node name, the node id and the child node set.