我需要解析哪个Maven依赖项,例如耶拿RDFFormat之类的类列出的格式?
我有一些使用RDFFormat.TURTLE_BLOCKS
时可以正常工作的代码,但是在RDFFormat.RDFXML_PRETTY
上会产生此错误:
19:54:08.447 [ERROR]: Error while running batch processor thread pool-2-thread-1: Failed to find a writer factory for RDF/XML/pretty
org.apache.jena.riot.RiotException: Failed to find a writer factory for RDF/XML/pretty
at org.apache.jena.riot.system.StreamRDFWriter.getWriterStream(StreamRDFWriter.java:179)
at org.apache.jena.riot.system.StreamRDFWriter.write(StreamRDFWriter.java:218)
at net.sourceforge.ondex.rdf.export.RDFFileExporter.lambda$export$1(RDFFileExporter.java:53)
at uk.ac.ebi.utils.threading.BatchProcessor.lambda$handleNewTask$0(BatchProcessor.java:82)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
19:54:09.445 [ERROR]: Error while running batch processor thread pool-2-thread-1: Failed to find a writer factory for RDF/XML/pretty
org.apache.jena.riot.RiotException: Failed to find a writer factory for RDF/XML/pretty
at org.apache.jena.riot.system.StreamRDFWriter.getWriterStream(StreamRDFWriter.java:179)
at org.apache.jena.riot.system.StreamRDFWriter.write(StreamRDFWriter.java:218)
at net.sourceforge.ondex.rdf.export.RDFFileExporter.lambda$export$1(RDFFileExporter.java:53)
at uk.ac.ebi.utils.threading.BatchProcessor.lambda$handleNewTask$0(BatchProcessor.java:82)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
因此,看起来我必须包括一些依赖项。 Jena 3.6.0就是这种情况。
编辑:我认为这是一个错误,或者至少是一个应该被更好地记录的情况。刚刚提交了issue,让我们看看耶拿人的想法。