* http://helm.cs.unibo.it/
*)
+(* $Id$ *)
+
let position_prefix = "http://www.cs.unibo.it/helm/schemas/schema-helm#"
(* let position_prefix = "" *)
let inhyp_pos = position_prefix ^ "InHypothesis"
let inbody_pos = position_prefix ^ "InBody"
+type relation =
+ | Eq of int
+ | Le of int
+ | Lt of int
+ | Ge of int
+ | Gt of int
+
type main_position =
- [ `MainConclusion of int option (* Pi depth *)
- | `MainHypothesis of int option (* Pi depth *)
+ [ `MainConclusion of relation option (* Pi depth *)
+ | `MainHypothesis of relation option (* Pi depth *)
]
type position =
type metadata =
[ `Sort of Cic.sort * main_position
| `Rel of main_position
- | `Obj of string * position
+ | `Obj of UriManager.uri * position
]
type constr =
[ `Sort of Cic.sort * main_position list
| `Rel of main_position list
- | `Obj of string * position list
+ | `Obj of UriManager.uri * position list
]
let constr_of_metadata: metadata -> constr = function
let obj_tbl_original = "refObj"
let name_tbl_original = "objectName"
let count_tbl_original = "count"
+let hits_tbl_original = "hits"
(** the names currently used *)
let sort_tbl_real = ref sort_tbl_original
let library_obj_tbl = obj_tbl_original
let library_name_tbl = name_tbl_original
let library_count_tbl = count_tbl_original
+let library_hits_tbl = hits_tbl_original
let are_tables_ownerized () =
sort_tbl () <> library_sort_tbl