chmx-ustc commented on issue #1952:
URL: 
https://github.com/apache/incubator-hugegraph/issues/1952#issuecomment-1254958164

   我复现了你的数据,在我这并没有出现这个问题,你看是不是你在建立 schema信息的时候 方式不对
   # schema 导入
   我从hubble导入
   <img width="1045" alt="image" 
src="https://user-images.githubusercontent.com/109569406/191746399-b02b2784-863a-409d-a1de-140baf98b217.png";>
   
   ```groovy
   graph.schema().propertyKey("ep0").asBoolean().ifNotExist().create();
   graph.schema().propertyKey("ep1").asBoolean().ifNotExist().create();
   graph.schema().propertyKey("vp0").asBoolean().ifNotExist().create();
   
   
graph.schema().vertexLabel("vl0").properties("vp0").nullableKeys("vp0").create();
   
   
graph.schema().edgeLabel("el0").sourceLabel("vl0").targetLabel("vl0").properties("ep0").ifNotExist().create();
   
graph.schema().edgeLabel("el1").sourceLabel("vl0").targetLabel("vl0").properties("ep1").ifNotExist().create();
   
   
graph.schema().indexLabel("el0Byep0").onE("el0").by("ep0").shard().ifNotExist().create();
   
graph.schema().indexLabel("el1Byep0").onE("el1").by("ep1").shard().ifNotExist().create();
   
graph.schema().indexLabel("vl0Byvp0").onV("vl0").by("vp0").shard().ifNotExist().create();
   vertex1 = graph.addVertex(T.label, "vl0", "vp0", true);
   vertex2 = graph.addVertex(T.label, "vl0", "vp0", false);
   vertex3 = graph.addVertex(T.label, "vl0", "vp0", true);
   ```
   vertex1.addEdge("el0", vertex2, "ep0", true);
   vertex1.addEdge("el1", vertex3, "ep1", false);`  
   
   # 图的详情
   <img width="1104" alt="image" 
src="https://user-images.githubusercontent.com/109569406/191746695-5b376dff-47ea-4c02-b48b-02d231917635.png";>
   
   # 查询结果
   <img width="1103" alt="image" 
src="https://user-images.githubusercontent.com/109569406/191746914-d03faf81-c39f-490d-8b17-6e0d3c9ce8ba.png";>
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to