Interface Query

All Known Subinterfaces:
ConjunctiveQuery, ConjunctiveQueryWithNegatedParts, UnionOfConjunctiveQueries
All Known Implementing Classes:
DefaultConjunctiveQuery, DefaultConjunctiveQueryWithNegatedParts, DefaultUnionOfConjunctiveQueries, RuleWrapper2ConjunctiveQueryWithNegatedParts

public interface Query
This interface represents a generic query.
Author:
Clément Sipieter (INRIA) <clement@6pi.fr>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Appends this object representation to the provided builder.
    Returns the query label.
    boolean
    Returns whether the query expects a boolean answer.
    void
    Sets the query label.
  • Method Details

    • isBoolean

      boolean isBoolean()
      Returns whether the query expects a boolean answer.
      Returns:
      true if the expected answer is boolean, false otherwise.
    • getLabel

      String getLabel()
      Returns the query label.
      Returns:
      the query label
    • setLabel

      void setLabel(String label)
      Sets the query label.
      Parameters:
      label - the new query label
    • appendTo

      void appendTo(StringBuilder sb)
      Appends this object representation to the provided builder.
      Parameters:
      sb - the target builder