如何解决有谁知道如何让tdb2.dump命令实际执行任何操作
我正在尝试将jena数据库转储为三重。
似乎有一个听起来很适合该任务的命令:<form>
<label for="start_datetime" id="start_datetime_label">Datetime</label>
<input type="datetime-local" id="start_datetime" name="start_datetime" placeholder="" title="Start Datetime" required value="">
<label for="end_datetime" id="end_datetime_label">Datetime</label>
<input type="datetime-local" id="end_datetime" name="end_datetime" placeholder="" title="End Datetime" required value="">
</form>
tdb2.dump
但是我没有成功将其写入任何东西到STDOUT。
当我使用jena@debian-clean:~$ ./apache-jena-3.8.0/bin/tdb2.tdbdump --help
tdbdump : Write a dataset to stdout (defaults to N-Quads)
Output control
--output=FMT Output in the given format,streaming if possible.
--formatted=FMT Output,using pretty printing (consumes memory)
--stream=FMT Output,using a streaming format
--compress Compress the output with gzip
Location
--loc=DIR Location (a directory)
--tdb= Assembler description file
Symbol deFinition
--set Set a configuration symbol to a value
--mem=FILE Execute on an in-memory TDB database (for testing)
--desc= Assembler description file
General
-v --verbose Verbose
-q --quiet Run with minimal output
--debug Output information for debugging
--help
--version Version information
--strict Operate in strict SPARQL mode (no extensions of any kind)
jena@debian-clean:~$
参数指向数据库时,该数据库的新副本出现在子文件夹--loc
中,但STDOUT中什么都没有出现。
当我尝试使用Data-0001
参数并将其指向--tdb
文件时,我得到一个堆栈跟踪,抱怨其格式。
Google已经打开了Jena文档,告诉我命令存在,仅此而已。因此,任何帮助表示赞赏。
解决方法
“-loc”应该与用于创建数据库的相同。
假设是“ DB2”。对于创建数据库后的TDB2(不是TDB1),那么“ DB2 / Data-0001”将已经存在。请勿将其用于--loc。使用“ --loc DB2”。
如果它是TDB1数据库(文件位于“ --loc”目录中,而不是“ Datat-0001”目录中),请使用tdbdump
。空数据库中没有三元组/四元组,因此您不会获得任何输出。
当前的Fuseki(最高3.16.0)每次运行时都必须使用相同的设置进行调用,这对于TDB1 / TDB2来说是脆弱的。如果您在Fuseki之外创建了TDB2数据库,并且仅使用命令行args,则每次都需要“ --tdb2”。
下一版本(3.17.0)中的Fuseki检测到现有的数据库类型。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。