Class DlInterpretation

  • All Implemented Interfaces:
    Iterable<AssertionalAxiom>, Collection<AssertionalAxiom>, net.sf.tweety.commons.Interpretation<DlBeliefSet,​DlAxiom>

    public class DlInterpretation
    extends net.sf.tweety.commons.InterpretationSet<AssertionalAxiom,​DlBeliefSet,​DlAxiom>
    This class models an interpretation for description logics. A DL interpretation consists of a domain (a set of individuals) and a mapping of each concept name to a subset of the domain and of each role name to a binary relation on the domain (the mapping is often referred to as the interpretation function in literature).
    Author:
    Anna Gessler
    • Constructor Detail

      • DlInterpretation

        public DlInterpretation​(Collection<AssertionalAxiom> assertions)
        Create a new DL interpretation with the given set of concept and role assertions that represent the mapping of concept names and role names to the domain.
        Parameters:
        assertions - collection of AssertionalAxiom
    • Method Detail

      • isSubsumedBy

        public boolean isSubsumedBy​(ComplexConcept c1,
                                    ComplexConcept c2)
        Checks whether a concept is subsumed by another concept (c1 => c2) wrt to this interpretation
        Parameters:
        c1 - a concept
        c2 - a concept
        Returns:
        "true" if c1 is subsumed by c2, "false" otherwise
      • getRoleDomain

        public Set<net.sf.tweety.commons.util.Pair<Individual,​Individual>> getRoleDomain​(AtomicRole r)
        Returns the subset of the domain that belongs to the given role (the extension of the role).
        Parameters:
        r - role
        Returns:
        binary subset of domain, i.e. a set of pairs of individuals
      • getConceptDomain

        public Set<Individual> getConceptDomain​(ComplexConcept c)
        Returns the subset of the domain that belongs to the given concept (the extension of the concept).
        Parameters:
        c - concept
        Returns:
        subset of domain, i.e. a set of individuals