Class AbstractAxiomDescriptor

java.lang.Object
cz.cvut.kbss.ontodriver.descriptor.AbstractAxiomDescriptor
Direct Known Subclasses:
AxiomDescriptor, AxiomValueDescriptor

public abstract class AbstractAxiomDescriptor extends Object
Defines common API for axiom descriptors.
  • Constructor Details

    • AbstractAxiomDescriptor

      protected AbstractAxiomDescriptor(NamedResource subject)
  • Method Details

    • getSubject

      public NamedResource getSubject()
    • getAssertions

      public abstract Set<Assertion> getAssertions()
      Gets the set of assertions in this descriptor.
      Returns:
      Set of assertions
    • containsAssertion

      public abstract boolean containsAssertion(Assertion assertion)
      Checks whether this descriptor contains the specified assertion.
      Parameters:
      assertion - Assertion to look for
      Returns:
      boolean result
    • getSubjectContexts

      public abstract Set<URI> getSubjectContexts()
      Gets the set of repository context identifiers in which this descriptor's subject may be.

      The contract of this method is as follows: it must not return null, if the the subject is in the default context, an empty set is returned.

      Returns:
      Set of context identifiers
    • getAssertionContexts

      public abstract Set<URI> getAssertionContexts(Assertion assertion)
      Gets the set of repository context identifiers in which the specified assertion values may be.

      If no context was explicitly set, the same contexts as the subject's are returned. An empty result indicates that the default context should be used.

      Returns:
      Set of context identifiers
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object