com.hp.hpl.jena.ontology
Class OntTools.Path
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Statement>
com.hp.hpl.jena.ontology.OntTools.Path
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<Statement>, Collection<Statement>, List<Statement>, RandomAccess
- Enclosing class:
- OntTools
public static class OntTools.Path
- extends ArrayList<Statement>
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:
- Serialized Form
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, trimToSize |
OntTools.Path
public OntTools.Path()
OntTools.Path
public OntTools.Path(OntTools.Path basePath)
getStatement
public Statement getStatement(int i)
append
public OntTools.Path append(Statement s)
- Answer a new Path whose elements are this Path with
s
added at the end
hasTerminus
public boolean hasTerminus(RDFNode n)
- Answer true if the last link on the path has object equal to
n
getTerminal
public RDFNode getTerminal()
- Answer the RDF node at the end of the path, if defined, or null
getTerminalResource
public Resource getTerminalResource()
- Answer the resource at the end of the path, if defined, or null
Licenced under the Apache License, Version 2.0