Class BackgroundGraphResult

All Implemented Interfaces:
AutoCloseable, Iterable<Statement>, Runnable, Iterator<Statement>, CloseableIteration<Statement>, GraphQueryResult, QueryResult<Statement>, RDFHandler

@Deprecated(since="4.1.0") public class BackgroundGraphResult extends IterationWrapper<Statement> implements GraphQueryResult, Runnable, RDFHandler
Deprecated.
Provides concurrent access to statements as they are being parsed when instances of this class are run as Threads.
Author:
James Leigh
  • Constructor Details

  • Method Details

    • handleClose

      protected void handleClose() throws QueryEvaluationException
      Deprecated.
      Description copied from class: IterationWrapper
      Closes this Iteration and also closes the wrapped Iteration if it is a CloseableIteration.
      Overrides:
      handleClose in class IterationWrapper<Statement>
      Throws:
      QueryEvaluationException
    • run

      public void run()
      Deprecated.
      Specified by:
      run in interface Runnable
    • startRDF

      public void startRDF() throws RDFHandlerException
      Deprecated.
      Description copied from interface: RDFHandler
      Signals the start of the RDF data. This method is called before any data is reported.
      Specified by:
      startRDF in interface RDFHandler
      Throws:
      RDFHandlerException - If the RDF handler has encountered an unrecoverable error.
    • getNamespaces

      public Map<String,String> getNamespaces()
      Deprecated.
      Description copied from interface: GraphQueryResult
      Retrieves relevant namespaces from the query result.
      The contents of the Map may be modified after it is returned, as the initial return may be performed when the first RDF Statement is encountered.
      Specified by:
      getNamespaces in interface GraphQueryResult
      Returns:
      a Map<String, String> object containing (prefix, namespace) pairs.
    • handleComment

      public void handleComment(String comment) throws RDFHandlerException
      Deprecated.
      Description copied from interface: RDFHandler
      Handles a comment.
      Specified by:
      handleComment in interface RDFHandler
      Parameters:
      comment - The comment.
      Throws:
      RDFHandlerException - If the RDF handler has encountered an unrecoverable error.
    • handleNamespace

      public void handleNamespace(String prefix, String uri) throws RDFHandlerException
      Deprecated.
      Description copied from interface: RDFHandler
      Handles a namespace declaration/definition. A namespace declaration associates a (short) prefix string with the namespace's URI. The prefix for default namespaces, which do not have an associated prefix, are represented as empty strings.
      Specified by:
      handleNamespace in interface RDFHandler
      Parameters:
      prefix - The prefix for the namespace, or an empty string in case of a default namespace.
      uri - The URI that the prefix maps to.
      Throws:
      RDFHandlerException - If the RDF handler has encountered an unrecoverable error.
    • handleStatement

      public void handleStatement(Statement st) throws RDFHandlerException
      Deprecated.
      Description copied from interface: RDFHandler
      Handles a statement.
      Specified by:
      handleStatement in interface RDFHandler
      Parameters:
      st - The statement.
      Throws:
      RDFHandlerException - If the RDF handler has encountered an unrecoverable error.
    • endRDF

      public void endRDF() throws RDFHandlerException
      Deprecated.
      Description copied from interface: RDFHandler
      Signals the end of the RDF data. This method is called when all data has been reported.
      Specified by:
      endRDF in interface RDFHandler
      Throws:
      RDFHandlerException - If the RDF handler has encountered an unrecoverable error.