RDF.ex v0.4.1 RDF.NTriples View Source

RDF.NTriples provides support for reading and writing the N-Triples serialization format.

N-Triples is a line-based plain-text format for encoding an RDF graph. It is a very restricted, explicit and well-defined subset of both Turtle and Notation3 (N3).

An example of an RDF statement in N-Triples format:

<https://hex.pm/> <http://purl.org/dc/terms/title> "Hex" .

see https://www.w3.org/TR/n-triples/

Link to this section Summary

Functions

The RDF.Serialization.Decoder module for the serialization format

The RDF.Serialization.Encoder module for the serialization format

The usual file extension for the serialization format

An IRI of the serialization format

The MIME type of the serialization format

An name atom of the serialization format

A map with the supported options of the Encoder and Decoder for the serialization format

Link to this section Functions

The RDF.Serialization.Decoder module for the serialization format.

Callback implementation for RDF.Serialization.Format.decoder/0.

The RDF.Serialization.Encoder module for the serialization format.

Callback implementation for RDF.Serialization.Format.encoder/0.

The usual file extension for the serialization format.

Callback implementation for RDF.Serialization.Format.extension/0.

An IRI of the serialization format.

Callback implementation for RDF.Serialization.Format.id/0.

The MIME type of the serialization format.

Callback implementation for RDF.Serialization.Format.media_type/0.

An name atom of the serialization format.

Callback implementation for RDF.Serialization.Format.name/0.

A map with the supported options of the Encoder and Decoder for the serialization format.

Callback implementation for RDF.Serialization.Format.options/0.

Link to this function read_file(file, opts \\ []) View Source
Link to this function read_file!(file, opts \\ []) View Source
Link to this function read_string(content, opts \\ []) View Source
Link to this function read_string!(content, opts \\ []) View Source
Link to this function write_file(data, path, opts \\ []) View Source
Link to this function write_file!(data, path, opts \\ []) View Source
Link to this function write_string(data, opts \\ []) View Source
Link to this function write_string!(data, opts \\ []) View Source