简体   繁体   English

是否有任何命令可以从 GraphDB 导出图形?

[英]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.

相关问题 如何保护从Firebug运行任何命令或JavaScript? - How to protect running any command or JavaScript from Firebug? 有什么方法可以在命令行从GNUPLOT动态绘制图形吗? - Is there any way to dynamically plot graphs from GNUPLOT at the command line? 'export'命令有什么作用? - What does the 'export' command do? 在一行命令中从字符串获取任何n个数字 - Get any nth number from a string in one line command 有什么方法可以重定向 Windows 命令行中使用“start”运行的命令的 stderr 输出? - Is there any way to redirect stderr output from a command run with "start" in the Windows command line? 如何使用 linux 中的命令从任何日志文件中获取最后 N 分钟或 N 小时的日志 - How to get last N min or N hour logs from any log files using command in linux 使用Python的“子进程”运行“导出”命令不起作用 - Running 'export' command with Pythons 'subprocess' does not work 导出工作表,包括VBA和命令按钮 - Export sheet including VBA and a command button laravel 命令中的任何虚参数 - Any imaginary parameter in the laravel command Google 安全指挥中心 - 如何以 JSON 格式导出调查结果 - Google Security Command Center - how to export findings in JSON format
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM