You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hugegraph.apache.org by ji...@apache.org on 2023/06/18 06:57:38 UTC

[incubator-hugegraph-doc] branch master updated: doc: update outdated configurations (#272)

This is an automated email from the ASF dual-hosted git repository.

jin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph-doc.git


The following commit(s) were added to refs/heads/master by this push:
     new 8471401f doc: update outdated configurations (#272)
8471401f is described below

commit 8471401fb7d5c7cee59975a8f12f5395b55f0f52
Author: M <87...@users.noreply.github.com>
AuthorDate: Sun Jun 18 14:57:33 2023 +0800

    doc: update outdated configurations (#272)
    
    * doc: update the community page
    
    * docs: add small changes in md files
    
    * doc: add the empty new line (en&cn)
    
    * doc: update outdated configurations
---
 content/cn/docs/config/config-guide.md | 71 ++++++++++++++++++++++------------
 content/cn/docs/introduction/README.md |  8 ++--
 content/en/docs/config/config-guide.md | 69 ++++++++++++++++++++++-----------
 content/en/docs/introduction/README.md |  9 +++--
 4 files changed, 104 insertions(+), 53 deletions(-)

diff --git a/content/cn/docs/config/config-guide.md b/content/cn/docs/config/config-guide.md
index b6afa0d6..3733e0cc 100644
--- a/content/cn/docs/config/config-guide.md
+++ b/content/cn/docs/config/config-guide.md
@@ -26,38 +26,61 @@ gremlin-server.yaml 文件默认的内容如下:
 #host: 127.0.0.1
 #port: 8182
 
-# timeout in ms of gremlin query
-scriptEvaluationTimeout: 30000
+# Gremlin查询中的超时时间(以毫秒为单位)
+evaluationTimeout: 30000
 
 channelizer: org.apache.tinkerpop.gremlin.server.channel.WsAndHttpChannelizer
+# 不要在此处设置图形,此功能将在支持动态添加图形后再进行处理
 graphs: {
-  hugegraph: conf/hugegraph.properties
 }
 scriptEngines: {
   gremlin-groovy: {
+    staticImports: [
+      org.opencypher.gremlin.process.traversal.CustomPredicates.*',
+      org.opencypher.gremlin.traversal.CustomFunctions.*
+    ],
     plugins: {
-      com.baidu.hugegraph.plugin.HugeGraphGremlinPlugin: {},
+      org.apache.hugegraph.plugin.HugeGraphGremlinPlugin: {},
       org.apache.tinkerpop.gremlin.server.jsr223.GremlinServerGremlinPlugin: {},
       org.apache.tinkerpop.gremlin.jsr223.ImportGremlinPlugin: {
         classImports: [
           java.lang.Math,
-          com.baidu.hugegraph.backend.id.IdGenerator,
-          com.baidu.hugegraph.type.define.Directions,
-          com.baidu.hugegraph.type.define.NodeRole,
-          com.baidu.hugegraph.traversal.algorithm.CustomizePathsTraverser,
-          com.baidu.hugegraph.traversal.algorithm.CustomizedCrosspointsTraverser,
-          com.baidu.hugegraph.traversal.algorithm.FusiformSimilarityTraverser,
-          com.baidu.hugegraph.traversal.algorithm.HugeTraverser,
-          com.baidu.hugegraph.traversal.algorithm.NeighborRankTraverser,
-          com.baidu.hugegraph.traversal.algorithm.PathsTraverser,
-          com.baidu.hugegraph.traversal.algorithm.PersonalRankTraverser,
-          com.baidu.hugegraph.traversal.algorithm.ShortestPathTraverser,
-          com.baidu.hugegraph.traversal.algorithm.SubGraphTraverser,
-          com.baidu.hugegraph.traversal.optimize.Text,
-          com.baidu.hugegraph.traversal.optimize.TraversalUtil,
-          com.baidu.hugegraph.util.DateUtil
+          org.apache.hugegraph.backend.id.IdGenerator,
+          org.apache.hugegraph.type.define.Directions,
+          org.apache.hugegraph.type.define.NodeRole,
+          org.apache.hugegraph.traversal.algorithm.CollectionPathsTraverser,
+          org.apache.hugegraph.traversal.algorithm.CountTraverser,
+          org.apache.hugegraph.traversal.algorithm.CustomizedCrosspointsTraverser,
+          org.apache.hugegraph.traversal.algorithm.CustomizePathsTraverser,
+          org.apache.hugegraph.traversal.algorithm.FusiformSimilarityTraverser,
+          org.apache.hugegraph.traversal.algorithm.HugeTraverser,
+          org.apache.hugegraph.traversal.algorithm.JaccardSimilarTraverser,
+          org.apache.hugegraph.traversal.algorithm.KneighborTraverser,
+          org.apache.hugegraph.traversal.algorithm.KoutTraverser,
+          org.apache.hugegraph.traversal.algorithm.MultiNodeShortestPathTraverser,
+          org.apache.hugegraph.traversal.algorithm.NeighborRankTraverser,
+          org.apache.hugegraph.traversal.algorithm.PathsTraverser,
+          org.apache.hugegraph.traversal.algorithm.PersonalRankTraverser,
+          org.apache.hugegraph.traversal.algorithm.SameNeighborTraverser,
+          org.apache.hugegraph.traversal.algorithm.ShortestPathTraverser,
+          org.apache.hugegraph.traversal.algorithm.SingleSourceShortestPathTraverser,
+          org.apache.hugegraph.traversal.algorithm.SubGraphTraverser,
+          org.apache.hugegraph.traversal.algorithm.TemplatePathsTraverser,
+          org.apache.hugegraph.traversal.algorithm.steps.EdgeStep,
+          org.apache.hugegraph.traversal.algorithm.steps.RepeatEdgeStep,
+          org.apache.hugegraph.traversal.algorithm.steps.WeightedEdgeStep,
+          org.apache.hugegraph.traversal.optimize.ConditionP,
+          org.apache.hugegraph.traversal.optimize.Text,
+          org.apache.hugegraph.traversal.optimize.TraversalUtil,
+          org.apache.hugegraph.util.DateUtil,
+          org.opencypher.gremlin.traversal.CustomFunctions,
+          org.opencypher.gremlin.traversal.CustomPredicate
         ],
-        methodImports: [java.lang.Math#*]
+        methodImports: [
+          java.lang.Math#*,
+          org.opencypher.gremlin.traversal.CustomPredicate#*,
+          org.opencypher.gremlin.traversal.CustomFunctions#*
+        ]
       },
       org.apache.tinkerpop.gremlin.jsr223.ScriptFileGremlinPlugin: {
         files: [scripts/empty-sample.groovy]
@@ -69,25 +92,25 @@ serializers:
   - { className: org.apache.tinkerpop.gremlin.driver.ser.GraphBinaryMessageSerializerV1,
       config: {
         serializeResultToString: false,
-        ioRegistries: [com.baidu.hugegraph.io.HugeGraphIoRegistry]
+        ioRegistries: [org.apache.hugegraph.io.HugeGraphIoRegistry]
       }
   }
   - { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0,
       config: {
         serializeResultToString: false,
-        ioRegistries: [com.baidu.hugegraph.io.HugeGraphIoRegistry]
+        ioRegistries: [org.apache.hugegraph.io.HugeGraphIoRegistry]
       }
   }
   - { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV2d0,
       config: {
         serializeResultToString: false,
-        ioRegistries: [com.baidu.hugegraph.io.HugeGraphIoRegistry]
+        ioRegistries: [org.apache.hugegraph.io.HugeGraphIoRegistry]
       }
   }
   - { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV3d0,
       config: {
         serializeResultToString: false,
-        ioRegistries: [com.baidu.hugegraph.io.HugeGraphIoRegistry]
+        ioRegistries: [org.apache.hugegraph.io.HugeGraphIoRegistry]
       }
   }
 metrics: {
diff --git a/content/cn/docs/introduction/README.md b/content/cn/docs/introduction/README.md
index fb7e5e14..20200689 100644
--- a/content/cn/docs/introduction/README.md
+++ b/content/cn/docs/introduction/README.md
@@ -57,6 +57,8 @@ HugeGraph支持多用户并行操作,用户可输入Gremlin查询语句,并
 
 ### Contact Us
 
-- [Github Issues](https://github.com/apache/incubator-hugegraph/issues): 反馈使用问题与功能需求 (优先使用)
-- 反馈邮箱:[hugegraph@googlegroups.com](mailto:hugegraph@googlegroups.com)
-- 微信公众号:HugeGraph
+- [GitHub Issues](https://github.com/apache/incubator-hugegraph/issues): 使用途中出现问题或提供功能性建议,可通过此反馈 (推荐)
+- 邮件反馈: [dev@hugegraph.apache.org](mailto:dev@hugegraph.apache.org) ([邮箱订阅方式](https://hugegraph.apache.org/docs/contribution-guidelines/subscribe/))
+- 微信公众号: Apache HugeGraph, 欢迎扫描下方二维码加入我们!
+
+ <img src="https://github.com/apache/incubator-hugegraph-doc/blob/master/assets/images/wechat.png?raw=true" alt="QR png" width="300"/>
diff --git a/content/en/docs/config/config-guide.md b/content/en/docs/config/config-guide.md
index 763711d5..7b0fbd46 100644
--- a/content/en/docs/config/config-guide.md
+++ b/content/en/docs/config/config-guide.md
@@ -27,37 +27,60 @@ The default content of the `gremlin-server.yaml` file is as follows:
 #port: 8182
 
 # timeout in ms of gremlin query
-scriptEvaluationTimeout: 30000
+evaluationTimeout: 30000
 
 channelizer: org.apache.tinkerpop.gremlin.server.channel.WsAndHttpChannelizer
+# don't set graph at here, this happens after support for dynamically adding graph
 graphs: {
-  hugegraph: conf/hugegraph.properties
 }
 scriptEngines: {
   gremlin-groovy: {
+    staticImports: [
+      org.opencypher.gremlin.process.traversal.CustomPredicates.*',
+      org.opencypher.gremlin.traversal.CustomFunctions.*
+    ],
     plugins: {
-      com.baidu.hugegraph.plugin.HugeGraphGremlinPlugin: {},
+      org.apache.hugegraph.plugin.HugeGraphGremlinPlugin: {},
       org.apache.tinkerpop.gremlin.server.jsr223.GremlinServerGremlinPlugin: {},
       org.apache.tinkerpop.gremlin.jsr223.ImportGremlinPlugin: {
         classImports: [
           java.lang.Math,
-          com.baidu.hugegraph.backend.id.IdGenerator,
-          com.baidu.hugegraph.type.define.Directions,
-          com.baidu.hugegraph.type.define.NodeRole,
-          com.baidu.hugegraph.traversal.algorithm.CustomizePathsTraverser,
-          com.baidu.hugegraph.traversal.algorithm.CustomizedCrosspointsTraverser,
-          com.baidu.hugegraph.traversal.algorithm.FusiformSimilarityTraverser,
-          com.baidu.hugegraph.traversal.algorithm.HugeTraverser,
-          com.baidu.hugegraph.traversal.algorithm.NeighborRankTraverser,
-          com.baidu.hugegraph.traversal.algorithm.PathsTraverser,
-          com.baidu.hugegraph.traversal.algorithm.PersonalRankTraverser,
-          com.baidu.hugegraph.traversal.algorithm.ShortestPathTraverser,
-          com.baidu.hugegraph.traversal.algorithm.SubGraphTraverser,
-          com.baidu.hugegraph.traversal.optimize.Text,
-          com.baidu.hugegraph.traversal.optimize.TraversalUtil,
-          com.baidu.hugegraph.util.DateUtil
+          org.apache.hugegraph.backend.id.IdGenerator,
+          org.apache.hugegraph.type.define.Directions,
+          org.apache.hugegraph.type.define.NodeRole,
+          org.apache.hugegraph.traversal.algorithm.CollectionPathsTraverser,
+          org.apache.hugegraph.traversal.algorithm.CountTraverser,
+          org.apache.hugegraph.traversal.algorithm.CustomizedCrosspointsTraverser,
+          org.apache.hugegraph.traversal.algorithm.CustomizePathsTraverser,
+          org.apache.hugegraph.traversal.algorithm.FusiformSimilarityTraverser,
+          org.apache.hugegraph.traversal.algorithm.HugeTraverser,
+          org.apache.hugegraph.traversal.algorithm.JaccardSimilarTraverser,
+          org.apache.hugegraph.traversal.algorithm.KneighborTraverser,
+          org.apache.hugegraph.traversal.algorithm.KoutTraverser,
+          org.apache.hugegraph.traversal.algorithm.MultiNodeShortestPathTraverser,
+          org.apache.hugegraph.traversal.algorithm.NeighborRankTraverser,
+          org.apache.hugegraph.traversal.algorithm.PathsTraverser,
+          org.apache.hugegraph.traversal.algorithm.PersonalRankTraverser,
+          org.apache.hugegraph.traversal.algorithm.SameNeighborTraverser,
+          org.apache.hugegraph.traversal.algorithm.ShortestPathTraverser,
+          org.apache.hugegraph.traversal.algorithm.SingleSourceShortestPathTraverser,
+          org.apache.hugegraph.traversal.algorithm.SubGraphTraverser,
+          org.apache.hugegraph.traversal.algorithm.TemplatePathsTraverser,
+          org.apache.hugegraph.traversal.algorithm.steps.EdgeStep,
+          org.apache.hugegraph.traversal.algorithm.steps.RepeatEdgeStep,
+          org.apache.hugegraph.traversal.algorithm.steps.WeightedEdgeStep,
+          org.apache.hugegraph.traversal.optimize.ConditionP,
+          org.apache.hugegraph.traversal.optimize.Text,
+          org.apache.hugegraph.traversal.optimize.TraversalUtil,
+          org.apache.hugegraph.util.DateUtil,
+          org.opencypher.gremlin.traversal.CustomFunctions,
+          org.opencypher.gremlin.traversal.CustomPredicate
         ],
-        methodImports: [java.lang.Math#*]
+        methodImports: [
+          java.lang.Math#*,
+          org.opencypher.gremlin.traversal.CustomPredicate#*,
+          org.opencypher.gremlin.traversal.CustomFunctions#*
+        ]
       },
       org.apache.tinkerpop.gremlin.jsr223.ScriptFileGremlinPlugin: {
         files: [scripts/empty-sample.groovy]
@@ -69,25 +92,25 @@ serializers:
   - { className: org.apache.tinkerpop.gremlin.driver.ser.GraphBinaryMessageSerializerV1,
       config: {
         serializeResultToString: false,
-        ioRegistries: [com.baidu.hugegraph.io.HugeGraphIoRegistry]
+        ioRegistries: [org.apache.hugegraph.io.HugeGraphIoRegistry]
       }
   }
   - { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0,
       config: {
         serializeResultToString: false,
-        ioRegistries: [com.baidu.hugegraph.io.HugeGraphIoRegistry]
+        ioRegistries: [org.apache.hugegraph.io.HugeGraphIoRegistry]
       }
   }
   - { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV2d0,
       config: {
         serializeResultToString: false,
-        ioRegistries: [com.baidu.hugegraph.io.HugeGraphIoRegistry]
+        ioRegistries: [org.apache.hugegraph.io.HugeGraphIoRegistry]
       }
   }
   - { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV3d0,
       config: {
         serializeResultToString: false,
-        ioRegistries: [com.baidu.hugegraph.io.HugeGraphIoRegistry]
+        ioRegistries: [org.apache.hugegraph.io.HugeGraphIoRegistry]
       }
   }
 metrics: {
diff --git a/content/en/docs/introduction/README.md b/content/en/docs/introduction/README.md
index ca6eeef5..05d12d0f 100644
--- a/content/en/docs/introduction/README.md
+++ b/content/en/docs/introduction/README.md
@@ -53,6 +53,9 @@ The functions of this system include but are not limited to:
 - [HugeGraph-Tools](/docs/quickstart/hugegraph-tools): HugeGraph-Tools is HugeGraph's deployment and management tools, including functions such as managing graphs, backup/restore, Gremlin execution, etc.
 
 ### Contact Us
-- [GitHub Issues](https://github.com/apache/incubator-hugegraph/issues): Feedback on usage issues and functional requirements (priority)
-- Feedback Email: [hugegraph@googlegroups.com](mailto:hugegraph@googlegroups.com)
-- WeChat public account: HugeGraph
+
+- [GitHub Issues](https://github.com/apache/incubator-hugegraph/issues): Feedback on usage issues and functional requirements (quick response)
+- Feedback Email: [dev@hugegraph.apache.org](mailto:dev@hugegraph.apache.org) ([subscriber](https://hugegraph.apache.org/docs/contribution-guidelines/subscribe/) only)
+- WeChat public account: Apache HugeGraph, welcome to scan this QR code to follow us.
+
+ <img src="https://github.com/apache/incubator-hugegraph-doc/blob/master/assets/images/wechat.png?raw=true" alt="QR png" width="300"/>