Searchy is a Spring-based library that automatically exposes web services over HTTP to search for Entity-related data using a powerful query language (searching on any field, combine multiple criteria to refine the search, and even search on nested fields).
schema-org-java is a library to work with Schema.org entities and simplify the handling of these complex entities.
The entities can be easily generated with the Maven plugin, and can then be (de)serialized to JSON-LD format with the Serializer module.