Class EquivalenceAxiom
java.lang.Object
org.tweetyproject.logics.dl.syntax.DlAxiom
org.tweetyproject.logics.dl.syntax.EquivalenceAxiom
- All Implemented Interfaces:
Formula
,SimpleLogicalFormula
This class models an equivalence axiom, also known as "general concept inclusion" (GCU),
meaning an expression of the form "C is a subset of or equal to D" where C and D are concepts.
This can also be read as "C implies D". If "C implies D" and "C implies C", then the
two concepts are equivalent.
Equivalence axioms are used in the TBox of a DL knowledge base to model relationships between concepts, e.g. "MaleHuman is a subset or equal to Human".
Equivalence axioms are used in the TBox of a DL knowledge base to model relationships between concepts, e.g. "MaleHuman is a subset or equal to Human".
- Author:
- Anna Gessler
-
Constructor Summary
ConstructorDescriptionCreates a new equivalence axiom with the given formulas (atomic or complex concepts). -
Method Summary
Methods inherited from class org.tweetyproject.logics.dl.syntax.DlAxiom
getAtoms, getPredicateCls
-
Constructor Details
-
EquivalenceAxiom
Creates a new equivalence axiom with the given formulas (atomic or complex concepts).- Parameters:
c
- some conceptd
- some concept
-
-
Method Details
-
getSignature
Description copied from interface:Formula
Returns the signature of the language of this formula.- Specified by:
getSignature
in interfaceFormula
- Specified by:
getSignature
in classDlAxiom
- Returns:
- the signature of the language of this formula.
-
toString
-
getFormulas
-
getPredicates
Description copied from interface:SimpleLogicalFormula
Processes the set of all predicates which appear in this formula- Specified by:
getPredicates
in interfaceSimpleLogicalFormula
- Specified by:
getPredicates
in classDlAxiom
- Returns:
- all predicates that appear in this formula
-
isLiteral
public boolean isLiteral()- Specified by:
isLiteral
in interfaceSimpleLogicalFormula
- Overrides:
isLiteral
in classDlAxiom
- Returns:
- true if the formula represents a literal in the language or false otherwise
-
clone
Description copied from interface:SimpleLogicalFormula
Creates a deep copy of this formula- Specified by:
clone
in interfaceSimpleLogicalFormula
- Specified by:
clone
in classDlAxiom
- Returns:
- the cloned formula
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceSimpleLogicalFormula
- Overrides:
hashCode
in classObject
-
equals
- Specified by:
equals
in interfaceSimpleLogicalFormula
- Overrides:
equals
in classObject
-