jsonld-ex/lib/json/ld/document_loader.ex
2020-06-20 04:25:58 +02:00

11 lines
348 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