简体   繁体   English

如何在Java中读取JSON-LD?

[英]How can I read a JSON-LD in java?

I have a file with json-ld data. 我有一个包含json-ld数据的文件。 This data corresponds with an ontology, and I want know how I can get a structure of the data through said ontology. 这些数据与一个本体相对应,我想知道如何通过所述本体获得数据的结构。

I want create a program in Java to read this json-ld, create that structure and show the information that I want by screen. 我想用Java创建一个程序来读取json-ld,创建该结构并通过屏幕显示我想要的信息。

What library can I use, and how can I do all of this? 我可以使用哪个库?如何进行所有这些操作?

Use Apache Jena 使用Apache Jena

http://jena.apache.org http://jena.apache.org

Model m = ModelFactory.createDefaultModel();
m.read ("http://url-of-json-document","JSON-LD");

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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