From 874c71123cdd0413b666b9cd28d8a9c492705d09 Mon Sep 17 00:00:00 2001 From: Marcel Otto Date: Mon, 17 Sep 2018 02:47:20 +0200 Subject: [PATCH] Add @impl annotations --- lib/json/ld/decoder.ex | 1 + lib/json/ld/encoder.ex | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/json/ld/decoder.ex b/lib/json/ld/decoder.ex index 057e052..2b22a57 100644 --- a/lib/json/ld/decoder.ex +++ b/lib/json/ld/decoder.ex @@ -10,6 +10,7 @@ defmodule JSON.LD.Decoder do alias RDF.NS.{XSD} + @impl RDF.Serialization.Decoder def decode(content, opts \\ []) do with {:ok, json_ld_object} <- parse_json(content), dataset = to_rdf(json_ld_object, opts) do diff --git a/lib/json/ld/encoder.ex b/lib/json/ld/encoder.ex index 435dc15..30addb8 100644 --- a/lib/json/ld/encoder.ex +++ b/lib/json/ld/encoder.ex @@ -13,6 +13,7 @@ defmodule JSON.LD.Encoder do @rdf_rest to_string(RDF.NS.RDF.rest) @rdf_list to_string(RDF.uri(RDF.NS.RDF.List)) + @impl RDF.Serialization.Encoder def encode(data, opts \\ []) do with {:ok, json_ld_object} <- from_rdf(data, opts) do encode_json(json_ld_object, opts)