]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/metadata/metadataConstraints.mli
Some modifications due to instance.
[helm.git] / helm / ocaml / metadata / metadataConstraints.mli
index ddf672b7f1d939d84099c216bbd3116190b9afcb..0d66557414365452837ed1eabef188624880dfae 100644 (file)
@@ -63,11 +63,19 @@ type rating_criterion =
   [ `Hits   (** order by number of hits, most used objects first *)
   ]
 
+val add_constraint:
+  ?start:int ->
+  ?tables:string * string * string * string ->
+  int * string list * string list ->
+  MetadataTypes.constr ->
+  int * string list * string list
+
   (** @param concl_card cardinality condition on conclusion only
   * @param full_card cardinality condition on the whole statement
   * @param diff required difference between the number of different constants in
   * hypothesis and the number of different constants in body
   * @return list of URI satisfying given constraints *)
+
 val at_least:
   dbd:Mysql.dbd ->
   ?concl_card:cardinality_condition ->
@@ -83,6 +91,20 @@ val at_most:
   ?where:where -> StringSet.t ->
     (string -> bool)
 
+val add_all_constr: 
+  ?tbl:string ->
+   int * string list * string list ->
+  cardinality_condition option ->
+  cardinality_condition option ->
+  cardinality_condition option ->
+  int * string list * string list
+
+val exec: 
+  dbd:Mysql.dbd ->
+  ?rating:[ `Hits ] -> 
+  int * string list * string list -> 
+  string list
+
 val signature_of: Cic.term -> term_signature
 val constants_of: Cic.term -> StringSet.t