Hi,
I know about meta properties, and can add them using:
http://tinkerpop.apache.org/docs/current/reference/#vertex-propertiesBut I'm able to add properties only till 2 levels. i.e. I'm able to add meta properties to properties but is there way to add meta properties to meta properties? I followed the following query:
gremlin> v = g.addV().property('name','marko').property('name','marko a. rodriguez').next()
gremlin> g.V(v).properties().property('date',2014)
==>vp[name->marko a. rodriguez]
gremlin> g.V(v).properties().properties().property('date1',2015)
org.janusgraph.graphdb.relations.SimpleJanusGraphProperty cannot be cast to org.apache.tinkerpop.gremlin.structure.Element
Type ':help' or ':h' for help.
Display stack trace? [yN]
Is there a way to add properties of properties?
Also, I'm playing around with Cardinality, and I want to make a Vertex property as List of Key-value pairs:
The structure in my client (Python) is as follows:
ARTICLES: [
{
ARTICLE_ID: 12345,
ARTICLE_TITLE: Text,
ARTICLE_URL: Text,
PRIMARY_SOURCE: Text,
SECONDARY_SOURCE: Text,
ARTICLE_PUBLISHED_DATE: Text
},
{
ARTICLE_ID: 12346,
ARTICLE_TITLE: Text,
ARTICLE_URL: Text,
PRIMARY_SOURCE: Text,
SECONDARY_SOURCE: Text,
ARTICLE_PUBLISHED_DATE: Text
}
]
Is there any possible way to address this? I tried doing Cardinality, but it also expects Data type to be specified, and JanusGraph native data types are normal objects like Int, Long but not any standard Key-Value pairs.
My following query returned me error while Schema Generation:
gremlin> caseInfos = mgmt.makePropertyKey('caseInfos').cardinality(Cardinality.LIST).make()
Need to specify a datatype
Type ':help' or ':h' for help.
Display stack trace? [yN]
These data types seems like basic support needed and if there are any suggestions on how to approach such data structure, all suggestions are really helpful
Thanks