diff --git a/lib/src/lib.rs b/lib/src/lib.rs index 88d4fdfd..9cc04e01 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -14,7 +14,7 @@ //! //! Oxigraph also provides a set of utility functions for reading, writing and processing RDF files. //! -//! The disabled by default `"sophia"` feature provides [`sophia_api`] traits implemention on Oxigraph terms and stores. +//! The disabled by default `"sophia"` feature provides [`sophia_api`](https://docs.rs/sophia_api/) traits implemention on Oxigraph terms and stores. //! //! Usage example with the [`MemoryStore`](store::memory::MemoryStore): //! diff --git a/lib/src/model/literal.rs b/lib/src/model/literal.rs index 7e0a0fc0..fb70c9d6 100644 --- a/lib/src/model/literal.rs +++ b/lib/src/model/literal.rs @@ -461,7 +461,7 @@ impl<'a> LiteralRef<'a> { /// is valid [BCP47](https://tools.ietf.org/html/bcp47) language tag, /// and is lowercase. /// - /// [`LiteralRef::new_language_tagged_literal()`] is a safe version of this constructor and should be used for untrusted data. + /// [`Literal::new_language_tagged_literal()`] is a safe version of this constructor and should be used for untrusted data. #[inline] pub fn new_language_tagged_literal_unchecked(value: &'a str, language: &'a str) -> Self { LiteralRef(LiteralRefContent::LanguageTaggedString { value, language }) diff --git a/lib/src/model/named_node.rs b/lib/src/model/named_node.rs index e0ef8118..2cd17f27 100644 --- a/lib/src/model/named_node.rs +++ b/lib/src/model/named_node.rs @@ -34,7 +34,7 @@ impl NamedNode { /// /// It is the caller's responsibility to ensure that `iri` is a valid IRI. /// - /// [`NamedNode::parse()`] is a safe version of this constructor and should be used for untrusted data. + /// [`NamedNode::new()`] is a safe version of this constructor and should be used for untrusted data. #[inline] pub fn new_unchecked(iri: impl Into) -> Self { Self { iri: iri.into() } @@ -123,7 +123,7 @@ impl<'a> NamedNodeRef<'a> { /// /// It is the caller's responsibility to ensure that `iri` is a valid IRI. /// - /// [`NamedNodeRef::parse()`] is a safe version of this constructor and should be used for untrusted data. + /// [`NamedNode::new()`] is a safe version of this constructor and should be used for untrusted data. #[inline] pub const fn new_unchecked(iri: &'a str) -> Self { Self { iri } diff --git a/lib/src/model/vocab.rs b/lib/src/model/vocab.rs index 6e095e75..1551138b 100644 --- a/lib/src/model/vocab.rs +++ b/lib/src/model/vocab.rs @@ -1,4 +1,4 @@ -//! Provides ready to use [`NamedNodeRef`]s for basic RDF vocabularies +//! Provides ready to use [`NamedNodeRef`](super::NamedNodeRef)s for basic RDF vocabularies pub mod rdf { //! [RDF](https://www.w3.org/TR/rdf11-concepts/) vocabulary diff --git a/lib/src/sparql/service.rs b/lib/src/sparql/service.rs index 98474e33..cd092503 100644 --- a/lib/src/sparql/service.rs +++ b/lib/src/sparql/service.rs @@ -11,7 +11,7 @@ use std::error::Error; /// Handler for [SPARQL 1.1 Federated Query](https://www.w3.org/TR/sparql11-federated-query/) SERVICE. /// -/// Should be given to [`QueryOptions`](QueryOptions::with_service_handler()) +/// Should be given to [`QueryOptions`](super::QueryOptions::with_service_handler()) /// before evaluating a SPARQL query that uses SERVICE calls. /// /// ``` @@ -52,7 +52,7 @@ use std::error::Error; pub trait ServiceHandler { type Error: Error + Send + Sync + 'static; - /// Evaluates a [`Query`] against a given service identified by a [`NamedNode`](super::model::NamedNode). + /// Evaluates a [`Query`] against a given service identified by a [`NamedNode`](crate::model::NamedNode). fn handle(&self, service_name: NamedNode, query: Query) -> Result; }