Package org.aksw.jenax.path.core
Class FacetStep
java.lang.Object
org.aksw.jenax.path.core.FacetStep
- All Implemented Interfaces:
Serializable
A traversal from a set of source nodes to a set of target nodes.
Based on a predicate, direction, an alias and the name of the target node.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringstatic org.apache.jena.sparql.path.P_Path0static FacetStepstatic final org.apache.jena.sparql.core.Varstatic org.apache.jena.graph.Nodestatic final org.apache.jena.sparql.core.Varstatic final org.apache.jena.sparql.core.Varprotected org.apache.jena.sparql.path.P_Path0static final org.apache.jena.sparql.core.VarConstants for addressing components of a quadprotected org.apache.jena.graph.NodeThe component targeted by this step.static final org.apache.jena.sparql.core.Var -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FacetStepstatic FacetStepbwd(org.apache.jena.graph.Node node) static FacetStepstatic FacetStepbwd(org.apache.jena.rdf.model.Resource node) static FacetStepcopyStep(org.apache.jena.graph.Node newComponent) Create a copy of this step with the component set to the given value.booleanstatic FacetStepstatic FacetStepfwd(org.apache.jena.graph.Node node) static FacetStepstatic FacetStepfwd(org.apache.jena.rdf.model.Resource node) static FacetStepgetAlias()org.aksw.commons.util.direction.Directionorg.apache.jena.graph.NodegetNode()org.apache.jena.sparql.path.P_Path0getStep()org.apache.jena.graph.NodeinthashCode()booleanDeprecated.static booleanisFragment(FacetStep facetStep) static booleanisGraph(org.apache.jena.graph.Node component) static booleanisPredicate(org.apache.jena.graph.Node component) static booleanisSource(org.apache.jena.graph.Node component) static booleanisTarget(org.apache.jena.graph.Node component) static booleanisTuple(org.apache.jena.graph.Node component) static FacetStepof(org.apache.jena.graph.Node node, org.aksw.commons.util.direction.Direction direction, String alias, org.apache.jena.graph.Node component) TODO Include a constant for the graph?toString()
-
Field Details
-
step
protected org.apache.jena.sparql.path.P_Path0 step -
alias
-
targetComponent
protected org.apache.jena.graph.Node targetComponentThe component targeted by this step. A step corresponds to a tuple: By default a path points to the values reachable via this step, but in the case of RDF it could also refer to the predicate or graph component. -
TARGET
public static final org.apache.jena.sparql.core.Var TARGETConstants for addressing components of a quad -
PREDICATE
public static final org.apache.jena.sparql.core.Var PREDICATE -
SOURCE
public static final org.apache.jena.sparql.core.Var SOURCE -
GRAPH
public static final org.apache.jena.sparql.core.Var GRAPH -
TUPLE
public static final org.apache.jena.sparql.core.Var TUPLE -
PATH_NODE
public static org.apache.jena.graph.Node PATH_NODE -
FRAGMENT_PATH
public static org.apache.jena.sparql.path.P_Path0 FRAGMENT_PATH -
FRAGMENT_STEP
-
-
Constructor Details
-
Method Details
-
isTarget
public static boolean isTarget(org.apache.jena.graph.Node component) -
isPredicate
public static boolean isPredicate(org.apache.jena.graph.Node component) -
isSource
public static boolean isSource(org.apache.jena.graph.Node component) -
isGraph
public static boolean isGraph(org.apache.jena.graph.Node component) -
isTuple
public static boolean isTuple(org.apache.jena.graph.Node component) -
isFragment
-
of
public static FacetStep of(org.apache.jena.graph.Node node, org.aksw.commons.util.direction.Direction direction, String alias, org.apache.jena.graph.Node component) TODO Include a constant for the graph? -
fwd
-
fwd
-
fwd
-
fwd
-
fwd
-
bwd
-
bwd
-
bwd
-
bwd
-
bwd
-
copyStep
Create a copy of this step with the component set to the given value. Used for preallocation of sparql variables for the different components. -
toggleDirection
-
getStep
public org.apache.jena.sparql.path.P_Path0 getStep() -
getNode
public org.apache.jena.graph.Node getNode() -
getDirection
public org.aksw.commons.util.direction.Direction getDirection() -
isForward
Deprecated. -
getTargetComponent
public org.apache.jena.graph.Node getTargetComponent() -
getAlias
-
hashCode
public int hashCode() -
equals
-
toString
-