com.hp.hpl.jena.sparql.util
Interface ClosureTest
- All Known Implementing Classes:
- Closure.ClosureBNode, Closure.ClosureReachable
public interface ClosureTest
Method Summary |
boolean |
includeStmt(com.hp.hpl.jena.rdf.model.Statement s)
Return true if the statement should be included in the closure. |
boolean |
traverse(com.hp.hpl.jena.rdf.model.Resource r)
Return true if the closure algorithm should continue with statements
with this resource as subject. |
traverse
boolean traverse(com.hp.hpl.jena.rdf.model.Resource r)
- Return true if the closure algorithm should continue with statements
with this resource as subject. Applied to subject and object iof
each statement traversed
- Parameters:
r
-
includeStmt
boolean includeStmt(com.hp.hpl.jena.rdf.model.Statement s)
- Return 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.
- Parameters:
s
- Statement to test
Licenced under the Apache License, Version 2.0