Package openllet.core.utils
Class ATermUtils
- java.lang.Object
-
- openllet.core.utils.ATermUtils
-
public class ATermUtils extends java.lang.ObjectThis class provides the functions ATerm related functions. Creating terms for URI's and complex class descriptions is done here. There are also functions for normalization, simplification and conversion to NNF (Normal Negation Form).- Author:
- Evren Sirin
-
-
Field Summary
Fields Modifier and Type Field Description static openllet.aterm.AFunALLDIFFERENTFUNstatic openllet.aterm.AFunALLFUNstatic openllet.aterm.AFunANDFUNstatic openllet.aterm.AFunANON_FUNstatic openllet.aterm.AFunANON_NOMINAL_FUNstatic openllet.aterm.AFunANTISYMMETRICFUNDeprecated.UseASYMMETRICFUNstatic openllet.aterm.AFunASYMMETRICFUNstatic java.util.Set<openllet.aterm.AFun>AXIOM_FUNSet of all axiom functors used in explanationsstatic openllet.aterm.AFunBNODE_FUNstatic openllet.aterm.ATermApplBOTTOMstatic openllet.aterm.ATermApplBOTTOM_DATA_PROPERTYstatic openllet.aterm.ATermApplBOTTOM_LITstatic openllet.aterm.ATermApplBOTTOM_OBJECT_PROPERTYstatic openllet.aterm.AFunBUILTINFUNstatic openllet.aterm.AFunCARDFUNThis is not used in the reasoner but kept here to be used for displaystatic java.util.Set<openllet.aterm.AFun>CLASS_FUNstatic openllet.aterm.AFunCOMPLEMENTFUNstatic openllet.aterm.ATermApplCONCEPT_SAT_INDstatic openllet.aterm.AFunDATATYPEDEFFUNstatic openllet.aterm.AFunDIFFERENTFUNAdded for explanationsstatic openllet.aterm.AFunDISJOINTFUNstatic openllet.aterm.AFunDISJOINTPROPFUNstatic openllet.aterm.AFunDISJOINTPROPSFUNstatic openllet.aterm.AFunDISJOINTSFUNstatic openllet.aterm.AFunDOMAINFUNstatic openllet.aterm.ATermApplEMPTYstatic openllet.aterm.ATermListEMPTY_LISTstatic openllet.aterm.AFunEQCLASSFUNstatic openllet.aterm.AFunEQPROPFUNstatic openllet.aterm.AFunFACETstatic openllet.aterm.AFunFUNCTIONALFUNstatic openllet.aterm.AFunINVFUNstatic openllet.aterm.AFunINVFUNCTIONALFUNstatic openllet.aterm.AFunINVPROPFUNstatic openllet.aterm.AFunIRREFLEXIVEFUNstatic intLIT_LANG_INDEXstatic intLIT_URI_INDEXstatic intLIT_VAL_INDEXstatic openllet.aterm.ATermApplLITERAL_STRINGstatic openllet.aterm.AFunLITFUNstatic openllet.aterm.AFunMAXFUNstatic openllet.aterm.AFunMINFUNstatic openllet.aterm.ATermApplNO_DATATYPEstatic openllet.aterm.AFunNOTFUNstatic openllet.aterm.ATermIntONEstatic openllet.aterm.AFunORFUNstatic openllet.aterm.ATermApplPLAIN_LITERAL_DATATYPEstatic openllet.aterm.AFunPROPFUNstatic QNameProviderqnamesstatic openllet.aterm.AFunRANGEFUNstatic openllet.aterm.AFunREFLEXIVEFUNstatic openllet.aterm.AFunRESTRDATATYPEFUNstatic openllet.aterm.AFunRULEFUNstatic openllet.aterm.AFunSAMEASFUNstatic openllet.aterm.AFunSELFFUNstatic openllet.aterm.AFunSOMEFUNstatic openllet.aterm.AFunSUBFUNstatic openllet.aterm.AFunSUBPROPFUNstatic openllet.aterm.AFunSYMMETRICFUNstatic openllet.aterm.ATermApplTOPstatic openllet.aterm.ATermApplTOP_DATA_PROPERTYstatic openllet.aterm.ATermApplTOP_LITstatic openllet.aterm.ATermApplTOP_OBJECT_PROPERTYstatic openllet.aterm.AFunTRANSITIVEFUNstatic openllet.aterm.AFunTYPEFUNstatic openllet.aterm.AFunVALUEFUNstatic openllet.aterm.AFunVARFUNThis is used to represent variables in queries
-
Constructor Summary
Constructors Constructor Description ATermUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidassertTrue(boolean condition)static java.util.Set<openllet.aterm.ATermAppl>findPrimitives(openllet.aterm.ATermAppl term)static java.util.Set<openllet.aterm.ATermAppl>findPrimitives(openllet.aterm.ATermAppl term, boolean skipRestrictions, boolean skipTopLevel)static voidfindPrimitives(openllet.aterm.ATermAppl term, java.util.Set<openllet.aterm.ATermAppl> primitives)static voidfindPrimitives(openllet.aterm.ATermAppl term, java.util.Set<openllet.aterm.ATermAppl> primitives, boolean skipRestrictions, boolean skipTopLevel)static openllet.aterm.ATermFactorygetFactory()static java.lang.StringgetLiteralDatatype(openllet.aterm.ATermAppl literal)static java.lang.StringgetLiteralLang(openllet.aterm.ATermAppl literal)static java.lang.StringgetLiteralValue(openllet.aterm.ATermAppl literal)static java.util.Set<openllet.aterm.ATermAppl>getPrimitives(openllet.aterm.ATermList list)static openllet.aterm.ATermApplgetTop(Role r)static booleanisAllValues(openllet.aterm.ATermAppl a)static booleanisAnd(openllet.aterm.ATermAppl a)static booleanisAnon(openllet.aterm.ATermAppl term)static booleanisAnonNominal(openllet.aterm.ATermAppl term)static booleanisBnode(openllet.aterm.ATermAppl name)static booleanisBottom(openllet.aterm.ATermAppl a)static booleanisBuiltinProperty(openllet.aterm.ATermAppl name)static booleanisCard(openllet.aterm.ATermAppl a)static booleanisComplexClass(openllet.aterm.ATerm c)static booleanisDataRange(openllet.aterm.ATermAppl a)static booleanisHasValue(openllet.aterm.ATermAppl a)static booleanisInv(openllet.aterm.ATermAppl r)static booleanisLiteral(openllet.aterm.ATermAppl a)static booleanisMax(openllet.aterm.ATermAppl a)static booleanisMin(openllet.aterm.ATermAppl a)static booleanisNegatedPrimitive(openllet.aterm.ATermAppl c)static booleanisNominal(openllet.aterm.ATermAppl a)static booleanisNot(openllet.aterm.ATermAppl a)static booleanisOneOf(openllet.aterm.ATermAppl a)static booleanisOr(openllet.aterm.ATermAppl a)static booleanisPrimitive(openllet.aterm.ATermAppl c)static booleanisPrimitiveOrNegated(openllet.aterm.ATermAppl c)static booleanisPropertyAssertion(openllet.aterm.ATermAppl a)static booleanisRestrictedDatatype(openllet.aterm.ATermAppl term)static booleanisSelf(openllet.aterm.ATermAppl a)static booleanisSet(openllet.aterm.ATermList list)static booleanisSomeValues(openllet.aterm.ATermAppl a)static booleanisTop(openllet.aterm.ATermAppl a)static booleanisTransitiveChain(openllet.aterm.ATermList chain, openllet.aterm.ATerm r)static booleanisTypeAssertion(openllet.aterm.ATermAppl a)static booleanisVar(openllet.aterm.ATermAppl a)static java.util.Set<openllet.aterm.ATermAppl>listToSet(openllet.aterm.ATermList list)static openllet.aterm.ATermApplmakeAllDifferent(openllet.aterm.ATermList list)static openllet.aterm.ATermApplmakeAllValues(openllet.aterm.ATerm r, openllet.aterm.ATerm c)static openllet.aterm.ATermApplmakeAnd(openllet.aterm.ATermList list)static openllet.aterm.ATermApplmakeAnd(openllet.aterm.ATerm c1, openllet.aterm.ATerm c2)static openllet.aterm.ATermApplmakeAnon(int id)static openllet.aterm.ATermApplmakeAnonNominal(int id)static openllet.aterm.ATermApplmakeAntisymmetric(openllet.aterm.ATerm r)Deprecated.static openllet.aterm.ATermApplmakeAsymmetric(openllet.aterm.ATerm r)static openllet.aterm.ATermApplmakeBnode(java.lang.String id)static openllet.aterm.ATermApplmakeBuiltinAtom(openllet.aterm.ATermAppl[] args)static openllet.aterm.ATermApplmakeCard(openllet.aterm.ATerm r, int n, openllet.aterm.ATerm c)static openllet.aterm.ATermApplmakeComplement(openllet.aterm.ATerm a, openllet.aterm.ATerm b)static openllet.aterm.ATermApplmakeDatatypeDefinition(openllet.aterm.ATermAppl datatype, openllet.aterm.ATermAppl definition)static openllet.aterm.ATermApplmakeDifferent(openllet.aterm.ATerm a, openllet.aterm.ATerm b)static openllet.aterm.ATermApplmakeDisjoint(openllet.aterm.ATerm a, openllet.aterm.ATerm b)static openllet.aterm.ATermApplmakeDisjointProperties(openllet.aterm.ATermList list)static openllet.aterm.ATermApplmakeDisjointProperty(openllet.aterm.ATerm a, openllet.aterm.ATerm b)static openllet.aterm.ATermApplmakeDisjoints(openllet.aterm.ATermList list)static openllet.aterm.ATermApplmakeDisplayCard(openllet.aterm.ATerm r, int n, openllet.aterm.ATerm c)static openllet.aterm.ATermApplmakeDisplayMax(openllet.aterm.ATerm r, int n, openllet.aterm.ATerm c)static openllet.aterm.ATermApplmakeDisplayMin(openllet.aterm.ATerm r, int n, openllet.aterm.ATerm c)static openllet.aterm.ATermApplmakeDomain(openllet.aterm.ATerm r, openllet.aterm.ATerm c)static openllet.aterm.ATermApplmakeEqClasses(openllet.aterm.ATerm a, openllet.aterm.ATerm b)static openllet.aterm.ATermApplmakeEqProp(openllet.aterm.ATerm r, openllet.aterm.ATerm s)static openllet.aterm.ATermApplmakeExactCard(openllet.aterm.ATerm r, int n, openllet.aterm.ATerm c)static openllet.aterm.ATermApplmakeExactCard(openllet.aterm.ATerm r, openllet.aterm.ATermInt n, openllet.aterm.ATerm c)static openllet.aterm.ATermApplmakeFacetRestriction(openllet.aterm.ATermAppl facetName, openllet.aterm.ATermAppl facetValue)static openllet.aterm.ATermApplmakeFunctional(openllet.aterm.ATerm a)static openllet.aterm.ATermApplmakeHasValue(openllet.aterm.ATerm r, openllet.aterm.ATerm ind)static openllet.aterm.ATermApplmakeInv(openllet.aterm.ATermAppl r)static openllet.aterm.ATermApplmakeInverseFunctional(openllet.aterm.ATerm a)static openllet.aterm.ATermApplmakeInvProp(openllet.aterm.ATerm r, openllet.aterm.ATerm s)static openllet.aterm.ATermApplmakeIrreflexive(openllet.aterm.ATerm r)static openllet.aterm.ATermListmakeList(java.util.Collection<openllet.aterm.ATermAppl> set)static openllet.aterm.ATermListmakeList(openllet.aterm.ATerm singleton)static openllet.aterm.ATermListmakeList(openllet.aterm.ATerm[] aTerms)static openllet.aterm.ATermListmakeList(openllet.aterm.ATerm first, openllet.aterm.ATermList rest)static openllet.aterm.ATermApplmakeLiteral(openllet.aterm.ATermAppl name)static openllet.aterm.ATermApplmakeMax(openllet.aterm.ATerm r, int n, openllet.aterm.ATerm c)static openllet.aterm.ATermApplmakeMax(openllet.aterm.ATerm r, openllet.aterm.ATermInt n, openllet.aterm.ATerm c)static openllet.aterm.ATermApplmakeMin(openllet.aterm.ATerm r, int n, openllet.aterm.ATerm c)static openllet.aterm.ATermApplmakeMin(openllet.aterm.ATerm r, openllet.aterm.ATermInt n, openllet.aterm.ATerm c)static openllet.aterm.ATermApplmakeNormalizedMax(openllet.aterm.ATermAppl r, int n, openllet.aterm.ATermAppl c)static openllet.aterm.ATermApplmakeNot(openllet.aterm.ATerm c)static openllet.aterm.ATermApplmakeOr(openllet.aterm.ATermAppl c1, openllet.aterm.ATermAppl c2)static openllet.aterm.ATermApplmakeOr(openllet.aterm.ATermList list)static openllet.aterm.ATermApplmakePlainLiteral(java.lang.String value)static openllet.aterm.ATermApplmakePlainLiteral(java.lang.String value, java.lang.String lang)static openllet.aterm.ATermApplmakePropAtom(openllet.aterm.ATermAppl p, openllet.aterm.ATermAppl s, openllet.aterm.ATermAppl o)static openllet.aterm.ATermApplmakeRange(openllet.aterm.ATerm r, openllet.aterm.ATerm c)static openllet.aterm.ATermApplmakeReflexive(openllet.aterm.ATerm r)static openllet.aterm.ATermApplmakeRestrictedDatatype(openllet.aterm.ATermAppl baseDatatype, openllet.aterm.ATermAppl[] restrictions)static openllet.aterm.ATermApplmakeRule(openllet.aterm.ATermAppl[] head, openllet.aterm.ATermAppl[] body)static openllet.aterm.ATermApplmakeRule(openllet.aterm.ATermAppl name, openllet.aterm.ATermAppl[] head, openllet.aterm.ATermAppl[] body)static openllet.aterm.ATermApplmakeSameAs(openllet.aterm.ATerm a, openllet.aterm.ATerm b)static openllet.aterm.ATermApplmakeSelf(openllet.aterm.ATermAppl r)static openllet.aterm.ATermApplmakeSimplifiedAnd(java.util.Collection<openllet.aterm.ATermAppl> conjuncts)static openllet.aterm.ATermApplmakeSomeValues(openllet.aterm.ATerm r, openllet.aterm.ATerm c)static openllet.aterm.ATermApplmakeStringLiteral(java.lang.String value)static openllet.aterm.ATermApplmakeSub(openllet.aterm.ATerm a, openllet.aterm.ATerm b)static openllet.aterm.ATermApplmakeSubProp(openllet.aterm.ATerm r, openllet.aterm.ATerm s)static openllet.aterm.ATermApplmakeSymmetric(openllet.aterm.ATerm r)static openllet.aterm.ATermApplmakeTermAppl(java.lang.String name)static openllet.aterm.ATermApplmakeTermAppl(openllet.aterm.AFun fun, openllet.aterm.ATerm[] args)static openllet.aterm.ATermApplmakeTransitive(openllet.aterm.ATerm r)static openllet.aterm.ATermApplmakeTypeAtom(openllet.aterm.ATermAppl ind, openllet.aterm.ATermAppl c)static openllet.aterm.ATermApplmakeTypedLiteral(java.lang.String value, java.lang.String dt)static openllet.aterm.ATermApplmakeTypedLiteral(java.lang.String value, openllet.aterm.ATermAppl dt)static openllet.aterm.ATermApplmakeTypedPlainLangLiteral(java.lang.String value, java.lang.String lang)static openllet.aterm.ATermApplmakeValue(openllet.aterm.ATerm c)static openllet.aterm.ATermApplmakeVar(java.lang.String name)static openllet.aterm.ATermApplmakeVar(openllet.aterm.ATermAppl name)static booleanmember(openllet.aterm.ATerm a, openllet.aterm.ATermList list)static openllet.aterm.ATermApplnegate(openllet.aterm.ATermAppl a)static openllet.aterm.ATermListnegate(openllet.aterm.ATermList list)static openllet.aterm.ATermnnf(openllet.aterm.ATerm term)static openllet.aterm.ATermApplnnf(openllet.aterm.ATermAppl term)static openllet.aterm.ATermListnnf(openllet.aterm.ATermList list)static java.util.Collection<openllet.aterm.ATermAppl>normalize(java.util.Collection<openllet.aterm.ATermAppl> terms)static openllet.aterm.ATermApplnormalize(openllet.aterm.ATermAppl term)Normalize the term by making following changes: or([a1, a2,..., an]) -> not(and[not(a1), not(a2), ..., not(an)]]) some(p, c) -> all(p, not(c)) max(p, n) -> not(min(p, n+1))static openllet.aterm.ATermListnormalize(openllet.aterm.ATermList list)static java.util.Collection<openllet.aterm.ATermAppl>primitiveOrBottom(java.util.Collection<openllet.aterm.ATermAppl> collection)static java.util.Set<openllet.aterm.ATermAppl>primitiveOrBottom(java.util.Set<openllet.aterm.ATermAppl> collection)static openllet.aterm.ATermApplsimplify(openllet.aterm.ATermAppl term)Simplify the term by making following changes: and([]) -> TOP all(p, TOP) -> TOP min(p, 0) -> TOP and([a1, and([a2,...static openllet.aterm.ATermterm(java.lang.String str)static openllet.aterm.ATermAppl[]toArray(openllet.aterm.ATermList list)static openllet.aterm.ATermListtoSet(java.util.Collection<openllet.aterm.ATermAppl> terms)static openllet.aterm.ATermListtoSet(openllet.aterm.ATerm[] a, int size)static openllet.aterm.ATermListtoSet(openllet.aterm.ATermList list)static java.lang.StringtoString(java.util.Collection<openllet.aterm.ATermAppl> terms)Return the string representations of the terms in a collection.static java.lang.StringtoString(openllet.aterm.ATermAppl term)Return a string representation of the term which might be representing a named term, literal, variable or a complex concept expression.static java.lang.StringtoString(openllet.aterm.ATermAppl term, boolean printLocalName, boolean printNNF)Return a string representation of the term which might be representing a named term, literal, variable or a complex concept expression.
-
-
-
Field Detail
-
LITFUN
public static final openllet.aterm.AFun LITFUN
-
LIT_VAL_INDEX
public static final int LIT_VAL_INDEX
- See Also:
- Constant Field Values
-
LIT_LANG_INDEX
public static final int LIT_LANG_INDEX
- See Also:
- Constant Field Values
-
LIT_URI_INDEX
public static final int LIT_URI_INDEX
- See Also:
- Constant Field Values
-
ANDFUN
public static final openllet.aterm.AFun ANDFUN
-
ORFUN
public static final openllet.aterm.AFun ORFUN
-
SOMEFUN
public static final openllet.aterm.AFun SOMEFUN
-
ALLFUN
public static final openllet.aterm.AFun ALLFUN
-
NOTFUN
public static final openllet.aterm.AFun NOTFUN
-
MAXFUN
public static final openllet.aterm.AFun MAXFUN
-
MINFUN
public static final openllet.aterm.AFun MINFUN
-
VALUEFUN
public static final openllet.aterm.AFun VALUEFUN
-
SELFFUN
public static final openllet.aterm.AFun SELFFUN
-
CARDFUN
public static final openllet.aterm.AFun CARDFUN
This is not used in the reasoner but kept here to be used for display
-
CLASS_FUN
public static java.util.Set<openllet.aterm.AFun> CLASS_FUN
-
INVFUN
public static final openllet.aterm.AFun INVFUN
-
SUBFUN
public static final openllet.aterm.AFun SUBFUN
-
EQCLASSFUN
public static final openllet.aterm.AFun EQCLASSFUN
-
SAMEASFUN
public static final openllet.aterm.AFun SAMEASFUN
-
DISJOINTFUN
public static final openllet.aterm.AFun DISJOINTFUN
-
DISJOINTSFUN
public static final openllet.aterm.AFun DISJOINTSFUN
-
DISJOINTPROPFUN
public static final openllet.aterm.AFun DISJOINTPROPFUN
-
DISJOINTPROPSFUN
public static final openllet.aterm.AFun DISJOINTPROPSFUN
-
COMPLEMENTFUN
public static final openllet.aterm.AFun COMPLEMENTFUN
-
VARFUN
public static final openllet.aterm.AFun VARFUN
This is used to represent variables in queries
-
TYPEFUN
public static final openllet.aterm.AFun TYPEFUN
-
PROPFUN
public static final openllet.aterm.AFun PROPFUN
-
DIFFERENTFUN
public static final openllet.aterm.AFun DIFFERENTFUN
Added for explanations
-
ALLDIFFERENTFUN
public static final openllet.aterm.AFun ALLDIFFERENTFUN
-
ASYMMETRICFUN
public static final openllet.aterm.AFun ASYMMETRICFUN
-
ANTISYMMETRICFUN
@Deprecated public static final openllet.aterm.AFun ANTISYMMETRICFUN
Deprecated.UseASYMMETRICFUN
-
FUNCTIONALFUN
public static final openllet.aterm.AFun FUNCTIONALFUN
-
INVFUNCTIONALFUN
public static final openllet.aterm.AFun INVFUNCTIONALFUN
-
IRREFLEXIVEFUN
public static final openllet.aterm.AFun IRREFLEXIVEFUN
-
REFLEXIVEFUN
public static final openllet.aterm.AFun REFLEXIVEFUN
-
SYMMETRICFUN
public static final openllet.aterm.AFun SYMMETRICFUN
-
TRANSITIVEFUN
public static final openllet.aterm.AFun TRANSITIVEFUN
-
SUBPROPFUN
public static final openllet.aterm.AFun SUBPROPFUN
-
EQPROPFUN
public static final openllet.aterm.AFun EQPROPFUN
-
INVPROPFUN
public static final openllet.aterm.AFun INVPROPFUN
-
DOMAINFUN
public static final openllet.aterm.AFun DOMAINFUN
-
RANGEFUN
public static final openllet.aterm.AFun RANGEFUN
-
RULEFUN
public static final openllet.aterm.AFun RULEFUN
-
BUILTINFUN
public static final openllet.aterm.AFun BUILTINFUN
-
DATATYPEDEFFUN
public static final openllet.aterm.AFun DATATYPEDEFFUN
-
RESTRDATATYPEFUN
public static final openllet.aterm.AFun RESTRDATATYPEFUN
-
FACET
public static final openllet.aterm.AFun FACET
-
EMPTY
public static final openllet.aterm.ATermAppl EMPTY
-
EMPTY_LIST
public static final openllet.aterm.ATermList EMPTY_LIST
-
AXIOM_FUN
public static java.util.Set<openllet.aterm.AFun> AXIOM_FUN
Set of all axiom functors used in explanations
-
TOP
public static final openllet.aterm.ATermAppl TOP
-
BOTTOM
public static final openllet.aterm.ATermAppl BOTTOM
-
TOP_OBJECT_PROPERTY
public static final openllet.aterm.ATermAppl TOP_OBJECT_PROPERTY
-
TOP_DATA_PROPERTY
public static final openllet.aterm.ATermAppl TOP_DATA_PROPERTY
-
BOTTOM_OBJECT_PROPERTY
public static final openllet.aterm.ATermAppl BOTTOM_OBJECT_PROPERTY
-
BOTTOM_DATA_PROPERTY
public static final openllet.aterm.ATermAppl BOTTOM_DATA_PROPERTY
-
TOP_LIT
public static final openllet.aterm.ATermAppl TOP_LIT
-
BOTTOM_LIT
public static final openllet.aterm.ATermAppl BOTTOM_LIT
-
CONCEPT_SAT_IND
public static final openllet.aterm.ATermAppl CONCEPT_SAT_IND
-
ONE
public static final openllet.aterm.ATermInt ONE
-
LITERAL_STRING
public static final openllet.aterm.ATermAppl LITERAL_STRING
-
PLAIN_LITERAL_DATATYPE
public static final openllet.aterm.ATermAppl PLAIN_LITERAL_DATATYPE
-
qnames
public static QNameProvider qnames
-
NO_DATATYPE
public static openllet.aterm.ATermAppl NO_DATATYPE
-
BNODE_FUN
public static final openllet.aterm.AFun BNODE_FUN
-
ANON_FUN
public static final openllet.aterm.AFun ANON_FUN
-
ANON_NOMINAL_FUN
public static final openllet.aterm.AFun ANON_NOMINAL_FUN
-
-
Method Detail
-
getFactory
public static openllet.aterm.ATermFactory getFactory()
-
makeTypeAtom
public static final openllet.aterm.ATermAppl makeTypeAtom(openllet.aterm.ATermAppl ind, openllet.aterm.ATermAppl c)
-
makePropAtom
public static final openllet.aterm.ATermAppl makePropAtom(openllet.aterm.ATermAppl p, openllet.aterm.ATermAppl s, openllet.aterm.ATermAppl o)
-
makeStringLiteral
public static openllet.aterm.ATermAppl makeStringLiteral(java.lang.String value)
-
makePlainLiteral
public static openllet.aterm.ATermAppl makePlainLiteral(java.lang.String value)
-
makePlainLiteral
public static openllet.aterm.ATermAppl makePlainLiteral(java.lang.String value, java.lang.String lang)
-
makeTypedLiteral
public static openllet.aterm.ATermAppl makeTypedLiteral(java.lang.String value, openllet.aterm.ATermAppl dt)
-
makeTypedLiteral
public static openllet.aterm.ATermAppl makeTypedLiteral(java.lang.String value, java.lang.String dt)
-
makeTypedPlainLangLiteral
public static openllet.aterm.ATermAppl makeTypedPlainLangLiteral(java.lang.String value, java.lang.String lang)
-
makeLiteral
public static openllet.aterm.ATermAppl makeLiteral(openllet.aterm.ATermAppl name)
-
getLiteralValue
public static java.lang.String getLiteralValue(openllet.aterm.ATermAppl literal)
-
getLiteralLang
public static java.lang.String getLiteralLang(openllet.aterm.ATermAppl literal)
-
getLiteralDatatype
public static java.lang.String getLiteralDatatype(openllet.aterm.ATermAppl literal)
-
makeTermAppl
public static openllet.aterm.ATermAppl makeTermAppl(java.lang.String name)
-
makeTermAppl
public static openllet.aterm.ATermAppl makeTermAppl(openllet.aterm.AFun fun, openllet.aterm.ATerm[] args)
-
makeNot
public static openllet.aterm.ATermAppl makeNot(openllet.aterm.ATerm c)
-
term
public static openllet.aterm.ATerm term(java.lang.String str)
-
negate
public static openllet.aterm.ATermList negate(openllet.aterm.ATermList list)
-
negate
public static final openllet.aterm.ATermAppl negate(openllet.aterm.ATermAppl a)
-
isAnonNominal
public static final boolean isAnonNominal(openllet.aterm.ATermAppl term)
-
makeAnonNominal
public static final openllet.aterm.ATermAppl makeAnonNominal(int id)
-
makeAnon
public static final openllet.aterm.ATermAppl makeAnon(int id)
-
makeBnode
public static final openllet.aterm.ATermAppl makeBnode(java.lang.String id)
-
makeVar
public static final openllet.aterm.ATermAppl makeVar(java.lang.String name)
-
makeVar
public static final openllet.aterm.ATermAppl makeVar(openllet.aterm.ATermAppl name)
-
makeValue
public static final openllet.aterm.ATermAppl makeValue(openllet.aterm.ATerm c)
-
makeInv
public static final openllet.aterm.ATermAppl makeInv(openllet.aterm.ATermAppl r)
-
makeInvProp
public static final openllet.aterm.ATermAppl makeInvProp(openllet.aterm.ATerm r, openllet.aterm.ATerm s)
-
makeSub
public static final openllet.aterm.ATermAppl makeSub(openllet.aterm.ATerm a, openllet.aterm.ATerm b)
-
makeEqClasses
public static final openllet.aterm.ATermAppl makeEqClasses(openllet.aterm.ATerm a, openllet.aterm.ATerm b)
-
makeSameAs
public static final openllet.aterm.ATermAppl makeSameAs(openllet.aterm.ATerm a, openllet.aterm.ATerm b)
-
makeSubProp
public static final openllet.aterm.ATermAppl makeSubProp(openllet.aterm.ATerm r, openllet.aterm.ATerm s)
-
makeEqProp
public static final openllet.aterm.ATermAppl makeEqProp(openllet.aterm.ATerm r, openllet.aterm.ATerm s)
-
makeDomain
public static final openllet.aterm.ATermAppl makeDomain(openllet.aterm.ATerm r, openllet.aterm.ATerm c)
-
makeRange
public static final openllet.aterm.ATermAppl makeRange(openllet.aterm.ATerm r, openllet.aterm.ATerm c)
-
makeComplement
public static final openllet.aterm.ATermAppl makeComplement(openllet.aterm.ATerm a, openllet.aterm.ATerm b)
-
makeDisjoint
public static final openllet.aterm.ATermAppl makeDisjoint(openllet.aterm.ATerm a, openllet.aterm.ATerm b)
-
makeDisjoints
public static final openllet.aterm.ATermAppl makeDisjoints(openllet.aterm.ATermList list)
-
makeDisjointProperty
public static final openllet.aterm.ATermAppl makeDisjointProperty(openllet.aterm.ATerm a, openllet.aterm.ATerm b)
-
makeDisjointProperties
public static final openllet.aterm.ATermAppl makeDisjointProperties(openllet.aterm.ATermList list)
-
makeDifferent
public static final openllet.aterm.ATermAppl makeDifferent(openllet.aterm.ATerm a, openllet.aterm.ATerm b)
-
makeAllDifferent
public static final openllet.aterm.ATermAppl makeAllDifferent(openllet.aterm.ATermList list)
-
makeAsymmetric
public static final openllet.aterm.ATermAppl makeAsymmetric(openllet.aterm.ATerm r)
-
makeAntisymmetric
@Deprecated public static final openllet.aterm.ATermAppl makeAntisymmetric(openllet.aterm.ATerm r)
Deprecated.- Parameters:
r-- Returns:
- DO NOT USE
-
makeFunctional
public static final openllet.aterm.ATermAppl makeFunctional(openllet.aterm.ATerm a)
-
makeInverseFunctional
public static final openllet.aterm.ATermAppl makeInverseFunctional(openllet.aterm.ATerm a)
-
makeIrreflexive
public static final openllet.aterm.ATermAppl makeIrreflexive(openllet.aterm.ATerm r)
-
makeReflexive
public static final openllet.aterm.ATermAppl makeReflexive(openllet.aterm.ATerm r)
-
makeSymmetric
public static final openllet.aterm.ATermAppl makeSymmetric(openllet.aterm.ATerm r)
-
makeTransitive
public static final openllet.aterm.ATermAppl makeTransitive(openllet.aterm.ATerm r)
-
makeAnd
public static final openllet.aterm.ATermAppl makeAnd(openllet.aterm.ATerm c1, openllet.aterm.ATerm c2)
-
makeAnd
public static openllet.aterm.ATermAppl makeAnd(openllet.aterm.ATermList list)
-
makeOr
public static final openllet.aterm.ATermAppl makeOr(openllet.aterm.ATermAppl c1, openllet.aterm.ATermAppl c2)
-
makeOr
public static openllet.aterm.ATermAppl makeOr(openllet.aterm.ATermList list)
-
makeAllValues
public static final openllet.aterm.ATermAppl makeAllValues(openllet.aterm.ATerm r, openllet.aterm.ATerm c)
-
makeSomeValues
public static final openllet.aterm.ATermAppl makeSomeValues(openllet.aterm.ATerm r, openllet.aterm.ATerm c)
-
makeSelf
public static final openllet.aterm.ATermAppl makeSelf(openllet.aterm.ATermAppl r)
-
makeHasValue
public static final openllet.aterm.ATermAppl makeHasValue(openllet.aterm.ATerm r, openllet.aterm.ATerm ind)
-
makeNormalizedMax
public static final openllet.aterm.ATermAppl makeNormalizedMax(openllet.aterm.ATermAppl r, int n, openllet.aterm.ATermAppl c)
-
makeMax
public static final openllet.aterm.ATermAppl makeMax(openllet.aterm.ATerm r, int n, openllet.aterm.ATerm c)
-
makeMax
public static final openllet.aterm.ATermAppl makeMax(openllet.aterm.ATerm r, openllet.aterm.ATermInt n, openllet.aterm.ATerm c)
-
makeMin
public static final openllet.aterm.ATermAppl makeMin(openllet.aterm.ATerm r, int n, openllet.aterm.ATerm c)
-
makeMin
public static final openllet.aterm.ATermAppl makeMin(openllet.aterm.ATerm r, openllet.aterm.ATermInt n, openllet.aterm.ATerm c)
-
makeDisplayCard
public static final openllet.aterm.ATermAppl makeDisplayCard(openllet.aterm.ATerm r, int n, openllet.aterm.ATerm c)
-
makeDisplayMax
public static final openllet.aterm.ATermAppl makeDisplayMax(openllet.aterm.ATerm r, int n, openllet.aterm.ATerm c)
-
makeDisplayMin
public static final openllet.aterm.ATermAppl makeDisplayMin(openllet.aterm.ATerm r, int n, openllet.aterm.ATerm c)
-
makeCard
public static final openllet.aterm.ATermAppl makeCard(openllet.aterm.ATerm r, int n, openllet.aterm.ATerm c)
-
makeExactCard
public static final openllet.aterm.ATermAppl makeExactCard(openllet.aterm.ATerm r, int n, openllet.aterm.ATerm c)
-
makeExactCard
public static final openllet.aterm.ATermAppl makeExactCard(openllet.aterm.ATerm r, openllet.aterm.ATermInt n, openllet.aterm.ATerm c)
-
makeFacetRestriction
public static final openllet.aterm.ATermAppl makeFacetRestriction(openllet.aterm.ATermAppl facetName, openllet.aterm.ATermAppl facetValue)
-
makeRestrictedDatatype
public static final openllet.aterm.ATermAppl makeRestrictedDatatype(openllet.aterm.ATermAppl baseDatatype, openllet.aterm.ATermAppl[] restrictions)
-
makeDatatypeDefinition
public static final openllet.aterm.ATermAppl makeDatatypeDefinition(openllet.aterm.ATermAppl datatype, openllet.aterm.ATermAppl definition)
-
isRestrictedDatatype
public static final boolean isRestrictedDatatype(openllet.aterm.ATermAppl term)
-
makeList
public static final openllet.aterm.ATermList makeList(openllet.aterm.ATerm singleton)
-
makeList
public static final openllet.aterm.ATermList makeList(openllet.aterm.ATerm first, openllet.aterm.ATermList rest)
-
makeList
public static openllet.aterm.ATermList makeList(java.util.Collection<openllet.aterm.ATermAppl> set)
-
makeList
public static final openllet.aterm.ATermList makeList(openllet.aterm.ATerm[] aTerms)
-
member
public static final boolean member(openllet.aterm.ATerm a, openllet.aterm.ATermList list)
-
isSet
public static boolean isSet(openllet.aterm.ATermList list)
-
toSet
public static openllet.aterm.ATermList toSet(openllet.aterm.ATermList list)
-
toSet
public static openllet.aterm.ATermList toSet(openllet.aterm.ATerm[] a, int size)
-
toSet
public static openllet.aterm.ATermList toSet(java.util.Collection<openllet.aterm.ATermAppl> terms)
-
toString
public static java.lang.String toString(java.util.Collection<openllet.aterm.ATermAppl> terms)
Return the string representations of the terms in a collection. For each element of the collectiontoString(ATermAppl)function will be called to create the string representation.- Parameters:
terms- a collection of terms- Returns:
- string representation of the terms
-
toString
public static java.lang.String toString(openllet.aterm.ATermAppl term)
Return a string representation of the term which might be representing a named term, literal, variable or a complex concept expression. The URIs used in the term will be shortened into local names. The concept expressions are printed in NNF format.- Parameters:
term- term whose string representation we are creating- Returns:
- string representation of the term
-
toString
public static java.lang.String toString(openllet.aterm.ATermAppl term, boolean printLocalName, boolean printNNF)Return a string representation of the term which might be representing a named term, literal, variable or a complex concept expression. The URIs used in the term can be shortened into local names. The concept expressions can be printed in NNF format.- Parameters:
term- whose string representation we are creatingprintLocalName- the name of the termprintNNF- true to use the NNF Format- Returns:
- string representation of the term
-
toArray
public static openllet.aterm.ATermAppl[] toArray(openllet.aterm.ATermList list)
-
assertTrue
public static final void assertTrue(boolean condition)
-
isPrimitive
public static final boolean isPrimitive(openllet.aterm.ATermAppl c)
-
isNegatedPrimitive
public static final boolean isNegatedPrimitive(openllet.aterm.ATermAppl c)
-
isPrimitiveOrNegated
public static final boolean isPrimitiveOrNegated(openllet.aterm.ATermAppl c)
-
isBnode
public static final boolean isBnode(openllet.aterm.ATermAppl name)
-
isAnon
public static final boolean isAnon(openllet.aterm.ATermAppl term)
-
isBuiltinProperty
public static final boolean isBuiltinProperty(openllet.aterm.ATermAppl name)
-
listToSet
public static java.util.Set<openllet.aterm.ATermAppl> listToSet(openllet.aterm.ATermList list)
-
getPrimitives
public static java.util.Set<openllet.aterm.ATermAppl> getPrimitives(openllet.aterm.ATermList list)
-
getTop
public static final openllet.aterm.ATermAppl getTop(Role r)
-
isTop
public static final boolean isTop(openllet.aterm.ATermAppl a)
-
isBottom
public static final boolean isBottom(openllet.aterm.ATermAppl a)
-
isInv
public static final boolean isInv(openllet.aterm.ATermAppl r)
-
isAnd
public static final boolean isAnd(openllet.aterm.ATermAppl a)
-
isOr
public static final boolean isOr(openllet.aterm.ATermAppl a)
-
isAllValues
public static final boolean isAllValues(openllet.aterm.ATermAppl a)
-
isSomeValues
public static final boolean isSomeValues(openllet.aterm.ATermAppl a)
-
isSelf
public static final boolean isSelf(openllet.aterm.ATermAppl a)
-
isHasValue
public static final boolean isHasValue(openllet.aterm.ATermAppl a)
-
isNominal
public static final boolean isNominal(openllet.aterm.ATermAppl a)
-
isOneOf
public static final boolean isOneOf(openllet.aterm.ATermAppl a)
-
isDataRange
public static final boolean isDataRange(openllet.aterm.ATermAppl a)
-
isNot
public static final boolean isNot(openllet.aterm.ATermAppl a)
-
isMax
public static final boolean isMax(openllet.aterm.ATermAppl a)
-
isMin
public static final boolean isMin(openllet.aterm.ATermAppl a)
-
isCard
public static final boolean isCard(openllet.aterm.ATermAppl a)
-
isLiteral
public static final boolean isLiteral(openllet.aterm.ATermAppl a)
-
isVar
public static final boolean isVar(openllet.aterm.ATermAppl a)
-
isTransitiveChain
public static final boolean isTransitiveChain(openllet.aterm.ATermList chain, openllet.aterm.ATerm r)
-
isComplexClass
public static boolean isComplexClass(openllet.aterm.ATerm c)
-
isPropertyAssertion
public static final boolean isPropertyAssertion(openllet.aterm.ATermAppl a)
-
isTypeAssertion
public static final boolean isTypeAssertion(openllet.aterm.ATermAppl a)
-
nnf
public static openllet.aterm.ATerm nnf(openllet.aterm.ATerm term)
-
nnf
public static openllet.aterm.ATermList nnf(openllet.aterm.ATermList list)
-
nnf
public static openllet.aterm.ATermAppl nnf(openllet.aterm.ATermAppl term)
-
normalize
public static java.util.Collection<openllet.aterm.ATermAppl> normalize(java.util.Collection<openllet.aterm.ATermAppl> terms)
-
normalize
public static openllet.aterm.ATermList normalize(openllet.aterm.ATermList list)
-
normalize
public static openllet.aterm.ATermAppl normalize(openllet.aterm.ATermAppl term)
Normalize the term by making following changes:- or([a1, a2,..., an]) -> not(and[not(a1), not(a2), ..., not(an)]])
- some(p, c) -> all(p, not(c))
- max(p, n) -> not(min(p, n+1))
- Parameters:
term-- Returns:
- the term normalized
-
simplify
public static openllet.aterm.ATermAppl simplify(openllet.aterm.ATermAppl term)
Simplify the term by making following changes:- and([]) -> TOP
- all(p, TOP) -> TOP
- min(p, 0) -> TOP
- and([a1, and([a2,...,an])]) -> and([a1, a2, ..., an]))
- and([a, not(a), ...]) -> BOTTOM
- not(C) -> not(simplify(C))
- Parameters:
term-- Returns:
- the term simplified
-
makeSimplifiedAnd
public static openllet.aterm.ATermAppl makeSimplifiedAnd(java.util.Collection<openllet.aterm.ATermAppl> conjuncts)
- Parameters:
conjuncts-- Returns:
- a simplified and assuming that all the elements have already been normalized.
-
findPrimitives
public static java.util.Set<openllet.aterm.ATermAppl> findPrimitives(openllet.aterm.ATermAppl term)
-
findPrimitives
public static java.util.Set<openllet.aterm.ATermAppl> findPrimitives(openllet.aterm.ATermAppl term, boolean skipRestrictions, boolean skipTopLevel)
-
findPrimitives
public static void findPrimitives(openllet.aterm.ATermAppl term, java.util.Set<openllet.aterm.ATermAppl> primitives)
-
findPrimitives
public static void findPrimitives(openllet.aterm.ATermAppl term, java.util.Set<openllet.aterm.ATermAppl> primitives, boolean skipRestrictions, boolean skipTopLevel)
-
primitiveOrBottom
public static java.util.Collection<openllet.aterm.ATermAppl> primitiveOrBottom(java.util.Collection<openllet.aterm.ATermAppl> collection)
-
primitiveOrBottom
public static java.util.Set<openllet.aterm.ATermAppl> primitiveOrBottom(java.util.Set<openllet.aterm.ATermAppl> collection)
-
makeRule
public static openllet.aterm.ATermAppl makeRule(openllet.aterm.ATermAppl[] head, openllet.aterm.ATermAppl[] body)
-
makeRule
public static openllet.aterm.ATermAppl makeRule(openllet.aterm.ATermAppl name, openllet.aterm.ATermAppl[] head, openllet.aterm.ATermAppl[] body)
-
makeBuiltinAtom
public static openllet.aterm.ATermAppl makeBuiltinAtom(openllet.aterm.ATermAppl[] args)
-
-