Interface QueryAnswerMonitor


public interface QueryAnswerMonitor
This callback interface can be passed to a DataStoreConnection along with a query to receive query answers as they are processed.
  • Method Details

    • queryAnswersStarted

      void queryAnswersStarted(Prefixes prefixes, String[] answerVariableNames) throws JRDFoxException
      Called at the start of query answering.
      Parameters:
      prefixes - the set of prefixes in the data store
      answerVariableNames - contains the names of the answer variables
      Throws:
      JRDFoxException - thrown if there is an error
    • processQueryAnswer

      void processQueryAnswer(List<ResourceValue> answer, long multiplicity) throws JRDFoxException
      Called for each query answer.
      Parameters:
      answer - the array of resource values that constitute the query answer
      multiplicity - specifies now many times answer should be counted
      Throws:
      JRDFoxException - thrown if there is an error
    • queryAnswersFinished

      void queryAnswersFinished() throws JRDFoxException
      Called after all query answers have been processed.
      Throws:
      JRDFoxException - thrown if there is an error