Liking cljdoc? Tell your friends :D

event-data-common.landing-page-domain

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.
raw docstring

artifact-nameclj


assoc-domain-decision-structureclj

(assoc-domain-decision-structure context)

Associate the context with a domain-decision-structure.

Associate the context with a domain-decision-structure.
raw docstring

cache-millisecondsclj

One hour

One hour
raw docstring

cached-domain-structureclj

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.
raw docstring

domain-confirmed-for-doi?clj

(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?
raw docstring

domain-recognised-for-doi?clj

(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?
raw docstring

domain-recognised?clj

(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.
raw docstring

get-recognised-domainsclj

(get-recognised-domains {structure :domain-decision-structure})

Return a sequence of all recognised domains.

Return a sequence of all recognised domains.
raw docstring

parse-domain-decision-structureclj

(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.
raw docstring

retrieve-domain-decision-structureclj

(retrieve-domain-decision-structure)

Return tuple of [version-url, domain-decision-structure]

Return tuple of [version-url, domain-decision-structure]
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close