RDF.ex v0.7.1 RDF.NQuads View Source
RDF.NQuads
provides support for reading the N-Quads serialization
format.
N-Quads is a line-based plain-text format for encoding an RDF dataset, i.e. a collection of RDF graphs.
An example of an RDF statement in N-Quads format:
<https://hex.pm/> <http://purl.org/dc/terms/title> "Hex" <http://example.org/graphs/example> .
Link to this section Summary
Link to this section Functions
Link to this function
read_file(file, opts \\ [])
View Sourceread_file(Path.t(), keyword()) :: {:ok, RDF.Graph.t() | RDF.Dataset.t()} | {:error, any()}
Link to this function
read_file!(file, opts \\ [])
View Sourceread_file!(Path.t(), keyword()) :: RDF.Graph.t() | RDF.Dataset.t()
Link to this function
read_string(content, opts \\ [])
View Sourceread_string(String.t(), keyword()) :: {:ok, RDF.Graph.t() | RDF.Dataset.t()} | {:error, any()}
Link to this function
read_string!(content, opts \\ [])
View Sourceread_string!(String.t(), keyword()) :: RDF.Graph.t() | RDF.Dataset.t()
Link to this function
write_file(data, path, opts \\ [])
View Sourcewrite_file(RDF.Graph.t() | RDF.Dataset.t(), Path.t(), keyword()) :: :ok | {:error, any()}
Link to this function
write_file!(data, path, opts \\ [])
View Sourcewrite_file!(RDF.Graph.t() | RDF.Dataset.t(), Path.t(), keyword()) :: :ok
Link to this function
write_string(data, opts \\ [])
View Sourcewrite_string(RDF.Graph.t() | RDF.Dataset.t(), keyword()) :: {:ok, String.t()} | {:error, any()}
Link to this function
write_string!(data, opts \\ [])
View Sourcewrite_string!(RDF.Graph.t() | RDF.Dataset.t(), keyword()) :: String.t()