public class DLTreeFactory extends Object implements Serializable
| 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
|
public static DLTree createBottom()
public static boolean isSemanticallyDataTop(DLTree dr)
dr - drpublic static boolean isSemanticallyDataBottom(DLTree dr)
dr - drpublic static boolean isDataRangeBigEnough(DLTree dr, int n)
dr - drn - npublic static DLTree simplifyDataTopForall(DLTree dr)
dr - drpublic static DLTree simplifyDataTopLE(int n, DLTree dr)
n - ndr - drpublic static DLTree buildDisjAux(List<DLTree> arguments)
arguments - arguments to ANDpublic static DLTree createSNFAnd(@Nullable DLTree c, @Nullable DLTree d)
c - Cd - Dpublic static DLTree createSNFAnd(Collection<DLTree> collection)
collection - collectionpublic static DLTree createSNFAnd(Collection<DLTree> collection, DLTree ancestor)
collection - collectionancestor - ancestorpublic static boolean containsC(DLTree c, DLTree d)
c - tree to checkd - contained treepublic static DLTree createSNFReducedAnd(@Nullable DLTree c, @Nullable DLTree d)
c - cd - dpublic static DLTree createSNFExists(DLTree r, DLTree c)
r - Rc - Cpublic static DLTree createSNFForall(DLTree r, DLTree c)
r - Rc - Cpublic static DLTree createEntry(Token tag, NamedEntry entry)
tag - tagentry - entrypublic 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 - treepublic static DLTree createSNFSelf(DLTree r)
r - Rpublic static DLTree createSNFGE(int n, DLTree r, DLTree c)
n - nr - Rc - Cpublic static DLTree createSNFNot(DLTree c, DLTree ancestor)
c - Cancestor - ancestorpublic static DLTree createSNFOr(Collection<DLTree> c)
c - Cpublic static DLTree createTop()
public static DLTree inverseComposition(DLTree tree)
tree - treepublic static DLTree wrap(NamedEntry t)
t - tpublic static NamedEntry unwrap(DLTree t)
t - tpublic static DLTree buildTree(Lexeme t, DLTree t1, DLTree t2)
t - tt1 - t1t2 - t2public static DLTree buildTree(Lexeme t, Collection<DLTree> l)
t - tl - listpublic static DLTree buildTree(Lexeme t, DLTree t1)
t - tt1 - t1public static boolean isFunctionalExpr(@Nullable DLTree t, NamedEntry r)
t - tr - Rpublic static boolean isSubTree(@Nullable DLTree t1, @Nullable DLTree t2)
t1 - t1t2 - t2public static boolean isUniversalRole(DLTree t)
t - tCopyright © 2016 The University of Manchester. All rights reserved.