ORCID (Open Researcher and Contributor ID) scheme.
See https://support.orcid.org/hc/en-us/articles/360006897674-Structure-of-the-ORCID-Identifier
ORCID and ISNI
ORCID’s format is compatible with ISO 27729 that standardises ISNI. ORCID, Inc., the governing nonprofit, is an accredited ISNI Registration Agency, and two reserved numeric blocks within the ISNI range are dedicated to ORCID-issued identifiers. ORCIDs are frequently matched into corresponding ISNI records, however, there is no guarantee (see).
Summary
Functions
Builds a URI for the given ORCID.
Checks whether a string is an ORCID.
Normalizes an ORCID.
Functions
Builds a URI for the given ORCID.
Examples
iex> IDUtils.Schemes.ORCID.build_uri("0000-0002-1825-0097")
{:ok, %URI{scheme: "https", host: "orcid.org", path: "/0000-0002-1825-0097", port: 443}}
Checks whether a string is an ORCID.
Examples
iex> IDUtils.Schemes.ORCID.match?("0000-0002-1825-0097")
true
iex> IDUtils.Schemes.ORCID.match?("https://orcid.org/0000-0002-1694-233X")
true
iex> IDUtils.Schemes.ORCID.match?("0000 0002 1825 0097")
true
iex> IDUtils.Schemes.ORCID.match?("0008-9999-9999-9996")
false
Normalizes an ORCID.
Examples
iex> IDUtils.Schemes.ORCID.normalize("0000-0002-1825-0097")
{:ok, "0000-0002-1825-0097"}
iex> IDUtils.Schemes.ORCID.normalize("0000000218250097")
{:ok, "0000-0002-1825-0097"}
iex> IDUtils.Schemes.ORCID.normalize("0000 0002 1825 0097")
{:ok, "0000-0002-1825-0097"}
iex> IDUtils.Schemes.ORCID.normalize("https://orcid.org/0000-0002-1825-0097")
{:ok, "0000-0002-1825-0097"}
iex> IDUtils.Schemes.ORCID.normalize("not-an-orcid")
{:error, :invalid_identifier}