-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] 1.6.0版本hubble,顶点大于1个时,执行g.V() 前端会报错 #340
Comments
下面同样的数据在0.11的server+1.5的hubble查询正常,在0.12的server+1.6的hubble就会有这个问题 /**
import java.io.IOException; import com.baidu.hugegraph.driver.GraphManager; public class SingleExample {
} |
似乎是一样的测试数据. 这样你先clear 清空 0.12的图, 然后直接在 hubble 界面执行下面的语句一键导入 (不需要走 java-client) 然后看看能否复现, 这样操作的步骤完全一致, 避免有环境不同. (下面的语句直接一次性粘贴到 hubble 执行即可, 数据也有了) graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2);graph.schema().propertyKey('name').asText().ifNotExist().create();graph.schema().propertyKey('age').asInt().ifNotExist().create();graph.schema().propertyKey('city').asText().ifNotExist().create();graph.schema().propertyKey('weight').asDouble().ifNotExist().create();graph.schema().propertyKey('lang').asText().ifNotExist().create();graph.schema().propertyKey('date').asText().ifNotExist().create();graph.schema().propertyKey('price').asInt().ifNotExist().create();graph.schema().vertexLabel('person').properties('name', 'age', 'city').primaryKeys('name').nullableKeys('age').ifNotExist().create();graph.schema().vertexLabel('software').properties('name', 'lang', 'price').primaryKeys('name').nullableKeys('price').ifNotExist().create();graph.schema().indexLabel('personByCity').onV('person').by('city').secondary().ifNotExist().create();graph.schema().indexLabel('personByAge').onV('person').by('age').range().ifNotExist().create();graph.schema().indexLabel('softwareByPrice').onV('software').by('price').range().ifNotExist().create();graph.schema().edgeLabel('knows').multiTimes().sourceLabel('person').targetLabel('person').properties('date', 'weight').sortKeys('date').nullableKeys('weight').ifNotExist().create();graph.schema().edgeLabel('created').sourceLabel('person').targetLabel('software').properties('date', 'weight').nullableKeys('weight').ifNotExist().create();graph.schema().indexLabel('createdByDate').onE('created').by('date').secondary().ifNotExist().create();graph.schema().indexLabel('createdByWeight').onE('created').by('weight').range().ifNotExist().create();graph.schema().indexLabel('knowsByWeight').onE('knows').by('weight').range().ifNotExist().create();marko = graph.addVertex(T.label, 'person', 'name', 'marko', 'age', 29, 'city', 'Beijing');vadas = graph.addVertex(T.label, 'person', 'name', 'vadas', 'age', 27, 'city', 'Hongkong');lop = graph.addVertex(T.label, 'software', 'name', 'lop', 'lang', 'java', 'price', 328);josh = graph.addVertex(T.label, 'person', 'name', 'josh', 'age', 32, 'city', 'Beijing');ripple = graph.addVertex(T.label, 'software', 'name', 'ripple', 'lang', 'java', 'price', 199);peter = graph.addVertex(T.label, 'person', 'name', 'peter', 'age', 35, 'city', 'Shanghai');marko.addEdge('knows', vadas, 'date', '20160110', 'weight', 0.5);marko.addEdge('knows', josh, 'date', '20130220', 'weight', 1.0);marko.addEdge('created', lop, 'date', '20171210', 'weight', 0.4);josh.addEdge('created', lop, 'date', '20091111', 'weight', 0.4);josh.addEdge('created', ripple, 'date', '20171210', 'weight', 1.0);peter.addEdge('created', lop, 'date', '20170324', 'weight', 0.2); 另外, 麻烦看看你提示报错的地方时 (v.1.6), hubble 的日志或者是 server 的日志里是否有相关报错信息, 以及前端的http 请求返回里是否有相关报错 (有可以截图一下蟹蟹) |
多谢, 这个是按上面发你的 另外执行语句前最好能把图清空一下, 避免干扰 |
多谢反馈, 语句我们这边执行都是正常的, 我们再看看, 你那有其他的机器或环境也可以试试换一个看看. |
已经分机器部署了两套环境,都是这样的
***@***.***
发件人: imbajin
发送时间: 2022-01-07 10:28
收件人: hugegraph/hugegraph-hubble
抄送: hanshuai9307; Author
主题: Re: [hugegraph/hugegraph-hubble] [Bug] 1.6.0版本hubble,顶点大于1个时,执行g.V() 前端会报错 (Issue #340)
多谢反馈, 语句我们这边执行都是正常的, 我们再看看, 你那有其他的机器或环境也可以试试换一个看看.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
对了, 你能看看报错的时候 0.12 的 server 那边日志里有任何报错提示么. 另外, 你试试用 1.6 的 hubble 链接 0.11 的 server 看看, 是否会出现报错 (直接链接就行) 这样缩小一下异常导致的范围 |
1.6 的 hubble 链接 0.11 的 server 没有问题。
附件是 0.12 的 server 日志
***@***.***
发件人: imbajin
发送时间: 2022-01-07 10:42
收件人: hugegraph/hugegraph-hubble
抄送: hanshuai9307; Author
主题: Re: [hugegraph/hugegraph-hubble] [Bug] 1.6.0版本hubble,顶点大于1个时,执行g.V() 前端会报错 (Issue #340)
对了, 你能看看报错的时候 0.12 的 server 那边日志里有任何报错提示么. 另外, 你试试用 1.6 的 hubble 链接 0.11 的 server 看看, 是否会出现报错 (直接链接就行)
这样缩小一下异常导致的范围
―
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
github 的邮件回复好像不能正确显示附件, 有空的时候可以 PC 端 attach 一下, github 现在支持传入文件包了. (或者用 gist 附带也可以) 那看起来应该是 server 这边的问题, 可能 hubble 只是转发了一下错误 不过奇怪的是, 我用社区的 0.12.0 rocksdb 后端, 默认一键初始化启动, 然后导数据没法复现, 你那边后端是有区别么? |
Bug Type (问题类型)
exception / error (异常报错)
Before submit
Environment (环境信息)
Expected & Actual behavior (期望与实际表现)
期望:执行g.v(),返回正常数据
Vertex/Edge example (问题点 / 边数据举例)
No response
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
No response
The text was updated successfully, but these errors were encountered: