public class DLTreeFactory extends Object
| Constructor and Description |
|---|
DLTreeFactory() |
| Modifier and Type | Method and Description |
|---|---|
static DLTree |
buildDisjAux(List<DLTree> beg)
build a construction in the form AND (\neg q_i)
|
static DLTree |
buildTree(Lexeme t) |
static DLTree |
buildTree(Lexeme t,
DLTree t1) |
static DLTree |
buildTree(Lexeme t,
DLTree t1,
DLTree t2) |
static DLTree |
createBottom()
create BOTTOM element
|
static DLTree |
createEntry(Token tag,
NamedEntry entry) |
static DLTree |
createInverse(DLTree R) |
static DLTree |
createRole(Role R) |
static DLTree |
createSNFAnd(Collection<DLTree> collection) |
static DLTree |
createSNFAnd(Collection<DLTree> collection,
DLTree ancestor) |
static DLTree |
createSNFAnd(DLTree C,
DLTree D) |
static DLTree |
createSNFExists(DLTree R,
DLTree C)
create existential restriction of given formulas (\ER.C)
|
static DLTree |
createSNFForall(DLTree R,
DLTree C) |
static DLTree |
createSNFGE(int n,
DLTree R,
DLTree C) |
static DLTree |
createSNFLE(int n,
DLTree R,
DLTree C)
create at-most (LE) restriction of given formulas (<= n R.C)
|
static DLTree |
createSNFNot(DLTree C) |
static DLTree |
createSNFNot(DLTree C,
DLTree ancestor) |
static DLTree |
createSNFOr(Collection<DLTree> C)
create disjunction of given formulas
|
static DLTree |
createSNFSelf(DLTree R)
create SELF restriction for role R
|
static DLTree |
createTop()
create TOP element
|
static DLTree |
inverseComposition(DLTree tree) |
static boolean |
isBotRole(DLTree t)
check whether T is a bottom (empty) role
|
static boolean |
isFunctionalExpr(DLTree t,
NamedEntry R)
check whether T is an expression in the form (atmost 1 RNAME)
|
static boolean |
isSNF(DLTree t) |
static boolean |
isSubTree(DLTree t1,
DLTree t2) |
static boolean |
isTopRole(DLTree t)
check whether T is a top (universal) role
|
static boolean |
isUniversalRole(DLTree t)
check whether T is U-Role
|
static boolean |
replaceSynonymsFromTree(DLTree desc) |
static NamedEntry |
unwrap(DLTree t)
get TDE by a given DLTree
|
static DLTree |
wrap(NamedEntry t)
get DLTree by a given TDE
|
public static DLTree createBottom()
public static DLTree buildDisjAux(List<DLTree> beg)
public static DLTree createSNFAnd(Collection<DLTree> collection)
public static DLTree createSNFAnd(Collection<DLTree> collection, DLTree ancestor)
public static DLTree createSNFExists(DLTree R, DLTree C)
public static DLTree createEntry(Token tag, NamedEntry entry)
public static DLTree createSNFLE(int n, DLTree R, DLTree C)
public static boolean isBotRole(DLTree t)
public static boolean isTopRole(DLTree t)
public static DLTree createSNFOr(Collection<DLTree> C)
public static DLTree createTop()
public static DLTree wrap(NamedEntry t)
public static NamedEntry unwrap(DLTree t)
public static boolean isFunctionalExpr(DLTree t, NamedEntry R)
public static boolean isSNF(DLTree t)
public static boolean isUniversalRole(DLTree t)
public static boolean replaceSynonymsFromTree(DLTree desc)
Copyright © 2013 The University of Manchester. All Rights Reserved.