Package org.apache.jena.sparql.util
Class Closure.ClosureBNode
- java.lang.Object
-
- org.apache.jena.sparql.util.Closure.ClosureBNode
-
- All Implemented Interfaces:
ClosureTest
- Enclosing class:
- Closure
public static class Closure.ClosureBNode extends java.lang.Object implements ClosureTest
-
-
Constructor Summary
Constructors Constructor Description ClosureBNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanincludeStmt(Statement s)Return true if the statement should be included in the closure.booleantraverse(Resource r)Return true if the closure algorithm should continue with statements with this resource as subject.
-
-
-
Method Detail
-
traverse
public boolean traverse(Resource r)
Description copied from interface:ClosureTestReturn true if the closure algorithm should continue with statements with this resource as subject. Applied to subject and object iof each statement traversed- Specified by:
traversein interfaceClosureTest
-
includeStmt
public boolean includeStmt(Statement s)
Description copied from interface:ClosureTestReturn true if the statement should be included in the closure. The algorithm still recurses on the subject and object - this test is just about whether it is included in the result collection.- Specified by:
includeStmtin interfaceClosureTest- Parameters:
s- Statement to test
-
-