阿帕奇支持使用GraphML和GraphSON加载或者保存整个图.
Apache TinkerPop supports the loading and saving of entire graphs using GraphML and GraphSON.
GraphML是一个广泛支持的XML的标准,它可以用来表示整个图。
GraphML is a broadly supported XML standard that can be used to represent entire graphs.
GraphSON是一种JSON格式的定义,它作为阿帕奇TinkerPop项目的一部分,允许整个图都表示成JOSN格式。也可以用GraphSON格式来表示JSON形式的小精灵图查询的结果的。在这一节中我们会看到各种与之相内的话题。在本书中使用GraphML 和 GraphSON 这个话题会多次出现。GraphSON的知识变得特别的重要,一旦您开始使用小精灵服务器。这一主题会在后边的“小精灵服务器介绍”这一节中讲到。“常见的图的序列化形式”这一节中会有GraphML和GraphSON的细节。
GraphSON is a JSON format defined as part of the Apache TinkerPop project that also allows whole
graphs to be represented. It is also possible to use GraphSON to represent the results of a Gremlin
graph query in JSON format. In this section we will take a look at all of these topics. The whole
subject of using GraphML and GraphSON will be revisited a few more times later in the book.
Knowledge of GraphSON becomes especially important once you start working with the Gremlin
Server. That topic will be covered in detail as part of the "INTRODUCING GREMLIN SERVER" section
quite a bit later. Both GraphML and GraphSON are covered in detail as part of the "COMMON
GRAPH SERIALIZATION FORMATS" section.
阿帕奇Tinkerpop官方文档包含了一些这一主题的好的信息。文档可以从下面找到:http://tinkerpop.apache.org/docs/current/reference/#_gremlin_i_o.
The official Apache TinkerPop documentation includes some good coverage of this
topic. That documentation can be found at http://tinkerpop.apache.org/docs/
current/reference/#_gremlin_i_o.
有三个版本的GraphSON。最开始是第一版,然后是第二版,第三版中增加了一些新的类型到格式中。这些内容在TinkerPop 3.2.2和3.3中也有相应的调整和增加。如果没有指定默认的格式现在是GraphSON3.0.
There are currently three versions of GraphSON. The original 1.0 version and then versions 2.0 and
3.0 that added type information to the format. These were added in TinkerPop versions 3.2.2 and
3.3 respectively. The default format unless explicitly specified is currently GraphSON 3.0
posted on 2022-04-25 17:58  bokeyuannicheng0000  阅读(149)  评论(0)    收藏  举报