slib.sglib.model.graph.elements
Interface E
public interface E
Interface of an edge defined by a source, a target and an type.
Otherwise stated, an edge can be viewed as a statement subject, predicate,
object considering that all elements are URIs.
Note that edges are not expected to be modifiable i.e. there source, target
and type must be final. Therefore no setters must be specified for the
source, the target and the predicate of the edge. Moreover the source, the
target and the predicate must not be null.
- Author:
- Sebastien Harispe
getSource
org.openrdf.model.URI getSource()
- Returns:
- the vertex corresponding to the source of the edge.
getTarget
org.openrdf.model.URI getTarget()
- Returns:
- the vertex corresponding to the target of the edge.
getURI
org.openrdf.model.URI getURI()
- Returns:
- the predicate URI of the edge.
Copyright © 2013. All Rights Reserved.