| CPC G06F 16/24553 (2019.01) [G06F 16/2246 (2019.01); G06F 16/322 (2019.01); G06F 16/9024 (2019.01)] | 20 Claims |

|
1. A computer-implemented method of encoding a query graph, the query graph having a plurality of nodes including m root nodes and n leaf nodes, wherein m and n are integer values, the method comprising the steps, implemented in a processor, of:
receiving a set of m×n path queries representing the query graph, wherein each of the m×n path queries starts with a root node and ends with a leaf node, wherein the query graph includes at least one of: one or more missing nodes or one or more missing edges between nodes;
encoding positions of each node and each edge between nodes within each of the m×n path queries independently, wherein the encoded positions include a positional order within each path query, and wherein the encoded positions include positional counter values that are reset at a start position of each of the m×n path queries;
masking each of the at least one of the one or more missing nodes or one or more missing edges between nodes to produce a masked query; and
feeding the masked query to a transformer encoder.
|