[英]Is there any command to export graph from GraphDB?
I am aware of the export functionality provided by the GraphDB workbench.我知道 GraphDB 工作台提供的导出功能。 However, I would like to find out if there is any command line utility to export the graph using the console quickly.但是,我想知道是否有任何命令行实用程序可以使用控制台快速导出图形。
For example, there is importrdf
command to load the data offline.例如,有importrdf
命令离线加载数据。 There should be a command to export data as well.还应该有一个导出数据的命令。 https://graphdb.ontotext.com/documentation/10.0/command-line-tools.html https://graphdb.ontotext.com/documentation/10.0/command-line-tools.html
Thanks.谢谢。
You can use the command export
using bin/storage-tool
script.您可以使用bin/storage-tool
脚本使用命令export
。
Uses the source index ( srcIndex
) to export repository data to the destination file ( destFile
).使用源索引 ( srcIndex
) 将存储库数据导出到目标文件 ( destFile
)。 Supported destination file extension formats: .trig, .ttl, .nq.支持的目标文件扩展名格式:.trig、.ttl、.nq。 For example to dump the repository data using the POS index into a f.trig file:例如,使用 POS 索引将存储库数据转储到 f.trig 文件中:
bin/storage-tool -command=export -storage=/repo/storage -srcIndex=pos -destFile=/repo/storage/f.trig
More details here: https://graphdb.ontotext.com/documentation/10.0/storage-tool.html#examples更多细节在这里: https://graphdb.ontotext.com/documentation/10.0/storage-tool.html#examples
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.