METHOD AND SYSTEM FOR PROBABILISTIC QUERYING OF A VECTOR GRAPH DATABASE
A method and system for performing predictive querying on vector graph document database that includes entities wherein each entity has a Unique IDentifier (UID) tag field, and a schema or array of schema fields, the method including performing probabilistic querying by means of data links that include source, destination, transform, program and data fields, the transform field including a data subfield that refers to the probabilistic, conditional relation between two entities, and a program subfield that defines an infer method and a learn method.
1 . A system for, encoding information of entities in a vector graph document database, comprising:
a processor on a computer system that can be used to interact with a database, and
a vector graph document database having a Hyper Space Modelling Language (HSML) structure and capable of computation over stored entities using data links, wherein the entities in the database can be created, read, updated, and deleted using create, read, update, and delete (CRUD) functionalities.
2 . The system of claim 1 , wherein the modeling language of HSML defines a Unique IDentifier (UID) tag field for each entity, wherein the entities include source entities and destination entities stored in the vector graph document database, a schema, normal links that relate at least some of the source entities with at least some of the destination entities according to their causal or parent-children relationships, and the data links, wherein the data links relate at least some source entities with at least some destination entities according to their causal or parent-children relationships and perform computations over the related entities.
3 . The system of claim 2 , wherein the schema comprises an array of schema fields.
4 . A method performed by one or more computers for querying a database, comprising,
providing a vector graph document database having a Hyper Space Modelling Language (HSML) structure and capable of computation over stored entities using datalinks, wherein said entities include source and destination entities,
encoding the prior probability of entities in the vector graph document database,
receiving a user query,
inferring the posterior probability of the entities based on the user query,
updating parameters of the vector graph document database, wherein the parameters encode the probability of the relation between source and destination entities, and
returning the set of entities related to the user query.
5 . The method of claim 4 , wherein the parameters that encode the probability of the relation between source and destination entities use a vector, matrix, or tensor, with columns representing the source entity and rows representing the destination entity, and cells of the vector, matrix, or tensor containing the probability of the relationship between the source and destination entities.
6 . The method of claim 5 , wherein the HSML comprises a Unique IDentifier (UID) tag field for each entity, a schema, normal links that relate at least some of the source entities with at least some of the destination entities according to their causal or parent-children relationships, and data links that relate at least some source entities with at least some destination entities according to their causal or parent-children relationships and wherein the data links are capable of performing computation over the related entities.
7 . The method of claim 6 , wherein the schema comprises an array of schema fields.
8 . The method of claim 6 , wherein the inference is performed over the parameters of the vector graph document database.
9 . The method of claim 8 , wherein the algorithm to perform the inference is implemented by the data links of the vector graph database.
10 . The method of claim 9 , wherein the algorithm includes one or more of sum-product, belief propagation, variational message passing, Laplace propagation, and Expectation Propagation algorithms.
11 . The method of claim 4 , wherein the user query is received through create, read, update, and delete (CRUD) functionalities to communicate a database.
12 . The method of claim 4 , wherein the parameters of the vector graph document database are updated by adding a count of +1 to the value in the cell of the vector, matrix or tensor parameter representing the relationship between one or more entities connected to the entity referenced in the user query, and wherein the probability distribution of the vector, matrix or tensor is normalized after having added the count to ensure that the distribution sums to 1.
13 . The method of claim 4 , wherein results returned to the user are the most probable entities in the posterior probability distribution related to the user query.
14 . The method of claim 13 , wherein the threshold for considering an entity probable is set by a user.