public static class OntTools.Path extends ArrayList<Statement>
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() )
| Constructor and Description |
|---|
Path() |
Path(OntTools.Path basePath) |
| Modifier and Type | Method and Description |
|---|---|
OntTools.Path |
append(Statement s)
Answer a new Path whose elements are this Path with
s added at the end |
Statement |
getStatement(int i) |
RDFNode |
getTerminal()
Answer the RDF node at the end of the path, if defined, or null
|
Resource |
getTerminalResource()
Answer the resource at the end of the path, if defined, or null
|
boolean |
hasTerminus(RDFNode n)
Answer true if the last link on the path has object equal to
n |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringcontainsAll, equals, hashCodeparallelStream, streampublic Path()
public Path(OntTools.Path basePath)
public Statement getStatement(int i)
public OntTools.Path append(Statement s)
s added at the endpublic boolean hasTerminus(RDFNode n)
npublic RDFNode getTerminal()
public Resource getTerminalResource()
Licenced under the Apache License, Version 2.0