2017-04-10 19:24:43 +00:00
|
|
|
defmodule RDF.NTriples do
|
|
|
|
@moduledoc """
|
2017-06-16 15:33:05 +00:00
|
|
|
`RDF.NTriples` provides support for reading and writing the N-Triples
|
|
|
|
serialization format.
|
2017-04-10 19:24:43 +00:00
|
|
|
|
|
|
|
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
|