public class BlazeEdge extends Object implements org.apache.tinkerpop.gremlin.structure.Edge, BlazeReifiedElement
Edge existence is represented as two triples as follows:
:fromId :edgeId :toId .
<<:fromId :edgeId :toId>> rdf:type :label .
Edge properties are represented as follows:
<<:fromId :edgeId :toId>> :key "val" .
| Modifier and Type | Field and Description |
|---|---|
protected BlazeGraph |
graph
BlazeGraph instance this element belongs to. |
protected com.bigdata.rdf.model.BigdataURI |
label
The Literal representation of the element label.
|
protected com.bigdata.rdf.model.BigdataURI |
uri
The URI representation of the element id.
|
protected BlazeValueFactory |
vf
The
BlazeValueFactory provided by the graph for round-tripping
values. |
| Modifier and Type | Method and Description |
|---|---|
Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> |
bothVertices() |
boolean |
equals(Object object)
Delegates to
ElementHelper.areEqual(Element, Object) |
BlazeGraph |
graph()
Return the
BlazeGraph instance. |
int |
hashCode()
Delegates to
ElementHelper.hashCode(Element) |
String |
id()
Return element id.
|
org.apache.tinkerpop.gremlin.structure.Vertex |
inVertex() |
String |
label()
Return element label.
|
org.apache.tinkerpop.gremlin.structure.Vertex |
outVertex() |
<V> CloseableIterator<org.apache.tinkerpop.gremlin.structure.Property<V>> |
properties(String... keys)
Strength return type to
CloseableIterator. |
<V> BlazeProperty<V> |
property(String key,
V val)
Strengthen return type to
BlazeProperty. |
com.bigdata.rdf.model.BigdataBNode |
rdfId()
Return the sid (reified statement) for this edge.
|
org.openrdf.model.URI |
rdfLabel()
Return the RDF representation of the label.
|
void |
remove() |
String |
toString() |
Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> |
vertices(org.apache.tinkerpop.gremlin.structure.Direction direction) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitpropertygraph, keys, rdfLabel, valuesprotected final BlazeGraph graph
BlazeGraph instance this element belongs to.protected final BlazeValueFactory vf
BlazeValueFactory provided by the graph for round-tripping
values.protected final com.bigdata.rdf.model.BigdataURI uri
protected final com.bigdata.rdf.model.BigdataURI label
public com.bigdata.rdf.model.BigdataBNode rdfId()
rdfId in interface BlazeElementrdfId in interface BlazeReifiedElementBlazeElement.rdfId()public void remove()
remove in interface org.apache.tinkerpop.gremlin.structure.ElementElement.remove(),
BlazeGraph.remove(BlazeReifiedElement)public <V> BlazeProperty<V> property(String key, V val)
BlazeProperty.property in interface BlazeReifiedElementproperty in interface org.apache.tinkerpop.gremlin.structure.Elementpublic <V> CloseableIterator<org.apache.tinkerpop.gremlin.structure.Property<V>> properties(String... keys)
CloseableIterator. You MUST close this
iterator when finished.properties in interface BlazeElementproperties in interface BlazeReifiedElementproperties in interface org.apache.tinkerpop.gremlin.structure.Edgeproperties in interface org.apache.tinkerpop.gremlin.structure.Elementpublic org.apache.tinkerpop.gremlin.structure.Vertex outVertex()
outVertex in interface org.apache.tinkerpop.gremlin.structure.EdgeEdge.outVertex()public org.apache.tinkerpop.gremlin.structure.Vertex inVertex()
inVertex in interface org.apache.tinkerpop.gremlin.structure.EdgeEdge.inVertex()public Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> bothVertices()
bothVertices in interface org.apache.tinkerpop.gremlin.structure.EdgeEdge.bothVertices()public Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> vertices(org.apache.tinkerpop.gremlin.structure.Direction direction)
vertices in interface org.apache.tinkerpop.gremlin.structure.EdgeEdge.vertices(Direction)public String id()
id in interface org.apache.tinkerpop.gremlin.structure.ElementElement.id()public String label()
label in interface org.apache.tinkerpop.gremlin.structure.ElementElement.label()public org.openrdf.model.URI rdfLabel()
rdfLabel in interface BlazeElementBlazeElement.rdfLabel()public BlazeGraph graph()
BlazeGraph instance.graph in interface BlazeElementgraph in interface org.apache.tinkerpop.gremlin.structure.Elementpublic int hashCode()
ElementHelper.hashCode(Element)Copyright © 2015–2016 SYSTAP, LLC DBA Blazegraph. All rights reserved.