Class TripletPath<V,E>
java.lang.Object
org.aksw.commons.util.triplet.TripletPath<V,E>
- Type Parameters:
V-E-
A path from triplets. A path is expected to be connected, hence for any
consecutive triplets either of a triplet's subject or object matches either of its successor.
- Author:
- raven
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconcat(TripletPath<V, E> that) booleangetEnd()intReturns the number of triplets - NOT nodesgetNode(int i) getStart()inthashCode()booleanAn rdf path is cycle free, if it contains each triple at most oncestatic <V,E> TripletPath <V, Directed<E>> makeDirected(TripletPath<V, E> path) makeUndirected(List<Triplet<V, Directed<E>>> triplets) static <V,E> TripletPath <V, E> makeUndirected(TripletPath<V, Directed<E>> path) reverse()subPath(int fromIndex, int toIndex) toString()
-
Field Details
-
start
-
end
-
triplets
-
-
Constructor Details
-
TripletPath
-
-
Method Details
-
getNodeSet
-
getNode
-
isCycleFree
public boolean isCycleFree()An rdf path is cycle free, if it contains each triple at most once- Returns:
-
subPath
-
getStart
-
getEnd
-
getLength
public int getLength()Returns the number of triplets - NOT nodes- Returns:
-
getTriplets
-
makeUndirected
-
makeUndirected
-
makeDirected
-
reverse
-
concat
-
hashCode
-
equals
-
toString
-