This is an old revision of the document!
====== Query Generalization ====== ''**public class QueryGeneralization**'' This class is used for calculate the generalized version of a query. ===== Class Methods ===== ==== getQueryGeneralization ==== <code java> public static Query getQueryGeneralization (Query query, java.util.ArrayList<TCStatement> tcStatements, Schema schema) throws DLVInvocationException, IOException, CycleException, PrimaryKeyViolationException </code> Method used for calling the Query Generalization algorithm (that is a private method). //Called by:// * it.unibz.inf.magik.core.TCQCReasoner * it.unibz.inf.magik.test.TestQueryGeneralization **Parameters:** * Query - query that we want to find its generalized version * tcStatements - which data are complete, expressed in TC-statements * schema - database schema (that contains finite domain constraints and foreign keys) **Returns:** * specialized query founded **Throws:** * DLVInvocationException * IOException * CycleException * PrimaryKeyViolationException ---- ==== getQueryGeneralization ==== <code java> public static Query getQueryGeneralization (Query query, java.util.ArrayList<TCStatement> tcStatements, Schema schema) throws DLVInvocationException, IOException, CycleException, PrimaryKeyViolationException </code> Method used for calling the Query Generalization algorithm (that is a private method). //Called by:// * it.unibz.inf.magik.core.TCQCReasoner * it.unibz.inf.magik.test.TestQueryGeneralization **Parameters:** * Query - query that we want to find its generalized version * tcStatements - which data are complete, expressed in TC-statements * schema - database schema (that contains finite domain constraints and foreign keys) **Returns:** * specialized query founded **Throws:** * DLVInvocationException * IOException * CycleException * PrimaryKeyViolationException ---- ==== getQueryGeneralization ==== <code java> public static Query getQueryGeneralization (Query query, java.util.ArrayList<TCStatement> tcStatements, Schema schema) throws DLVInvocationException, IOException, CycleException, PrimaryKeyViolationException </code> Method used for calling the Query Generalization algorithm (that is a private method). //Called by:// * it.unibz.inf.magik.core.TCQCReasoner * it.unibz.inf.magik.test.TestQueryGeneralization **Parameters:** * Query - query that we want to find its generalized version * tcStatements - which data are complete, expressed in TC-statements * schema - database schema (that contains finite domain constraints and foreign keys) **Returns:** * specialized query founded **Throws:** * DLVInvocationException * IOException * CycleException * PrimaryKeyViolationException