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 Summary

    Modifier and Type Method Description
    void processQueryAnswer​(java.util.List<tech.oxfordsemantic.jrdfox.logic.expression.Resource> answer, long multiplicity)
    Called for each query answer.
    void queryAnswersFinished()
    Called after all query answers have been processed.
    void queryAnswersStarted​(java.lang.String[] answerVariableNames)
    Called at the start of query answering.
  • Method Details

    • queryAnswersStarted

      void queryAnswersStarted​(java.lang.String[] answerVariableNames) throws JRDFoxException
      Called at the start of query answering.
      Parameters:
      answerVariableNames - contains the names of the answer variables
      Throws:
      JRDFoxException - thrown if there is an error
    • processQueryAnswer

      void processQueryAnswer​(java.util.List<tech.oxfordsemantic.jrdfox.logic.expression.Resource> answer, long multiplicity) throws JRDFoxException
      Called for each query answer.
      Parameters:
      answer - the array of terms 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