]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/mathql_interpreter/pattern.ml
* New operators (Subset, SetEqual and RVarOccurrence) added to MathQL
[helm.git] / helm / ocaml / mathql_interpreter / pattern.ml
index b68baa9a4e4970880aac74dc6eb8057229c72072..fa28f6cc5a4c682650c8cef556ade0f6341615dc 100644 (file)
@@ -30,6 +30,7 @@
 open Dbconn;;
 open Utility;;
 open Eval;;
+open Mathql_semantics;;
 
 let pattern_ex apreamble apattern afragid =
  let c = pgc () in
@@ -40,5 +41,7 @@ let pattern_ex apreamble apattern afragid =
     let res =
      c#exec (qq)
     in
-     [["retVal"]] @ List.map (fun l -> [l]) (pgresult_to_string_list res)
+     List.map
+      (function uri -> {uri = uri ; attributes = []})
+      (pgresult_to_string_list res)
 ;;