本文介绍了将Jena ResultSet转换为Model的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Apache Jena 3.0中将ResultSet转换为Model.

I'm trying to convert a ResultSet to a Model in Apache Jena 3.0.

以前我用

ResultSetFormatter.toModel函数,但是似乎已被删除.

ResultSetFormatter.toModel function, but this seems to have been removed.

当前获得ResultSet的模型(用于序列化到JSON-LD和RDF/XML)的最佳方法是什么?

What's the best way currently to get a Model (for serialization to JSON-LD and RDF/XML) of the ResultSet?

推荐答案

RDFOutput.toModel

ResultSetFormatter操作,其中保留了占位符,而javadoc引用了RDFOutput.

ResultSetFormatter operations were deprecated in jena 2.13.0 with placeholders left behind and javadoc referring to RDFOutput.

这篇关于将Jena ResultSet转换为Model的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 18:22