Class RuleInfo

java.lang.Object
tech.oxfordsemantic.jrdfox.client.RuleInfo

public class RuleInfo
extends java.lang.Object
Encapsulates information about a rule in the data store.
  • Constructor Summary

    Constructors 
    Constructor Description
    RuleInfo​(Rule rule, boolean hasNegation, boolean hasAggregation, boolean addedInternally, boolean addedByUser, boolean addedByAxioms)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object that)  
    Rule getRule()
    Returns the rule in question.
    boolean hasAggregation()
    Returns true if the rule contains aggregation in the body.
    int hashCode()  
    boolean hasNegation()
    Returns true if the rule contains negation in the body.
    boolean isAddedByAxioms()
    Returns true if the rule has been added implicitly as a result of adding OWL axioms.
    boolean isAddedByUser()
    Returns true if the rule has been explicitly added by the user.
    boolean isAddedInternally()
    Returns true if the rule has been added internally by RDFox — that is, whether it has been added implicitly, rather than explicitly by the user.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RuleInfo

      public RuleInfo​(Rule rule, boolean hasNegation, boolean hasAggregation, boolean addedInternally, boolean addedByUser, boolean addedByAxioms)
  • Method Details

    • getRule

      public Rule getRule()
      Returns the rule in question.
      Returns:
      the rule in question
    • hasNegation

      public boolean hasNegation()
      Returns true if the rule contains negation in the body.
      Returns:
      true if the rule contains negation in the body
    • hasAggregation

      public boolean hasAggregation()
      Returns true if the rule contains aggregation in the body.
      Returns:
      true if the rule contains aggregation in the body
    • isAddedInternally

      public boolean isAddedInternally()
      Returns true if the rule has been added internally by RDFox — that is, whether it has been added implicitly, rather than explicitly by the user.
      Returns:
      true if the rule has been added internally by RDFox
    • isAddedByUser

      public boolean isAddedByUser()
      Returns true if the rule has been explicitly added by the user.
      Returns:
      true if the rule has been explicitly added by the user
    • isAddedByAxioms

      public boolean isAddedByAxioms()
      Returns true if the rule has been added implicitly as a result of adding OWL axioms.
      Returns:
      true if the rule has been added as a result of adding OWL axioms
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object that)
      Overrides:
      equals in class java.lang.Object