如何在 cygwin bash shell 中获取 Jena Fuseki 运行?

How to get Jena Fuseki running in a cygwin bash shell?

我目前 运行 Amazon Corretto Java 11.0。 我已经下载了apache-jena-fuseki-3.15.0.zip。存档已被提取。来自 cygwin bash shell,我 运行:

fuseki-server --update --mem /ds

可从 localhost:3030 的浏览器访问服务器。但是,启动时dump了很多错误。

在 Windows 上安装和 运行 的文档很少。我正试图达到可以上传我的 ontology 并执行 SPARQL 查询的程度。在这一点上我什么也做不了。有什么可能是错误的想法吗?任何指向在线安装指南或视频的指针?

错误如下:

2020-06-21 22:55:45,545 main ERROR Unrecognized format specifier [d]
2020-06-21 22:55:45,558 main ERROR Unrecognized conversion specifier [d] starting at position 16 in conversion pattern.
2020-06-21 22:55:45,559 main ERROR Unrecognized format specifier [thread]
2020-06-21 22:55:45,559 main ERROR Unrecognized conversion specifier [thread] starting at position 25 in conversion pattern.
2020-06-21 22:55:45,559 main ERROR Unrecognized format specifier [level]
2020-06-21 22:55:45,560 main ERROR Unrecognized conversion specifier [level] starting at position 35 in conversion pattern.
2020-06-21 22:55:45,560 main ERROR Unrecognized format specifier [logger]
2020-06-21 22:55:45,560 main ERROR Unrecognized conversion specifier [logger] starting at position 47 in conversion pattern.
2020-06-21 22:55:45,561 main ERROR Unrecognized format specifier [msg]
2020-06-21 22:55:45,561 main ERROR Unrecognized conversion specifier [msg] starting at position 54 in conversion pattern.
2020-06-21 22:55:45,561 main ERROR Unrecognized format specifier [n]
2020-06-21 22:55:45,562 main ERROR Unrecognized conversion specifier [n] starting at position 56 in conversion pattern.
2020-06-21 22:55:45,572 main ERROR Unrecognized format specifier [d]
2020-06-21 22:55:45,573 main ERROR Unrecognized conversion specifier [d] starting at position 16 in conversion pattern.
2020-06-21 22:55:45,573 main ERROR Unrecognized format specifier [thread]
2020-06-21 22:55:45,573 main ERROR Unrecognized conversion specifier [thread] starting at position 25 in conversion pattern.
2020-06-21 22:55:45,574 main ERROR Unrecognized format specifier [level]
2020-06-21 22:55:45,574 main ERROR Unrecognized conversion specifier [level] starting at position 35 in conversion pattern.
2020-06-21 22:55:45,574 main ERROR Unrecognized format specifier [logger]
2020-06-21 22:55:45,575 main ERROR Unrecognized conversion specifier [logger] starting at position 47 in conversion pattern.
2020-06-21 22:55:45,575 main ERROR Unrecognized format specifier [msg]
2020-06-21 22:55:45,575 main ERROR Unrecognized conversion specifier [msg] starting at position 54 in conversion pattern.
2020-06-21 22:55:45,575 main ERROR Unrecognized format specifier [n]
2020-06-21 22:55:45,575 main ERROR Unrecognized conversion specifier [n] starting at position 56 in conversion pattern.
2020-06-21 22:55:45,630 main ERROR Unable to locate plugin type for Loggers
2020-06-21 22:55:45,630 main ERROR Unable to locate plugin type for Appenders
2020-06-21 22:55:45,631 main ERROR Unable to locate plugin type for ThresholdFilter
2020-06-21 22:55:45,633 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,633 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,634 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,634 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,635 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,635 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,635 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,636 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,636 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,636 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,637 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,637 main ERROR Unable to locate plugin for AppenderRef
2020-06-21 22:55:45,637 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,637 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,638 main ERROR Unable to locate plugin for Logger
2020-06-21 22:55:45,638 main ERROR Unable to locate plugin for AppenderRef
2020-06-21 22:55:45,639 main ERROR Unable to locate plugin for Root
2020-06-21 22:55:45,639 main ERROR Unable to locate plugin for Loggers
2020-06-21 22:55:45,640 main ERROR Unable to locate plugin for PatternLayout
2020-06-21 22:55:45,640 main ERROR Unable to locate plugin for Console
2020-06-21 22:55:45,640 main ERROR Unable to locate plugin for PatternLayout
2020-06-21 22:55:45,640 main ERROR Unable to locate plugin for Console
2020-06-21 22:55:45,641 main ERROR Unable to locate plugin for Appenders
2020-06-21 22:55:45,641 main ERROR Unable to locate plugin for ThresholdFilter
2020-06-21 22:55:45,642 main ERROR Unrecognized format specifier [d]
2020-06-21 22:55:45,642 main ERROR Unrecognized conversion specifier [d] starting at position 16 in conversion pattern.
2020-06-21 22:55:45,643 main ERROR Unrecognized format specifier [thread]
2020-06-21 22:55:45,643 main ERROR Unrecognized conversion specifier [thread] starting at position 25 in conversion pattern.
2020-06-21 22:55:45,644 main ERROR Unrecognized format specifier [level]
2020-06-21 22:55:45,644 main ERROR Unrecognized conversion specifier [level] starting at position 35 in conversion pattern.
2020-06-21 22:55:45,645 main ERROR Unrecognized format specifier [logger]
2020-06-21 22:55:45,645 main ERROR Unrecognized conversion specifier [logger] starting at position 47 in conversion pattern.
2020-06-21 22:55:45,645 main ERROR Unrecognized format specifier [msg]
2020-06-21 22:55:45,646 main ERROR Unrecognized conversion specifier [msg] starting at position 54 in conversion pattern.
2020-06-21 22:55:45,646 main ERROR Unrecognized format specifier [n]
2020-06-21 22:55:45,647 main ERROR Unrecognized conversion specifier [n] starting at position 56 in conversion pattern.

Apache Jena Fuseki v3.15.0 组合 jar 有问题(fuseki-server.jar,不是 war 文件打包,也不是非 UI jena-fuseki-server形式)。这只是 v 3.15.0 中的错误,而不是 3.14.0 中的错误。

https://issues.apache.org/jira/browse/JENA-1900

就地修复:

https://gist.github.com/afs/a862c0e71b37ce617cd0a592b60609f1

这个bash脚本下载jena-fuseki-server-3.15.0.jar没有同样的问题,提取“Log4j2Plugins.dat”,然后替换fuseki中的文件-server.jar.

要考虑的替代方法是使用 jena-fuseki-server 作为服务。它没有 UI 也没有维护“运行/”区域 - 每次启动时它都使用命令行参数,包括配置文件参数。