Work with landing page domains. The landing-page-structure Artifact is periodically retrieved and cached, and this is used for decision-making. While the value is stored in this namespace, it is associated into the context object so the precise version is well-known and on the record.
Work with landing page domains. The landing-page-structure Artifact is periodically retrieved and cached, and this is used for decision-making. While the value is stored in this namespace, it is associated into the context object so the precise version is well-known and on the record.
(assoc-domain-decision-structure context)
Associate the context with a domain-decision-structure.
Associate the context with a domain-decision-structure.
Cache the domain list and version url. It's very rarely actually updated.
Cache the domain list and version url. It's very rarely actually updated.
(domain-confirmed-for-doi? {structure :domain-decision-structure} url doi)
Is the URL recognised as belonging to a domain that hosts landing pages with confirmed metadata for this DOI prefix?
Is the URL recognised as belonging to a domain that hosts landing pages with confirmed metadata for this DOI prefix?
(domain-recognised-for-doi? {structure :domain-decision-structure} url doi)
Is the URL recognised as belonging to a domain that hosts landing pages for this DOI prefix?
Is the URL recognised as belonging to a domain that hosts landing pages for this DOI prefix?
(domain-recognised? {domain-decision-structure :domain-decision-structure} url)
Is the URL recognised as belonging to a domain that hosts landing pages in general? Expect a context with a landing-page-structure object.
Is the URL recognised as belonging to a domain that hosts landing pages in general? Expect a context with a landing-page-structure object.
(get-recognised-domains {structure :domain-decision-structure})
Return a sequence of all recognised domains.
Return a sequence of all recognised domains.
(parse-domain-decision-structure input)
Parse a deserialized JSON structure into something we can query. We expect the Artifact to have the following fields: 'domains' - the list of recognised domains 'prefixes' - the list of recognised DOI prefixes 'domains-prefixes' - Structure of domain -> prefix -> heuristics. Heuristics are: 'domain-recognised' - Have we seen this domain redirected to from this prefix? 'domain-confirmed' - Have we seen pages on this domain correctly display their DOI?
Transform the structure into almost exactly the same, but turn domains and prefxies into sets.
Parse a deserialized JSON structure into something we can query. We expect the Artifact to have the following fields: 'domains' - the list of recognised domains 'prefixes' - the list of recognised DOI prefixes 'domains-prefixes' - Structure of domain -> prefix -> heuristics. Heuristics are: 'domain-recognised' - Have we seen this domain redirected to from this prefix? 'domain-confirmed' - Have we seen pages on this domain correctly display their DOI? Transform the structure into almost exactly the same, but turn domains and prefxies into sets.
(retrieve-domain-decision-structure)
Return tuple of [version-url, domain-decision-structure]
Return tuple of [version-url, domain-decision-structure]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close