1 (* Copyright (C) 2000, HELM Team.
3 * This file is part of HELM, an Hypertextual, Electronic
4 * Library of Mathematics, developed at the Computer Science
5 * Department, University of Bologna, Italy.
7 * HELM is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
12 * HELM is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with HELM; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
22 * For details, see the HELM World-Wide-Web page,
23 * http://www.cs.unibo.it/helm/.
26 (* AUTOR: Ferruccio Guidi <fguidi@cs.unibo.it>
31 (* output data structures ***************************************************)
33 type path = string list (* the name of an attribute *)
35 type value = string list (* the value of an attribute *)
37 type attribute = path * value (* an attribute *)
39 type attribute_group = attribute list (* a group of attributes *)
41 type attribute_set = attribute_group list (* the attributes of an URI *)
43 type resource = string * attribute_set (* an attributed URI *)
45 type resource_set = resource list (* the query result *)
47 type result = resource_set
50 (* input data structures ****************************************************)
52 type svar = string (* the name of a variable for a resource set *)
54 type avar = string (* the name of a variable for a resource *)
56 type vvar = string (* the name of a variable for an attribute value *)
60 type refine = RefineExact
68 type exp = path * (path option)
70 type exp_list = exp list
78 type bin = BinFJoin (* full union - with attr handling *)
79 | BinFMeet (* full intersection - with attr handling *)
80 | BinFDiff (* full difference - with attr handling *)
82 type gen = GenFJoin (* full union - with attr handling *)
83 | GenFMeet (* full intersection - with attr handling *)
98 | Property of inverse * refine * path *
99 main * istrue * isfalse list * exp_list *
101 | Select of avar * query * msval
102 | Bin of bin * query * query
103 | LetSVar of svar * query * query
104 | LetVVar of vvar * msval * query
105 | For of gen * avar * query * query
106 | Add of bool * groups * query
107 | If of msval * query * query
108 | Log of xml * source * query
110 | Keep of allbut * path list * query
115 | Ex of avar list * msval
116 | Test of test * msval * msval
119 | Proj of path option * query
124 | Align of string * msval
126 and groups = Attr of (path * msval) list list
129 and con = pattern * path * msval
131 and istrue = con list
133 and isfalse = con list