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, wait
ifPresent, orElse, orElseGet, orElseThrow
property
keys, values
protected BlazeVertexProperty()
EmptyBlazeVertexProperty
.public com.bigdata.rdf.model.BigdataBNode rdfId()
rdfId
in interface BlazeElement
rdfId
in interface BlazeReifiedElement
BlazeElement.rdfId()
public String id()
id
in interface org.apache.tinkerpop.gremlin.structure.Element
public BlazeGraph graph()
BlazeGraph
instance.graph
in interface BlazeElement
graph
in interface org.apache.tinkerpop.gremlin.structure.Element
graph
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>
NoSuchElementException
public 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.Element
remove
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 BlazeReifiedElement
property
in interface org.apache.tinkerpop.gremlin.structure.Element
public <U> CloseableIterator<org.apache.tinkerpop.gremlin.structure.Property<U>> 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.Element
properties
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.Element
label
in interface org.apache.tinkerpop.gremlin.structure.VertexProperty<V>
public org.openrdf.model.URI rdfLabel()
BlazeElement
).rdfLabel
in interface BlazeElement
Copyright © 2015–2016 SYSTAP, LLC DBA Blazegraph. All rights reserved.