Gremlin小写/大写

时间:2018-07-04 07:21:52

标签: gremlin

基于Modern Graph

当我在名字之间进行搜索时,似乎区分大小写

gremlin> g.V().has("name", between("m", "mz")).values("name")
==>marko
gremlin> g.V().has("name", between("M", "Mz")).values("name")
gremlin> 

我抬起头,但没有找到lower()upper(),我想做的是lower(x)== lower(y),因此以上内容不区分大小写。

1 个答案:

答案 0 :(得分:2)

您可以一起no matching function for call to ‘caffe::Datum::set_label(int&)’ datum_vector[i].set_label(i); ^ In file included from /home/mora/Desktop/DSH/DSH-4/include/caffe/blob.hpp:9:0, from /home/mora/Desktop/DSH/DSH-4/include/caffe/filler.hpp:10, from /home/mora/Desktop/DSH/DSH-4/src/caffe/test/test_memory_data_layer.cpp:8: /home/mora/Desktop/DSH/DSH-4/build/include/caffe/proto/caffe.pb.h:10601:13: note: candidate: void caffe::Datum::set_label(int, google::protobuf::int32) inline void Datum::set_label(int index, ::google::protobuf::int32 value) { ^ /home/mora/Desktop/DSH/DSH-4/build/include/caffe/proto/caffe.pb.h:10601:13: note: candidate expects 2 arguments, 1 provided src/caffe/test/CMakeFiles/test.testbin.dir/build.make:134: recipe for target 'src/caffe/test/CMakeFiles/test.testbin.dir/test_memory_data_layer.cpp.o' failed make[3]: *** [src/caffe/test/CMakeFiles/test.testbin.dir/test_memory_data_layer.cpp.o] Error 1 CMakeFiles/Makefile2:362: recipe for target 'src/caffe/test/CMakeFiles/test.testbin.dir/all' failed make[2]: *** [src/caffe/test/CMakeFiles/test.testbin.dir/all] Error 2 CMakeFiles/Makefile2:335: recipe for target 'src/caffe/test/CMakeFiles/runtest.dir/rule' failed make[1]: *** [src/caffe/test/CMakeFiles/runtest.dir/rule] Error 2 Makefile:240: recipe for target 'runtest' failed make: *** [runtest] Error 2 所需条件:

or()

只是警告-这种方法有效,但是不同的图形将以不同的方式对待这种类型的查询。我不知道所有人都会优化这种查询。如果您只是在小图上进行实验,则此方法可能很好,但是根据遍历的不同,可能看不到想要在大图上获得的性能。