Interface RDFVisitor


public interface RDFVisitor
The interface for visiting (ie type-dispatching) an RDF Node.
  • Method Details

    • visitBlank

      Object visitBlank(Resource r, AnonId id)
      Method to call when visiting a blank node r with identifier id.
      Parameters:
      r - the blank RDF node being visited
      id - the identifier of that node
      Returns:
      value to be returned from the visit
    • visitURI

      Object visitURI(Resource r, String uri)
      Method to call when visiting a URI node r with the given uri.
      Parameters:
      r - the URI node being visited
      uri - the URI string of that node
      Returns:
      value to be returned from the visit
    • visitStmt

      default Object visitStmt(Resource r, Statement statement)
      Method to call when visiting a resource with a statement.
      Parameters:
      r - the resource node being visited
      statement - the statement of that node
      Returns:
      value to be returned from the visit
    • visitLiteral

      Object visitLiteral(Literal l)
      Method to call when visiting a literal RDF node l.
      Parameters:
      l - the RDF Literal node
      Returns:
      a value to be returned from the visit