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/>
|
|
|
|
"""
|
|
|
|
|
2018-03-07 09:33:09 +00:00
|
|
|
use RDF.Serialization.Format
|
2017-04-10 19:24:43 +00:00
|
|
|
|
|
|
|
import RDF.Sigils
|
|
|
|
|
2018-03-08 01:14:49 +00:00
|
|
|
@id ~I<http://www.w3.org/ns/formats/N-Triples>
|
|
|
|
@name :ntriples
|
|
|
|
@extension "nt"
|
|
|
|
@media_type "application/n-triples"
|
2017-04-10 19:24:43 +00:00
|
|
|
|
|
|
|
end
|