public class DLTreeFactory extends Object implements Serializable
| Constructor and Description |
|---|
DLTreeFactory() |
| Modifier and Type | Method and Description |
|---|---|
static DLTree |
buildDisjAux(List<DLTree> arguments) |
static DLTree |
buildTree(Lexeme t) |
static DLTree |
buildTree(Lexeme t,
Collection<DLTree> l) |
static DLTree |
buildTree(Lexeme t,
DLTree t1) |
static DLTree |
buildTree(Lexeme t,
DLTree t1,
DLTree t2) |
static boolean |
containsC(DLTree C,
DLTree D) |
static DLTree |
createBottom() |
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 (max 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 |
createSNFReducedAnd(DLTree C,
DLTree D) |
static DLTree |
createSNFSelf(DLTree R)
create SELF restriction for role R
|
static DLTree |
createTop() |
static DLTree |
inverseComposition(DLTree tree) |
static boolean |
isBotRole(DLTree t)
check whether T is a bottom (empty) role
|
static boolean |
isDataRangeBigEnough(DLTree dr,
int n) |
static boolean |
isFunctionalExpr(DLTree t,
NamedEntry R)
check whether T is an expression in the form (atmost 1 RNAME)
|
static boolean |
isSemanticallyDataBottom(DLTree dr) |
static boolean |
isSemanticallyDataTop(DLTree dr) |
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 DLTree |
simplifyDataTopForall(DLTree dr)
simplify universal restriction with top data role
|
static DLTree |
simplifyDataTopLE(int n,
DLTree dr)
simplify minimal cardinality restriction with top data role
|
static NamedEntry |
unwrap(DLTree t)
get TDE by a given DLTree
|
static DLTree |
wrap(NamedEntry t)
get DLTree by a given TDE
|
@Nonnull public static DLTree createInverse(DLTree R)
R - Rpublic static boolean isSemanticallyDataTop(DLTree dr)
dr - drpublic static boolean isSemanticallyDataBottom(DLTree dr)
dr - drpublic static boolean isDataRangeBigEnough(DLTree dr, int n)
dr - drn - n@Nonnull public static DLTree simplifyDataTopForall(DLTree dr)
dr - dr@Nonnull public static DLTree simplifyDataTopLE(int n, DLTree dr)
n - ndr - dr@Nonnull public static DLTree buildDisjAux(List<DLTree> arguments)
arguments - arguments to AND@Nonnull public static DLTree createSNFAnd(DLTree C, DLTree D)
C - CD - D@Nonnull public static DLTree createSNFAnd(Collection<DLTree> collection)
collection - collectionpublic static boolean containsC(DLTree C, DLTree D)
C - cD - d@Nonnull public static DLTree createSNFReducedAnd(DLTree C, DLTree D)
C - cD - d@Nonnull public static DLTree createSNFAnd(Collection<DLTree> collection, @Nonnull DLTree ancestor)
collection - collectionancestor - ancestor@Nonnull public static DLTree createSNFExists(DLTree R, DLTree C)
R - RC - C@Nonnull public static DLTree createSNFForall(DLTree R, DLTree C)
R - RC - C@Nonnull public static DLTree createEntry(Token tag, NamedEntry entry)
tag - tagentry - entry@Nonnull public static DLTree createSNFLE(int n, DLTree R, DLTree C)
n - nR - RC - Cpublic static boolean isBotRole(DLTree t)
t - treepublic static boolean isTopRole(DLTree t)
t - tree@Nonnull public static DLTree createSNFSelf(DLTree R)
R - R@Nonnull public static DLTree createSNFGE(int n, DLTree R, DLTree C)
n - nR - RC - C@Nonnull public static DLTree createSNFNot(@Nonnull DLTree C, @Nonnull DLTree ancestor)
C - Cancestor - ancestor@Nonnull public static DLTree createSNFOr(Collection<DLTree> C)
C - C@Nonnull public static DLTree inverseComposition(DLTree tree)
tree - tree@Nonnull public static DLTree wrap(NamedEntry t)
t - t@Nonnull public static NamedEntry unwrap(DLTree t)
t - t@Nonnull public static DLTree buildTree(Lexeme t, DLTree t1, DLTree t2)
t - tt1 - t1t2 - t2@Nonnull public static DLTree buildTree(Lexeme t, Collection<DLTree> l)
t - tl - list@Nonnull public static DLTree buildTree(Lexeme t, DLTree t1)
t - tt1 - t1public static boolean isFunctionalExpr(DLTree t, NamedEntry R)
t - tR - Rpublic static boolean isSNF(DLTree t)
t - tpublic static boolean isSubTree(DLTree t1, DLTree t2)
t1 - t1t2 - t2public static boolean isUniversalRole(DLTree t)
t - tpublic static boolean replaceSynonymsFromTree(DLTree desc)
desc - descCopyright © 2015 The University of Manchester. All rights reserved.