将耶拿模型导出到json文件 [英] Export jena model to json file
本文介绍了将耶拿模型导出到json文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嘿,我正在尝试提供Web服务,而我正在使用Jena分发.目前,我已经创建了我的模型,并以RDF/XML格式将其打印出来.我想将数据保存到保存在硬盘中的JSON文件中.我该怎么办?
Hey i'm trying to make a web service and i'm using Jena distibution. At the moment i have created my model and its printing out in RDF/XML format. I want to get my data to a JSON file saved in my hard disk. How can i do that?
推荐答案
-
org.openjena.riot.out.RDFJSONWriter
编写Talis样式的RDF/JSON(即不是JSON-LD). - 寻找JSON-LD编写器(我认为有些可以读取RDF并写入JSON-LD)
- 使用SPARQL JSON结果格式
org.openjena.riot.out.RDFJSONWriter
writes Talis-style RDF/JSON (i.e not JSON-LD).- Look for a JSON-LD writer (I think there are ones that read RDF and write JSON-LD)
- Use SPARQL JSON Results format
这篇关于将耶拿模型导出到json文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文