Skip to content

Commit

Permalink
Changes to re-add the JSON rdfFormatter
Browse files Browse the repository at this point in the history
  • Loading branch information
nshweta90 committed Apr 30, 2024
1 parent 43db764 commit 1fa05a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
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

0 comments on commit 1fa05a5

Please sign in to comment.