BatchGraph and SET properties

104 views
Skip to first unread message

Stas Malyshev

unread,
Jan 1, 2015, 4:59:18 PM1/1/15
to aureliu...@googlegroups.com
Hi!

I'm trying to figure out the data loading with BatchGraph and I've encountered a problem with SET cardinality properties. So I create a batch graph:

bgraph = new BatchGraph(g, VertexIDType.STRING, 1000)
bgraph.setLoadingFromScratch(false)

I have also created a property on underlying graph g:

mgmt.makePropertyKey("P31link").dataType(String.class).cardinality(Cardinality.SET).make()

I create a vertex:

v = bgraph.addVertex("Qtest")
==>v[Qtest]

And I try to add a property P31link to it, which was defined as cardinality(Cardinality.SET):

gremlin> v.setProperty("P31link", 'Q1')
Not a single key: P31link. Use addProperty instead

But v is a batch graph vertex and doesn't have addProperty:

gremlin> v.addProperty("P31link", 'Q1')
No signature of method: groovy.lang.MissingMethodException.addProperty() is applicable for argument types: () values: []
Possible solutions: hasProperty(java.lang.String)

So, what I'm supposed to do? How can I add a property that is SET-valued to the BatchGraph?

Thanks,

Stas

Matthias Broecheler

unread,
Jan 7, 2015, 1:27:53 PM1/7/15
to aureliu...@googlegroups.com
BatchGraph currently does not support Titan's extended data model. This will be fixed in 0.9 with TP3.

--
You received this message because you are subscribed to the Google Groups "Aurelius" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aureliusgraph...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/0725e1f7-fccf-42ad-9de6-e813f635213e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Matthias Broecheler
http://www.matthiasb.com

Stas Malyshev

unread,
Jan 7, 2015, 1:33:07 PM1/7/15
to aureliu...@googlegroups.com
Hi!

> BatchGraph currently does not support Titan's extended data model. This
> will be fixed in 0.9 with TP3.

I see, thanks!
Reply all
Reply to author
Forward
0 new messages