diff --git a/lib/oxrdf/src/dataset.rs b/lib/oxrdf/src/dataset.rs index 72a06cc6..05ccbb56 100644 --- a/lib/oxrdf/src/dataset.rs +++ b/lib/oxrdf/src/dataset.rs @@ -1,4 +1,4 @@ -//! [In-memory implementation](super::Dataset) of [RDF datasets](https://www.w3.org/TR/rdf11-concepts/#dfn-rdf-dataset). +//! [In-memory implementation](Dataset) of [RDF datasets](https://www.w3.org/TR/rdf11-concepts/#dfn-rdf-dataset). //! //! Usage example: //! ``` @@ -24,7 +24,7 @@ //! # Result::<_,Box>::Ok(()) //! ``` //! -//! See also [`Graph`](super::Graph) if you only care about plain triples. +//! See also [`Graph`] if you only care about plain triples. use crate::interning::*; use crate::SubjectRef; diff --git a/lib/oxrdf/src/graph.rs b/lib/oxrdf/src/graph.rs index 195b75a1..4298684c 100644 --- a/lib/oxrdf/src/graph.rs +++ b/lib/oxrdf/src/graph.rs @@ -1,4 +1,4 @@ -//! [In-memory implementation](super::Graph) of [RDF graphs](https://www.w3.org/TR/rdf11-concepts/#dfn-rdf-graph). +//! [In-memory implementation](Graph) of [RDF graphs](https://www.w3.org/TR/rdf11-concepts/#dfn-rdf-graph). //! //! Usage example: //! ``` @@ -20,7 +20,7 @@ //! # Result::<_,Box>::Ok(()) //! ``` //! -//! See also [`Dataset`](super::Dataset) if you want to get support of multiple RDF graphs at the same time. +//! See also [`Dataset`] if you want to get support of multiple RDF graphs at the same time. use crate::dataset::*; use crate::*; diff --git a/lib/sparesults/src/lib.rs b/lib/sparesults/src/lib.rs index 6229072e..223dcaa8 100644 --- a/lib/sparesults/src/lib.rs +++ b/lib/sparesults/src/lib.rs @@ -363,7 +363,7 @@ impl QueryResultsSerializer { Self { format } } - /// Write a boolean query result (from an `ASK` query) into the given [`Write`](std::io::Write) implementation. + /// Write a boolean query result (from an `ASK` query) into the given [`Write`] implementation. /// /// Example in XML (the API is the same for JSON and TSV): /// ``` @@ -384,7 +384,7 @@ impl QueryResultsSerializer { } } - /// Returns a `SolutionsWriter` allowing writing query solutions into the given [`Write`](std::io::Write) implementation. + /// Returns a `SolutionsWriter` allowing writing query solutions into the given [`Write`] implementation. /// /// Example in XML (the API is the same for JSON and TSV): /// ``` diff --git a/lib/src/io/read.rs b/lib/src/io/read.rs index 90dcb1ca..5d5ddeb2 100644 --- a/lib/src/io/read.rs +++ b/lib/src/io/read.rs @@ -14,9 +14,9 @@ use std::io::BufRead; /// Parsers for RDF graph serialization formats. /// /// It currently supports the following formats: -/// * [N-Triples](https://www.w3.org/TR/n-triples/) ([`GraphFormat::NTriples`](super::GraphFormat::NTriples)) -/// * [Turtle](https://www.w3.org/TR/turtle/) ([`GraphFormat::Turtle`](super::GraphFormat::Turtle)) -/// * [RDF/XML](https://www.w3.org/TR/rdf-syntax-grammar/) ([`GraphFormat::RdfXml`](super::GraphFormat::RdfXml)) +/// * [N-Triples](https://www.w3.org/TR/n-triples/) ([`GraphFormat::NTriples`]) +/// * [Turtle](https://www.w3.org/TR/turtle/) ([`GraphFormat::Turtle`]) +/// * [RDF/XML](https://www.w3.org/TR/rdf-syntax-grammar/) ([`GraphFormat::RdfXml`]) /// /// ``` /// use oxigraph::io::{GraphFormat, GraphParser}; @@ -67,7 +67,7 @@ impl GraphParser { Ok(self) } - /// Executes the parsing itself on a [`BufRead`](std::io::BufRead) implementation and returns an iterator of triples. + /// Executes the parsing itself on a [`BufRead`] implementation and returns an iterator of triples. #[allow(clippy::unnecessary_wraps)] pub fn read_triples(&self, reader: R) -> Result, ParseError> { Ok(TripleReader { @@ -167,8 +167,8 @@ impl TripleReader { /// A parser for RDF dataset serialization formats. /// /// It currently supports the following formats: -/// * [N-Quads](https://www.w3.org/TR/n-quads/) ([`DatasetFormat::NQuads`](super::DatasetFormat::NQuads)) -/// * [TriG](https://www.w3.org/TR/trig/) ([`DatasetFormat::TriG`](super::DatasetFormat::TriG)) +/// * [N-Quads](https://www.w3.org/TR/n-quads/) ([`DatasetFormat::NQuads`]) +/// * [TriG](https://www.w3.org/TR/trig/) ([`DatasetFormat::TriG`]) /// /// ``` /// use oxigraph::io::{DatasetFormat, DatasetParser}; @@ -219,7 +219,7 @@ impl DatasetParser { Ok(self) } - /// Executes the parsing itself on a [`BufRead`](std::io::BufRead) implementation and returns an iterator of quads. + /// Executes the parsing itself on a [`BufRead`] implementation and returns an iterator of quads. #[allow(clippy::unnecessary_wraps)] pub fn read_quads(&self, reader: R) -> Result, ParseError> { Ok(QuadReader { diff --git a/lib/src/io/write.rs b/lib/src/io/write.rs index ab52b6ed..a2bddc9c 100644 --- a/lib/src/io/write.rs +++ b/lib/src/io/write.rs @@ -10,9 +10,9 @@ use std::io::{self, Write}; /// A serializer for RDF graph serialization formats. /// /// It currently supports the following formats: -/// * [N-Triples](https://www.w3.org/TR/n-triples/) ([`GraphFormat::NTriples`](super::GraphFormat::NTriples)) -/// * [Turtle](https://www.w3.org/TR/turtle/) ([`GraphFormat::Turtle`](super::GraphFormat::Turtle)) -/// * [RDF/XML](https://www.w3.org/TR/rdf-syntax-grammar/) ([`GraphFormat::RdfXml`](super::GraphFormat::RdfXml)) +/// * [N-Triples](https://www.w3.org/TR/n-triples/) ([`GraphFormat::NTriples`]) +/// * [Turtle](https://www.w3.org/TR/turtle/) ([`GraphFormat::Turtle`]) +/// * [RDF/XML](https://www.w3.org/TR/rdf-syntax-grammar/) ([`GraphFormat::RdfXml`]) /// /// ``` /// use oxigraph::io::{GraphFormat, GraphSerializer}; @@ -41,7 +41,7 @@ impl GraphSerializer { Self { format } } - /// Returns a [`TripleWriter`] allowing writing triples into the given [`Write`](std::io::Write) implementation + /// Returns a [`TripleWriter`] allowing writing triples into the given [`Write`] implementation pub fn triple_writer(&self, writer: W) -> io::Result> { Ok(TripleWriter { formatter: match self.format { @@ -152,8 +152,8 @@ impl TripleWriter { /// A serializer for RDF graph serialization formats. /// /// It currently supports the following formats: -/// * [N-Quads](https://www.w3.org/TR/n-quads/) ([`DatasetFormat::NQuads`](super::DatasetFormat::NQuads)) -/// * [TriG](https://www.w3.org/TR/trig/) ([`DatasetFormat::TriG`](super::DatasetFormat::TriG)) +/// * [N-Quads](https://www.w3.org/TR/n-quads/) ([`DatasetFormat::NQuads`]) +/// * [TriG](https://www.w3.org/TR/trig/) ([`DatasetFormat::TriG`]) /// /// ``` /// use oxigraph::io::{DatasetFormat, DatasetSerializer}; @@ -183,7 +183,7 @@ impl DatasetSerializer { Self { format } } - /// Returns a [`QuadWriter`] allowing writing triples into the given [`Write`](std::io::Write) implementation + /// Returns a [`QuadWriter`] allowing writing triples into the given [`Write`] implementation #[allow(clippy::unnecessary_wraps)] pub fn quad_writer(&self, writer: W) -> io::Result> { Ok(QuadWriter { diff --git a/lib/src/sparql/service.rs b/lib/src/sparql/service.rs index b92337e3..3d6576e2 100644 --- a/lib/src/sparql/service.rs +++ b/lib/src/sparql/service.rs @@ -52,7 +52,7 @@ use std::time::Duration; pub trait ServiceHandler { type Error: Error + Send + Sync + 'static; - /// Evaluates a [`Query`] against a given service identified by a [`NamedNode`](crate::model::NamedNode). + /// Evaluates a [`Query`] against a given service identified by a [`NamedNode`]. fn handle(&self, service_name: NamedNode, query: Query) -> Result; }