7 let string_of_uri uri = uri;;
8 let uri_of_string str = str;;
11 let l = Str.split (Str.regexp "/") uri in
12 let name_suf = List.nth l (List.length l - 1) in
13 List.hd (Str.split (Str.regexp "\.") name_suf)
16 let depth_of_uri uri =
17 List.length (Str.split (Str.regexp "/") uri) - 2