RDF.Serialization.read_file
You're seeing just the function
read_file
, go back to RDF.Serialization module for more information.
Specs
read_file(Path.t(), keyword()) :: {:ok, RDF.Graph.t() | RDF.Dataset.t()} | {:error, any()}
Deserializes a graph or dataset from a file.
It returns an {:ok, data}
tuple, with data
being the deserialized graph or
dataset, or {:error, reason}
if an error occurs.
Options
The format can be specified with the format
option and a format name or the
media_type
option and the media type of the format. If none of these are
given, the format gets inferred from the extension of the given file name.
Other available serialization-independent options:
:stream
: Allows to enable reading the data from a file directly via a stream (default:false
on this function,true
on the bang version):gzip
: Allows to read directly from a gzipped file (default:false
):file_mode
: A list with the ElixirFile.open
modes to be used for reading (default:[:read, :utf8]
)
Please refer to the documentation of the decoder of a RDF serialization format for format-specific options.