Convert a Jena ResultSet to Model

牧云@^-^@ 提交于 2021-01-27 13:58:40

问题


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

Previously I used the

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

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


回答1:


RDFOutput.toModel

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



来源:https://stackoverflow.com/questions/32157314/convert-a-jena-resultset-to-model

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!