From d19947414e4158891e81e1283d5c428505e84fae Mon Sep 17 00:00:00 2001 From: Tpt Date: Thu, 16 Nov 2023 18:49:23 +0100 Subject: [PATCH] The N-Triples serializer outputs canonical N-Triples --- lib/oxrdfio/src/serializer.rs | 2 +- lib/oxttl/src/ntriples.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/oxrdfio/src/serializer.rs b/lib/oxrdfio/src/serializer.rs index 9bfaceec..347e40f2 100644 --- a/lib/oxrdfio/src/serializer.rs +++ b/lib/oxrdfio/src/serializer.rs @@ -26,7 +26,7 @@ use tokio::io::AsyncWrite; /// It currently supports the following formats: /// * [N3](https://w3c.github.io/N3/spec/) ([`RdfFormat::N3`]) /// * [N-Quads](https://www.w3.org/TR/n-quads/) ([`RdfFormat::NQuads`]) -/// * [N-Triples](https://www.w3.org/TR/n-triples/) ([`RdfFormat::NTriples`]) +/// * [canonical](https://www.w3.org/TR/n-triples/#canonical-ntriples) [N-Triples](https://www.w3.org/TR/n-triples/) ([`RdfFormat::NTriples`]) /// * [RDF/XML](https://www.w3.org/TR/rdf-syntax-grammar/) ([`RdfFormat::RdfXml`]) /// * [TriG](https://www.w3.org/TR/trig/) ([`RdfFormat::TriG`]) /// * [Turtle](https://www.w3.org/TR/turtle/) ([`RdfFormat::Turtle`]) diff --git a/lib/oxttl/src/ntriples.rs b/lib/oxttl/src/ntriples.rs index 4fd06227..674dc27a 100644 --- a/lib/oxttl/src/ntriples.rs +++ b/lib/oxttl/src/ntriples.rs @@ -315,7 +315,7 @@ impl LowLevelNTriplesReader { } } -/// A [N-Triples](https://www.w3.org/TR/n-triples/) serializer. +/// A [canonical](https://www.w3.org/TR/n-triples/#canonical-ntriples) [N-Triples](https://www.w3.org/TR/n-triples/) serializer. /// /// Support for [N-Triples-star](https://w3c.github.io/rdf-star/cg-spec/2021-12-17.html#n-triples-star) is available behind the `rdf-star` feature. ///