What is JSON-LD 1?
1. Overview JSON-LD is a JSON-based RDF format for representing Linked Data. It enables extending existing JSON objects with hypermedia capabilities; in other words, the capability to contain links in a machine-readable way.
How to get a valid JSON-LD document from a POJO?
If we’re satisfied with the defaults, we only need to add the @id to get a valid JSON-LD document. The default vocabulary will be the schema.org vocabulary, the @type the Java class name, and the public properties of the POJO will all be included in the resulting JSON-LD document.
Is it possible to use Hydra-jsonld outside of the Spring Framework?
Although it’s technically possible to use Hydra-Jsonld outside of the Spring Framework, it was originally designed for usage with Spring-HATEOAS. As a result, there’s no way to generate links with annotations as we saw in Jackson-Jsonld. On the other hand, they are generated for some Spring-specific classes automatically.
What is Jackson-jsonld in Jackson?
Jackson-Jsonld is a Jackson module that enables the annotation of POJOs in a convenient way to generate JSON-LD documents. 4.1. Maven Dependencies First, let’s add jackson-jsonld as a dependency to the pom.xml: