rdf-ex/lib/rdf/serializations/ntriples.ex

27 lines
737 B
Elixir
Raw Normal View History

defmodule RDF.NTriples do
@moduledoc """
`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](http://www.w3.org/TeamSubmission/turtle/) and
[Notation3](http://www.w3.org/TeamSubmission/n3/) (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/>
"""
use RDF.Serialization
import RDF.Sigils
@id ~I<http://www.w3.org/ns/formats/N-Triples>
@extension "nt"
@content_type "application/n-triples"
end