主权项 |
1. A method of matching a first entity to a second entity by evaluating Boolean expressions, the method comprising:
identifying one or more fact vertices for the second entity; generating a first set of criteria vertices by traversing a graph database constrained to the fact vertices identified for the second entity, wherein the graph database relates fact vertices to criteria vertices by edges corresponding to a Boolean expression for matching the first entity to the second entity; and for a first criteria vertex in the first set of criteria vertices:
determining whether the first criteria vertex matches a first fact vertex among the fact vertices identified for the second entity,in response to determining the first criteria vertex matches the first fact vertex, assembling a second set of criteria vertices by adding the first criteria vertex to the second set of criteria vertices, or in response to determining the first criteria vertex does not match a fact vertex among the fact vertices identified for the second entity, retaining the second set of criteria vertices,determining whether the second set of criteria vertices completes the Boolean expression, andin response to determining the second set of criteria vertices completes the Boolean expression, completing the assembly of the second set of criteria vertices, or in response to determining the second set of criteria vertices does not complete the Boolean expression, processing a second criteria vertex in the first set of criteria vertices,wherein completion of an include criteria of the Boolean expression is determined separately from completion of an exclude criteria of the Boolean expression. |