Interface RDFVisitor


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

      • visitBlank

        java.lang.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

        java.lang.Object visitURI​(Resource r,
                                  java.lang.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 java.lang.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

        java.lang.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