feat(api-v2): Add metadata routes (DSP-662) #1734
SHACL validation will be added in a later pull request.
The processing of Turtle requests and responses is a first draft, and will be refactored later for DSP-902.
- 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 left a comment
The only thing that is missing is the route for getting all metadata of all projects. This can be done in another PR. Please open a YouTrack issue. Thanks!
@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.