public interface WalkConstraint
Modifier and Type | Method and Description |
---|---|
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.
|
boolean respectConstaints(E e, Direction dir)
e
- the vertex to evaluatesdir
- the direction of the edgeSet<org.openrdf.model.URI> getAcceptedPredicates()
Direction getAssociatedDirection(org.openrdf.model.URI uri)
uri
- the URI of the predicate of interestvoid 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 predicatesboolean acceptOutWalks()
boolean acceptInWalks()
Copyright © 2014. All rights reserved.