gremlin> g.V(3).as('a').project('edges').by(outE().count()).addV('newnode').property('count',select('edges'))
==>v[54922]
gremlin> g.V(54922).valueMap()
==>[count:[61]]
Something like this then perhaps
Enter code g.V(3).as('a').V('4').as('b').addE('summary').from('a').to('b').property('count',select('a').by(outE().count()))
e[54930][3-summary->4]
gremlin> g.E(54930).valueMap()==>[count:67]here...
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/1364f7bf-6c07-4e91-b0d3-dd9237485e07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Very impressive!!! Where do I learn that? How do I feel that logic?
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/1364f7bf-6c07-4e91-b0d3-dd9237485e07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Gremlin-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gremlin-users/QEn7URER8aU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CABed_4pGvDLvL%2B%2B2Yt%2BZQwafTO1zFBAO5_yS9f%2BCnysob8BVng%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
--
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/1364f7bf-6c07-4e91-b0d3-dd9237485e07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Gremlin-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gremlin-users/QEn7URER8aU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CABed_4pGvDLvL%2B%2B2Yt%2BZQwafTO1zFBAO5_yS9f%2BCnysob8BVng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAO%3DOAK%2BBFg1sX%2Bqy2LkZAfKB5Y3bQCLdRq6gF%3Dr1cMo6CJNmiw%40mail.gmail.com.
Robert Dale
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
--
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/1364f7bf-6c07-4e91-b0d3-dd9237485e07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Gremlin-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gremlin-users/QEn7URER8aU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CABed_4pGvDLvL%2B%2B2Yt%2BZQwafTO1zFBAO5_yS9f%2BCnysob8BVng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/f669407a-1c35-475e-90b0-2bffe514df6d%40googlegroups.com.
"startup failed:\nScript32.groovy: 1: [Static type checking] -
Cannot call org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal <org.apache.tinkerpop.gremlin.structure.Vertex, org.apache.tinkerpop.gremlin.structure.Edge>#from(org.apache.tinkerpop.gremlin.process.traversal.Traversal <org.apache.tinkerpop.gremlin.structure.Edge, org.apache.tinkerpop.gremlin.structure.Vertex>) with arguments [org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal <A extends java.lang.Object, E2 extends java.lang.Object>] \n @ line 1, column 1.\n
g.V().hasLabel('object1').project('a','b')
.by()
.by(__.out('obs1').groupCount()).as('group')
.select('b').unfold().as('out').select(keys)
.addE('summary')
.from(select('group').select('a'))
.property('summary', select('out').select(values))
\n ^\n\n1 error\n
Note I changed object->object1 and obs->obs1 to not interfere with existing labels. The part up to .addE works fine. The moment I use the addE part, even without the property added, I receive this error.
Neptune | Gremlin | Difference | |
Graph Feature |
|||
Transactions | TRUE | FALSE | FALSE |
ThreadedTransactions | FALSE | FALSE | TRUE |
Computer | FALSE | TRUE | FALSE |
Persistence | TRUE | TRUE | TRUE |
ConcurrentAccess | TRUE | FALSE | FALSE |
Variable
Feature |
|||
Variables | FALSE | TRUE | FALSE |
SerializableValues | FALSE | TRUE | FALSE |
UniformListValues | FALSE | TRUE | FALSE |
BooleanArrayValues | FALSE | TRUE | FALSE |
DoubleArrayValues | FALSE | TRUE | FALSE |
IntegerArrayValues | FALSE | TRUE | FALSE |
StringArrayValues | FALSE | TRUE | FALSE |
BooleanValues | FALSE | TRUE | FALSE |
ByteValues | FALSE | TRUE | FALSE |
DoubleValues | FALSE | TRUE | FALSE |
FloatValues | FALSE | TRUE | FALSE |
IntegerValues | FALSE | TRUE | FALSE |
LongValues | FALSE | TRUE | FALSE |
MapValues | FALSE | TRUE | FALSE |
MixedListValues | FALSE | TRUE | FALSE |
StringValues | FALSE | TRUE | FALSE |
ByteArrayValues | FALSE | TRUE | FALSE |
FloatArrayValues | FALSE | TRUE | FALSE |
LongArrayValues | FALSE | TRUE | FALSE |
Vertex Feature |
|||
MetaProperties | FALSE | TRUE | FALSE |
DuplicateMultiProperties | FALSE | TRUE | FALSE |
AddVertices | TRUE | TRUE | TRUE |
RemoveVertices | TRUE | TRUE | TRUE |
MultiProperties | TRUE | TRUE | TRUE |
UserSuppliedIds | TRUE | TRUE | TRUE |
AddProperty | TRUE | TRUE | TRUE |
RemoveProperty | TRUE | TRUE | TRUE |
NumericIds | FALSE | TRUE | FALSE |
StringIds | TRUE | TRUE | TRUE |
UuidIds | FALSE | TRUE | FALSE |
CustomIds | FALSE | FALSE | TRUE |
AnyIds | FALSE | TRUE | FALSE |
Vertex
Property Feature |
|||
UserSuppliedIds | FALSE | TRUE | FALSE |
AddProperty | TRUE | TRUE | TRUE |
RemoveProperty | TRUE | TRUE | TRUE |
NumericIds | TRUE | TRUE | TRUE |
StringIds | TRUE | TRUE | TRUE |
UuidIds | FALSE | TRUE | FALSE |
CustomIds | FALSE | FALSE | TRUE |
AnyIds | FALSE | TRUE | FALSE |
Properties | TRUE | TRUE | TRUE |
SerializableValues | FALSE | TRUE | FALSE |
UniformListValues | FALSE | TRUE | FALSE |
BooleanArrayValues | FALSE | TRUE | FALSE |
DoubleArrayValues | FALSE | TRUE | FALSE |
IntegerArrayValues | FALSE | TRUE | FALSE |
StringArrayValues | FALSE | TRUE | FALSE |
BooleanValues | TRUE | TRUE | TRUE |
ByteValues | TRUE | TRUE | TRUE |
DoubleValues | TRUE | TRUE | TRUE |
FloatValues | TRUE | TRUE | TRUE |
IntegerValues | TRUE | TRUE | TRUE |
LongValues | TRUE | TRUE | TRUE |
MapValues | FALSE | TRUE | FALSE |
MixedListValues | FALSE | TRUE | FALSE |
StringValues | TRUE | TRUE | TRUE |
ByteArrayValues | FALSE | TRUE | FALSE |
FloatArrayValues | FALSE | TRUE | FALSE |
LongArrayValues | FALSE | TRUE | FALSE |
Edge Feature |
|||
AddEdges | TRUE | TRUE | TRUE |
RemoveEdges | TRUE | TRUE | TRUE |
UserSuppliedIds | TRUE | TRUE | TRUE |
AddProperty | TRUE | TRUE | TRUE |
RemoveProperty | TRUE | TRUE | TRUE |
NumericIds | FALSE | TRUE | FALSE |
StringIds | TRUE | TRUE | TRUE |
UuidIds | FALSE | TRUE | FALSE |
CustomIds | FALSE | FALSE | TRUE |
AnyIds | FALSE | TRUE | FALSE |
Edge Property
Feature |
|||
Properties | TRUE | TRUE | TRUE |
SerializableValues | FALSE | TRUE | FALSE |
UniformListValues | FALSE | TRUE | FALSE |
BooleanArrayValues | FALSE | TRUE | FALSE |
DoubleArrayValues | FALSE | TRUE | FALSE |
IntegerArrayValues | FALSE | TRUE | FALSE |
StringArrayValues | FALSE | TRUE | FALSE |
BooleanValues | TRUE | TRUE | TRUE |
ByteValues | TRUE | TRUE | TRUE |
DoubleValues | TRUE | TRUE | TRUE |
FloatValues | TRUE | TRUE | TRUE |
IntegerValues | TRUE | TRUE | TRUE |
LongValues | TRUE | TRUE | TRUE |
MapValues | FALSE | TRUE | FALSE |
MixedListValues | FALSE | TRUE | FALSE |
StringValues | TRUE | TRUE | TRUE |
ByteArrayValues | FALSE | TRUE | FALSE |
FloatArrayValues | FALSE | TRUE | FALSE |
LongArrayValues | FALSE | TRUE | FALSE |
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/638f1987-4cf0-4e06-84d6-d5e3b3aabc12%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CABed_4pFd7Qn4rni-isZvL2Q6szkGtsXE-tsGr_auOJtZNKE_A%40mail.gmail.com.
g.V().hasLabel('object1').project('a','b')
.by()
.by(__.out('obs1').groupCount()).as('group')
.select('b').unfold().as('out').select(keys)
.addE('summary')
.from(select('group').select('a'))
which I change to:
g.V().hasLabel('object1').project('a','b').by()
.by(__.out('obs1').groupCount()).as('group')
.select('b').unfold().as('out').select(keys).addE('summary')
.from( (Vertex) select('group').select('a'))
Error encountered evaluating script
Jean-Baptiste
Robert Dale
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
--
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/1364f7bf-6c07-4e91-b0d3-dd9237485e07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Gremlin-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gremlin-users/QEn7URER8aU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CABed_4pGvDLvL%2B%2B2Yt%2BZQwafTO1zFBAO5_yS9f%2BCnysob8BVng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAO%3DOAK%2BBFg1sX%2Bqy2LkZAfKB5Y3bQCLdRq6gF%3Dr1cMo6CJNmiw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
g.V().hasLabel('object1').
project('a','b').by().by(__.out('obs1').groupCount()).as('group').select('b').unfold().as('out').select(keys).addE('summary').
from((Traversal) select('group').select('a'))
g.V().hasLabel('object1').as('a').local(out('obs1').dedup()).addE('summary').from('a')
g.V().hasLabel('object1').as('a').map(out('obs1').groupCount()).unfold().as('x').select(keys).addE('summary').from('a').property('count', select('x').select(values))
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/1ed93e8d-5b62-4ab1-a410-00a76c0ab3ce%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CA%2Bf9seVrVAHF7Maykgc%2B2ZiPtHO9RVtP5eNyc57GGvBJNL4ppA%40mail.gmail.com.
['Edge:', {'id': 'd4b08f52-530e-628a-3955-76a4ef8bdd99', 'inV': '1eb08f52-45e1-b633-af8d-a32dc812bb10', 'inVLabel': 'object1', 'label': 'summary', 'outV': '72b08f52-456f-aa41-4a10-e55c5782b998', 'outVLabel': 'object1', 'properties': {'count': 2}}, 'Edge:', {'id': '52b08f52-5312-afa8-e7a2-f103893efdc8', 'inV': '6ab08f52-4650-3975-45e5-629ab72a3266', 'inVLabel': 'object1', 'label': 'summary', 'outV': '1eb08f52-45e1-b633-af8d-a32dc812bb10', 'outVLabel': 'object1', 'properties': {'count': 1}}]