|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WalkConstraint
WalkConstraint interface is used to define methods commonly required to orient a walk according to some conditions. The aim is to provide a way to distinguish edges which can be traversed from a vertex. The conditions can be based on:
Method Summary | |
---|---|
boolean |
acceptInWalks()
Check if the walk give access to IN edges |
boolean |
acceptOutWalks()
Check if the walk give access to OUT edges |
void |
addAcceptedTraversal(Set<org.openrdf.model.URI> pred,
Direction dir)
Add the current Traversal in the mapping of admitted traversal. |
void |
addAcceptedTraversal(org.openrdf.model.URI pred,
Direction dir)
Add the current Traversal in the mapping of admitted traversal. |
void |
addWalkconstraints(WalkConstraint wc)
Add to the current constraints the ones defines in the walk constraint passed in parameter. |
Set<org.openrdf.model.URI> |
getAcceptedPredicates()
Access to a view of the set of predicates (edge types) the walk consider during edge evaluation. |
Set<org.openrdf.model.URI> |
getAcceptedWalks_DIR_BOTH()
Intersection of getAcceptedWalks_DIR_IN() and
getAcceptedWalks_DIR_OUT() . |
Set<org.openrdf.model.URI> |
getAcceptedWalks_DIR_IN()
Access to a view of the set of predicates which can be traversed from target to source, i.e. |
Set<org.openrdf.model.URI> |
getAcceptedWalks_DIR_OUT()
Access to a view of the set of predicates which can be traversed from source to target i.e. |
Direction |
getAssociatedDirection(org.openrdf.model.URI uri)
Return the direction associated to the given predicate the object admits |
boolean |
respectConstaints(E e,
Direction dir)
The method defines the behavior of a walk reaching the given edge. |
Method Detail |
---|
boolean respectConstaints(E e, Direction dir)
e
- the vertex to evaluatesdir
- the direction of the edge
Set<org.openrdf.model.URI> getAcceptedPredicates()
Direction getAssociatedDirection(org.openrdf.model.URI uri)
uri
- the URI of the predicate of interest
void addWalkconstraints(WalkConstraint wc)
wc
- the walk constraintvoid addAcceptedTraversal(org.openrdf.model.URI pred, Direction dir)
pred
- the predicate URI (not null).dir
- the accepted direction corresponding to the given predicate
(not null).void addAcceptedTraversal(Set<org.openrdf.model.URI> pred, Direction dir)
pred
- the predicate URI (not null).dir
- the accepted direction corresponding to the given predicate
(not null).Set<org.openrdf.model.URI> getAcceptedWalks_DIR_IN()
Set<org.openrdf.model.URI> getAcceptedWalks_DIR_OUT()
Set<org.openrdf.model.URI> getAcceptedWalks_DIR_BOTH()
getAcceptedWalks_DIR_IN()
and
getAcceptedWalks_DIR_OUT()
. Return the set of URIs corresponding
to the valid predicates
boolean acceptOutWalks()
boolean acceptInWalks()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |