V - public class BlazeVertexProperty<V> extends Object implements org.apache.tinkerpop.gremlin.structure.VertexProperty<V>, BlazeReifiedElement
Vertex properties can be represented in one of two ways depending on the cardinality of the key. Cardinality.single and Cardinality.set are represented the same way, as follows:
:vertexId :key "val" .
For Cardinality.list, a list index literal with a special datatype is used
to manage duplicate list items and ordering. Cardinality.list requires two
triples instead of one:
:vertexId :key "0"^^blazegraph:listIndex .
<<:vertexId :key "0"^^blazegraph:listIndex>> rdf:value "val" .
In either case, meta-properties can be attached to the reified vertex property triple:
# for Cardinality.single and Cardinality.set
<<:vertexId :key "val">> :metaKey "metaVal" .
# for Cardinality.list
<<:vertexId :key "0"^^blazegraph:listIndex>> :metaKey "metaVal" .
| Modifier | Constructor and Description |
|---|---|
protected |
BlazeVertexProperty()
Solely for
EmptyBlazeVertexProperty. |
| Modifier and Type | Method and Description |
|---|---|
BlazeVertex |
element()
The vertex to which this property belongs.
|
boolean |
equals(Object object)
Pass through to
ElementHelper.areEqual(VertexProperty, Object) |
BlazeGraph |
graph()
The
BlazeGraph instance. |
int |
hashCode()
Pass through to
ElementHelper.hashCode(Element) |
String |
id()
The internally generated element id for this vertex property.
|
boolean |
isPresent() |
String |
key()
Property key.
|
String |
label()
The element label, which is the property key.
|
<U> CloseableIterator<org.apache.tinkerpop.gremlin.structure.Property<U>> |
properties(String... keys)
Strength return type to
CloseableIterator. |
<U> BlazeProperty<U> |
property(String key,
U val)
Strengthen return type to
BlazeProperty. |
com.bigdata.rdf.model.BigdataBNode |
rdfId()
The reified vertex property triple.
|
org.openrdf.model.URI |
rdfLabel()
The RDF representation of the element label (required by
BlazeElement). |
void |
remove() |
String |
toString()
Pass through to
StringFactory.propertyString(Property) |
V |
value()
Property value.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitifPresent, orElse, orElseGet, orElseThrowpropertykeys, valuesprotected BlazeVertexProperty()
EmptyBlazeVertexProperty.public com.bigdata.rdf.model.BigdataBNode rdfId()
rdfId in interface BlazeElementrdfId in interface BlazeReifiedElementBlazeElement.rdfId()public String id()
id in interface org.apache.tinkerpop.gremlin.structure.Elementpublic BlazeGraph graph()
BlazeGraph instance.graph in interface BlazeElementgraph in interface org.apache.tinkerpop.gremlin.structure.Elementgraph in interface org.apache.tinkerpop.gremlin.structure.VertexProperty<V>public BlazeVertex element()
public String key()
key in interface org.apache.tinkerpop.gremlin.structure.Property<V>public V value() throws NoSuchElementException
value in interface org.apache.tinkerpop.gremlin.structure.Property<V>NoSuchElementExceptionpublic boolean isPresent()
isPresent in interface org.apache.tinkerpop.gremlin.structure.Property<V>Property.isPresent()public void remove()
remove in interface org.apache.tinkerpop.gremlin.structure.Elementremove in interface org.apache.tinkerpop.gremlin.structure.Property<V>Property.remove(),
BlazeGraph.remove(BlazeReifiedElement)public <U> BlazeProperty<U> property(String key, U val)
BlazeProperty.property in interface BlazeReifiedElementproperty in interface org.apache.tinkerpop.gremlin.structure.Elementpublic <U> CloseableIterator<org.apache.tinkerpop.gremlin.structure.Property<U>> 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.Elementproperties in interface org.apache.tinkerpop.gremlin.structure.VertexProperty<V>public int hashCode()
ElementHelper.hashCode(Element)public boolean equals(Object object)
ElementHelper.areEqual(VertexProperty, Object)public String toString()
StringFactory.propertyString(Property)public String label()
label in interface org.apache.tinkerpop.gremlin.structure.Elementlabel in interface org.apache.tinkerpop.gremlin.structure.VertexProperty<V>public org.openrdf.model.URI rdfLabel()
BlazeElement).rdfLabel in interface BlazeElementCopyright © 2015–2016 SYSTAP, LLC DBA Blazegraph. All rights reserved.