public interface RDFVisitor
The interface for visiting (ie type-dispatching) an RDF Node.
-
Method Summary
Modifier and TypeMethodDescriptionvisitBlank(Resource r, AnonId id) Method to call when visiting a blank node r with identifier id.Method to call when visiting a literal RDF node l.default ObjectvisitStmt(StatementTerm statementTerm, Statement statement) Method to call when visiting a statement term.Method to call when visiting a URI node r with the given uri.
-
Method Details
-
visitBlank
Method to call when visiting a blank node r with identifier id.- Parameters:
r- the blank RDF node being visitedid- the identifier of that node- Returns:
- value to be returned from the visit
-
visitURI
Method to call when visiting a URI node r with the given uri.- Parameters:
r- the URI node being visiteduri- the URI string of that node- Returns:
- value to be returned from the visit
-
visitLiteral
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
-
visitStmt
Method to call when visiting a statement term.- Parameters:
statementTerm- the statement term being visitedstatement- the statement of that node- Returns:
- value to be returned from the visit
-