-
Notifications
You must be signed in to change notification settings - Fork 0
/
RoleDifference.mli
64 lines (52 loc) · 3.07 KB
/
RoleDifference.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
(***********************************************************)
(* Copyright (C) 2010 - 2014 *)
(* Michel Ludwig (michel.ludwig@gmail.com) *)
(* University of Liverpool, and *)
(* TU Dresden *)
(* *)
(* This program is free software; you can redistribute *)
(* it and/or modify it under the terms of the GNU *)
(* General Public License as published by the Free *)
(* Software Foundation; either version 3 of the License, *)
(* or (at your option) any later version. *)
(* *)
(* This program is distributed in the hope that it will *)
(* be useful, but WITHOUT ANY WARRANTY; without even *)
(* the implied warranty of MERCHANTABILITY or FITNESS *)
(* FOR A PARTICULAR PURPOSE. See the GNU General Public *)
(* License for more details. *)
(* *)
(* You should have received a copy of the GNU General *)
(* Public License along with this program; if not, see *)
(* <http://www.gnu.org/licenses/>. *)
(***********************************************************)
open Types
(* Abstract type used to represent the role information recorded for an *)
(* ontology w.r.t. this module *)
type t
(* Creates a role information object *)
val create : unit -> t
(* "processRoleInclusion t r s" stores that the ontology corresponding to 't' *)
(* entails that 'r' <= 's'. This method is typically used during parsing. *)
val processRoleInclusion : t -> string -> string -> unit
(* "preRole t s" returns a list of all the role names r such that the *)
(* ontology corresponding to 't' entails "r <= s" *)
val preRole : t -> string -> StringSet.t
(* "preRoleSigma sigma t s" returns a list of all the role names r *)
(* such that the ontology corresponding to 't' entails "r <= s" and such that r *)
(* is in \Sigma*)
val preRoleSigma : Sigma.t -> t -> string -> StringSet.t
val iter_preRoleSigma : (string -> unit) -> Sigma.t -> t -> string -> unit
val for_all_preRoleSigma : (string -> bool) -> Sigma.t -> t -> string -> bool
(* "postRole t r" returns a list of all the role names s such that the *)
(* ontology corresponding to 't' entails "r <= s" *)
val postRole : t -> string -> StringSet.t
(* "postRoleSigma sigma t r" returns a list of all the role names s *)
(* such that the ontology corresponding to 't' entails "r <= s" and such that r *)
(* s in \Sigma*)
val postRoleSigma : Sigma.t -> t -> string -> StringSet.t
(* Returns as first component a list containing all the role inclusions (as pairs) using roles from *)
(* the first argument that are entailed by the second argument, but not by the third argument. *)
(* The second component is the number of role inclusions returned in the first component. *)
val computeRoleDifferences : Sigma.t -> t -> t -> (string * string) list * int
(* kate: replace-tabs on; indent-width 2; *)