Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ea 3596 record api v3 implement retrieval methods #17

Merged
merged 2 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
* @since 13 Oct 2023
*/
public enum RdfFormat {
JSONLD("jsonld","json",null,"application/ld+json","application/json")
JSONLD("jsonld","json",null,"application/ld+json")
, JSON("json","json",null,"application/json")
, XML("rdf","xml","utf-8","application/rdf+xml","application/xml","text/xml","rdf/xml")
, TURTLE("ttl",null,"utf-8","text/turtle","application/turtle","application/x-turtle")
, N3("n3",null,"utf-8","text/n3","text/rdf+n3","application/n3")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public FormatHandlerRegistry(JsonLdWriter jsonLdWriter, XmlRecordWriter xmlRecor
this.jenaBasedNTWriter = jenaBasedNTWriter;

put(RdfFormat.JSONLD, this.jsonLdWriter);
put(RdfFormat.JSON, this.jsonLdWriter);
put(RdfFormat.XML, this.xmlRecordWriter);
put(RdfFormat.TURTLE, this.jenaBasedTurtleWriter);
put(RdfFormat.N3, this.jenaBasedN3Writer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public FormatHandlerRegistryV2(JsonV2Writer jsonV2Writer,
this.jenaBasedTurtleWriter = jenaBasedTurtleWriter;

put(RdfFormat.JSONLD, this.jsonLdWriter);
put(RdfFormat.JSON, this.jsonV2Writer);
put(RdfFormat.XML, this.xmlRecordWriter);
put(RdfFormat.TURTLE, this.jenaBasedTurtleWriter);

Expand Down
Loading