pub fn namespace_sources<'a>(
fs: &Fs,
namespace: &str,
typed: &str,
preferred: &PreferredPrefixes,
locals: impl IntoIterator<Item = (&'a LocalPrefix, Option<&'a ConfiguredOntology>)>,
) -> Vec<NamespaceSource<'a>>Expand description
Every document the server loads for namespace, written as prefix: in the
user’s document.
This is the single source of truth for document identity: the fetch system spawns exactly these documents, and links / goto-definition point at them.
- Configured ontologies for the namespace, one document per location.
- Otherwise built-in LOV entries for the namespace, at
<cache>/lov/<name>.ttl. - Otherwise a remote LOV lookup, also at
<cache>/lov/<name>.ttl.
<name> is the vocabulary’s preferred prefix name, so every document using
the namespace shares one file whatever prefix it declares. Only for an unknown
namespace does the name typed in the document get used.