X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fmathql_interpreter%2Futility.ml;h=af99d72fe25df2d47dfe0a5ad00d37c93c3419f4;hb=d59d2f93956bcbe4dd7bb3407e3c53de8b66c003;hp=5ea9b7e672f2be2a3c783f4fcf90fd01222d1df2;hpb=f870fdd883e3380f77f260709d4cb76e9d5def2b;p=helm.git diff --git a/helm/ocaml/mathql_interpreter/utility.ml b/helm/ocaml/mathql_interpreter/utility.ml index 5ea9b7e67..af99d72fe 100644 --- a/helm/ocaml/mathql_interpreter/utility.ml +++ b/helm/ocaml/mathql_interpreter/utility.ml @@ -95,13 +95,13 @@ let set_assoc x v l = * * output: string; id interno associato alla proprieta' *) -let helm_property_id p = - let c = pgc () in +let helm_property_id handle p = + let c = MQIConn.pgc handle in let q1 = "select att0 from namespace where att1='http://www.cs.unibo.it/helm/schemas/mattone.rdf#'" in let ns = pgresult_to_string (c#exec q1) in let q2 = ("select att0 from property where att2='" ^ p ^ "' and att1=" ^ ns) in let retval = pgresult_to_string (c#exec q2) in - (*let _ = print_endline ("utility:q2: " ^ q2 ^ " : " ^ retval) in*) + (*let _ = prerr_endline ("utility:q2: " ^ q2 ^ " : " ^ retval) in*) retval ;; @@ -111,8 +111,8 @@ let helm_property_id p = * * output: string; id interno associato alla classe *) -let helm_class_id cl = - let c = pgc () in +let helm_class_id handle cl = + let c = MQIConn.pgc handle in let ns = pgresult_to_string (c#exec ("select att0 from namespace where att1='http://www.cs.unibo.it/helm/schemas/mattone.rdf#'")) in pgresult_to_string (c#exec ("select att0 from class where att2='" ^ cl ^ "' and att1=" ^ ns)) ;;