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, wait
property
graph, keys, rdfLabel, values
protected 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 BlazeElement
rdfId
in interface BlazeReifiedElement
BlazeElement.rdfId()
public void remove()
remove
in interface org.apache.tinkerpop.gremlin.structure.Element
Element.remove()
,
BlazeGraph.remove(BlazeReifiedElement)
public <V> BlazeProperty<V> property(String key, V val)
BlazeProperty
.property
in interface BlazeReifiedElement
property
in interface org.apache.tinkerpop.gremlin.structure.Element
public <V> CloseableIterator<org.apache.tinkerpop.gremlin.structure.Property<V>> properties(String... keys)
CloseableIterator
. You MUST close this
iterator when finished.properties
in interface BlazeElement
properties
in interface BlazeReifiedElement
properties
in interface org.apache.tinkerpop.gremlin.structure.Edge
properties
in interface org.apache.tinkerpop.gremlin.structure.Element
public org.apache.tinkerpop.gremlin.structure.Vertex outVertex()
outVertex
in interface org.apache.tinkerpop.gremlin.structure.Edge
Edge.outVertex()
public org.apache.tinkerpop.gremlin.structure.Vertex inVertex()
inVertex
in interface org.apache.tinkerpop.gremlin.structure.Edge
Edge.inVertex()
public Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> bothVertices()
bothVertices
in interface org.apache.tinkerpop.gremlin.structure.Edge
Edge.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.Edge
Edge.vertices(Direction)
public String id()
id
in interface org.apache.tinkerpop.gremlin.structure.Element
Element.id()
public String label()
label
in interface org.apache.tinkerpop.gremlin.structure.Element
Element.label()
public org.openrdf.model.URI rdfLabel()
rdfLabel
in interface BlazeElement
BlazeElement.rdfLabel()
public BlazeGraph graph()
BlazeGraph
instance.graph
in interface BlazeElement
graph
in interface org.apache.tinkerpop.gremlin.structure.Element
public int hashCode()
ElementHelper.hashCode(Element)
Copyright © 2015–2016 SYSTAP, LLC DBA Blazegraph. All rights reserved.