- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Statement>
,Collection<Statement>
,List<Statement>
,RandomAccess
- Enclosing class:
- OntTools
A path is an application of
List
containing only Statement
objects, and in which for all adjacent elements Si-1
and Si
, where i > 0
, it is true that:
Si-1.getObject().equals( Si.getSubject() )
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAnswer a new Path whose elements are this Path withs
added at the endgetStatement
(int i) Answer the RDF node at the end of the path, if defined, or nullAnswer the resource at the end of the path, if defined, or nullboolean
Answer true if the last link on the path has object equal ton
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
Constructor Details
-
Path
public Path() -
Path
-
-
Method Details
-
getStatement
-
append
Answer a new Path whose elements are this Path withs
added at the end -
hasTerminus
Answer true if the last link on the path has object equal ton
-
getTerminal
Answer the RDF node at the end of the path, if defined, or null -
getTerminalResource
Answer the resource at the end of the path, if defined, or null
-