jsonld-ex/lib/json/ld/document_loader.ex
2018-03-10 01:15:54 +01:00

11 lines
342 B
Elixir

defmodule JSON.LD.DocumentLoader do
@moduledoc """
Loader used to retrieve remote documents and contexts.
as specified at <https://www.w3.org/TR/json-ld-api/#idl-def-LoadDocumentCallback>
"""
alias JSON.LD.DocumentLoader.RemoteDocument
@callback load(String.t, JSON.LD.Options.t) :: {:ok, RemoteDocument.t} | {:error, any}
end