feat(api-v2): Add metadata routes (DSP-662) #1734
- Move RDF formatting from RouteUtilV2 into KnoraResponseV2. - Generate Turtle and XML from an RDF4J Model instead of parsing JSON-LD. - Have JsonLDDocument convert itself to an RDF4J Model when needed. - Refactor KnoraResponseV2 to have subclasses KnoraJsonLDResponseV2 and KnoraTurtleResponseV2.
@subotic Thanks for the review!
I'm concerned that when we have hundreds of projects, returning all metadata for all projects in one API response could mean returning a huge API response that could put too much load on the triplestore. Let's talk about it first.