public class BlazeVertex extends Object implements org.apache.tinkerpop.gremlin.structure.Vertex, BlazeElement
Vertex existence is represented as one triples as follows:
:vertexId rdf:type :label .
Vertex properties are represented as follows:
:vertexId :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 |
---|---|
BlazeEdge |
addEdge(String label,
org.apache.tinkerpop.gremlin.structure.Vertex to,
Object... kvs) |
CloseableIterator<org.apache.tinkerpop.gremlin.structure.Edge> |
edges(org.apache.tinkerpop.gremlin.structure.Direction direction,
String... edgeLabels)
Strength return type to
CloseableIterator . |
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.
|
String |
label()
Return element label.
|
<V> CloseableIterator<org.apache.tinkerpop.gremlin.structure.VertexProperty<V>> |
properties(String... keys)
Strength return type to
CloseableIterator . |
<V> BlazeVertexProperty<V> |
property(String key)
Strengthen return type to
BlazeVertexProperty . |
<V> BlazeVertexProperty<V> |
property(String key,
V val)
Strengthen return type to
BlazeVertexProperty and use
Cardinality.single by default. |
<V> BlazeVertexProperty<V> |
property(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality,
String key,
V val,
Object... kvs)
Strengthen return type to
BlazeVertexProperty . |
com.bigdata.rdf.model.BigdataURI |
rdfId()
Strengthen return type.
|
org.openrdf.model.URI |
rdfLabel()
Return the RDF representation of the label.
|
void |
remove() |
String |
toString()
Pass through to
StringFactory.vertexString(Vertex) |
CloseableIterator<org.apache.tinkerpop.gremlin.structure.Vertex> |
vertices(org.apache.tinkerpop.gremlin.structure.Direction direction,
String... edgeLabels)
Strength return type to
CloseableIterator . |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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.BigdataURI rdfId()
rdfId
in interface BlazeElement
public String toString()
StringFactory.vertexString(Vertex)
public <V> BlazeVertexProperty<V> property(String key)
BlazeVertexProperty
.property
in interface org.apache.tinkerpop.gremlin.structure.Element
property
in interface org.apache.tinkerpop.gremlin.structure.Vertex
Vertex.property(String)
,
properties(String...)
public <V> BlazeVertexProperty<V> property(String key, V val)
BlazeVertexProperty
and use
Cardinality.single by default.property
in interface org.apache.tinkerpop.gremlin.structure.Element
property
in interface org.apache.tinkerpop.gremlin.structure.Vertex
public <V> BlazeVertexProperty<V> property(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality, String key, V val, Object... kvs)
BlazeVertexProperty
.property
in interface org.apache.tinkerpop.gremlin.structure.Vertex
BlazeGraph#vertexProperty(BlazeVertex, Cardinality, String, Object, Object...)
public <V> CloseableIterator<org.apache.tinkerpop.gremlin.structure.VertexProperty<V>> properties(String... keys)
CloseableIterator
. You MUST close this
iterator when finished.properties
in interface BlazeElement
properties
in interface org.apache.tinkerpop.gremlin.structure.Element
properties
in interface org.apache.tinkerpop.gremlin.structure.Vertex
public BlazeEdge addEdge(String label, org.apache.tinkerpop.gremlin.structure.Vertex to, Object... kvs)
addEdge
in interface org.apache.tinkerpop.gremlin.structure.Vertex
Vertex.addEdge(String, Vertex, Object...)
,
BlazeGraph.addEdge(BlazeVertex, BlazeVertex, String, Object...)
public CloseableIterator<org.apache.tinkerpop.gremlin.structure.Edge> edges(org.apache.tinkerpop.gremlin.structure.Direction direction, String... edgeLabels)
CloseableIterator
. You MUST close this
iterator when finished.edges
in interface org.apache.tinkerpop.gremlin.structure.Vertex
Vertex.edges(Direction, String...)
,
BlazeGraph.edgesFromVertex(BlazeVertex, Direction, String...)
public CloseableIterator<org.apache.tinkerpop.gremlin.structure.Vertex> vertices(org.apache.tinkerpop.gremlin.structure.Direction direction, String... edgeLabels)
CloseableIterator
. You MUST close this
iterator when finished.vertices
in interface org.apache.tinkerpop.gremlin.structure.Vertex
Vertex.vertices(Direction, String...)
public void remove()
remove
in interface org.apache.tinkerpop.gremlin.structure.Element
Element.remove()
,
BlazeGraph.remove(BlazeVertex)
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.