0

I have a file with json-ld data. 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.

What library can I use, and how can I do all of this?

Arnold Schrijver
  • 3,588
  • 3
  • 36
  • 65
Oscar
  • 21
  • 2
  • 2
    [See how to create a MCVE](https://stackoverflow.com/help/mcve) – Alan Aug 01 '18 at 06:44
  • I think the best JSON-LD library for Java is [jsonld-java](https://github.com/jsonld-java/jsonld-java), but Java - as a strongly-typed language - is not a very good fit to process JSON-LD (or vice versa: JSON-LD is too versatile for strongly-typed languages). You'll have to deal with `Object` return values about everywhere. – Arnold Schrijver Aug 21 '18 at 14:09

1 Answers1

2

Use Apache Jena

http://jena.apache.org

Model m = ModelFactory.createDefaultModel();
m.read ("http://url-of-json-document","JSON-LD");
William Greenly
  • 3,914
  • 20
  • 18