]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/mathql_interpreter/relation.ml
Debugging prints removed.
[helm.git] / helm / ocaml / mathql_interpreter / relation.ml
index 57b89122e1922132a0e09d84fc48acec16c4aa32..ea4fb9cc3525061ff92a2bfd67fe82780e46f271 100644 (file)
@@ -46,7 +46,7 @@ let get_prop_id propl =
 ;;
 
 
-let relation_ex rop path rset attl =
+let relation_ex inv rop path rset attl =
   let usek = get_prop_id path in
   let vvar = if attl = [] then "position"
              else List.hd attl
@@ -55,7 +55,7 @@ let relation_ex rop path rset attl =
   let rset_list =  (* lista di singoletti:resource_set di un elemento *)
   (List.fold_left (fun acc (uri,l) ->
     let tv = pgresult_to_string (c#exec ("select id from registry where uri='" ^ uri ^ "'")) in
-    let qq = "select uri, context from t" ^ tv ^ " where prop_id='" ^ usek ^ "' order by uri asc" in
+    let qq = "select uri, position from t" ^ tv ^ " where prop_id='" ^ usek ^ "' order by uri asc" in
     let res = c#exec qq in
     (List.map
     (function 
@@ -139,7 +139,7 @@ let muse path attl r =
 
 (* prende un resource_set, una vvar (primo el. di attl) a cui associare la posizione, e la relazione (refObj o backPointer) e per ogni resource chiama la muse 
 NOTA: "rop" per ora non viene usato perche' vale sempre "ExactOp" *)
-let relation_galax_ex rop path rset attl =
+let relation_galax_ex inv rop path rset attl =
     List.stable_sort (fun (uri1,l1) (uri2,l2) -> compare uri1 uri2) (List.concat (List.map (muse path attl) rset))