Fixes some internal links in the documentation

pull/70/head
Tpt 4 years ago
parent 793e942144
commit a228d266c5
  1. 2
      lib/src/lib.rs
  2. 2
      lib/src/model/literal.rs
  3. 4
      lib/src/model/named_node.rs
  4. 2
      lib/src/model/vocab.rs
  5. 4
      lib/src/sparql/service.rs

@ -14,7 +14,7 @@
//! //!
//! Oxigraph also provides a set of utility functions for reading, writing and processing RDF files. //! 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): //! Usage example with the [`MemoryStore`](store::memory::MemoryStore):
//! //!

@ -461,7 +461,7 @@ impl<'a> LiteralRef<'a> {
/// is valid [BCP47](https://tools.ietf.org/html/bcp47) language tag, /// is valid [BCP47](https://tools.ietf.org/html/bcp47) language tag,
/// and is lowercase. /// 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] #[inline]
pub fn new_language_tagged_literal_unchecked(value: &'a str, language: &'a str) -> Self { pub fn new_language_tagged_literal_unchecked(value: &'a str, language: &'a str) -> Self {
LiteralRef(LiteralRefContent::LanguageTaggedString { value, language }) LiteralRef(LiteralRefContent::LanguageTaggedString { value, language })

@ -34,7 +34,7 @@ impl NamedNode {
/// ///
/// It is the caller's responsibility to ensure that `iri` is a valid IRI. /// 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] #[inline]
pub fn new_unchecked(iri: impl Into<String>) -> Self { pub fn new_unchecked(iri: impl Into<String>) -> Self {
Self { iri: iri.into() } 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. /// 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] #[inline]
pub const fn new_unchecked(iri: &'a str) -> Self { pub const fn new_unchecked(iri: &'a str) -> Self {
Self { iri } Self { iri }

@ -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 { pub mod rdf {
//! [RDF](https://www.w3.org/TR/rdf11-concepts/) vocabulary //! [RDF](https://www.w3.org/TR/rdf11-concepts/) vocabulary

@ -11,7 +11,7 @@ use std::error::Error;
/// Handler for [SPARQL 1.1 Federated Query](https://www.w3.org/TR/sparql11-federated-query/) SERVICE. /// 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. /// before evaluating a SPARQL query that uses SERVICE calls.
/// ///
/// ``` /// ```
@ -52,7 +52,7 @@ use std::error::Error;
pub trait ServiceHandler { pub trait ServiceHandler {
type Error: Error + Send + Sync + 'static; 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<QueryResults, Self::Error>; fn handle(&self, service_name: NamedNode, query: Query) -> Result<QueryResults, Self::Error>;
} }

Loading…
Cancel
Save