X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fhttp_getter%2Fhttp_getter_types.ml;h=bf584f6ce4432fd5cf05aef12b6389a657dc8e4b;hb=3f81a72dbdc7f2ffb17cc1ecd4e6a39270891c77;hp=36ea0e8c3a8a1a5911dfc342a4efbc411de7b820;hpb=32bc9336091a84376f93b06325c08dab58124a0d;p=helm.git diff --git a/helm/http_getter/http_getter_types.ml b/helm/http_getter/http_getter_types.ml index 36ea0e8c3..bf584f6ce 100644 --- a/helm/http_getter/http_getter_types.ml +++ b/helm/http_getter/http_getter_types.ml @@ -1,5 +1,7 @@ (* - * Copyright (C) 2003, HELM Team. + * Copyright (C) 2003-2004: + * Stefano Zacchiroli + * for the HELM Team http://helm.cs.unibo.it/ * * This file is part of HELM, an Hypertextual, Electronic * Library of Mathematics, developed at the Computer Science @@ -21,27 +23,40 @@ * MA 02111-1307, USA. * * For details, see the HELM World-Wide-Web page, - * http://cs.unibo.it/helm/. + * http://helm.cs.unibo.it/ *) -exception Http_getter_bad_request of string -exception Http_getter_unresolvable_URI of string -exception Http_getter_invalid_URI of string -exception Http_getter_invalid_URL of string -exception Http_getter_invalid_RDF_class of string -exception Http_getter_internal_error of string +exception Bad_request of string +exception Unresolvable_URI of string +exception Invalid_URI of string +exception Invalid_URL of string +exception Invalid_RDF_class of string +exception Internal_error of string -type http_getter_encoding = Enc_normal | Enc_gzipped -type http_getter_answer_format = Fmt_text | Fmt_xml -type http_getter_ls_flag = No | Yes | Ann +type encoding = Enc_normal | Enc_gzipped +type answer_format = Fmt_text | Fmt_xml +type ls_flag = Yes | No | Ann +type ls_object = + { + uri: string; + ann: bool; + types: ls_flag; + body: ls_flag; + proof_tree: ls_flag; + } +type ls_item = + | Ls_section of string + | Ls_object of ls_object -type http_getter_xml_uri = +type xml_uri = | Cic of string | Theory of string -type http_getter_rdf_uri = string * http_getter_xml_uri -type http_getter_uri = - | Xml_uri of http_getter_xml_uri - | Rdf_uri of http_getter_rdf_uri +type rdf_uri = string * xml_uri +type nuprl_uri = string +type uri = + | Cic_uri of xml_uri + | Nuprl_uri of nuprl_uri + | Rdf_uri of rdf_uri module StringSet = Set.Make (String)