]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/metadata/metadataConstraints.ml
snapshot of queries for auto+paramod
[helm.git] / helm / software / components / metadata / metadataConstraints.ml
index cb84601475f239463d668281bca7547583a1ef4a..785f73fe4a326aa88b4f63e9ad9399baeeebe7e8 100644 (file)
@@ -29,7 +29,7 @@ open Printf
 open MetadataTypes 
 
 let critical_value = 7
-let just_factor = 3
+let just_factor = 1
 
 module UriManagerSet = UriManager.UriSet
 module SetSet = Set.Make (UriManagerSet)
@@ -546,7 +546,10 @@ let compute_with_only ~(dbd:HMysql.dbd) ?(facts=false) ?(where = `Conclusion)
           maximal_prefixes)
     in
 (*     Printf.fprintf stderr "all: %d\n" (List.length all);flush_all (); *)
-    List.filter (function (_,uri) -> at_most ~dbd ~where constants uri) all in
+    List.filter (function (_,uri) -> 
+      prerr_endline ("W" ^UriManager.string_of_uri uri);
+      at_most ~dbd ~where constants uri) all 
+    in
   let equal_to = compute_exactly ~dbd ~facts ~where main prefixes in
     greater_than @ equal_to
 
@@ -624,6 +627,7 @@ let sigmatch ~(dbd:HMysql.dbd) ?(facts=false) ?(where = `Conclusion)
       let types_no = List.length types in
       List.map (function (n,l) -> (n+types_no,types@l)) subsets
     in
+    prerr_endline ("critical_value exceded..." ^ string_of_int constants_no);
     let all_constants = 
      let all = match main with None -> types | Some m -> m::types in
       List.fold_right UriManagerSet.add all constants