简体   繁体   中英

Convert a Jena ResultSet to Model

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?

RDFOutput.toModel

在jena 2.13.0中不推荐使用ResultSetFormatter操作,其中保留了占位符,而javadoc引用了RDFOutput

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM