Skip to main content
v2026.11,986 entries · CC-BY 4.0
CASRAICASRAI Working GroupsHelp write the standards you have to implement24 working groups propose, review and ratify the terms CASRAI publishes, one per dictionary domain. Community and observer seats start at about two hours a month; chairs and co-chairs give 6–8 hours a month. Applications are reviewed.Apply to join a group CASRAI · Volunteer seats
Dictionary termTrack BProposedv2026.2

Identifier syntax

The formal grammar that constrains the textual form of identifiers in a given scheme — what character sets, lengths, prefixes, separators, and check digits are allowed — typically expressed as a regular expression or BNF grammar in the scheme's specification.

ByCASRAI Editorial Board
· Last updated 5 Sept 2026

Working group for this domain: The persistent identifier ecosystem working group

Share this

Ask CASRAI · full access

Ask about Identifier syntax

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Editorial commentary

Identifier syntax in practice

Identifier syntax is the formal grammar constraining the textual form a valid identifier within a scheme may take — permitted character sets, length, fixed prefixes or delimiters, and any check character used to catch transcription errors — typically expressed in a scheme’s specification as a regular expression or a formal (BNF-style) grammar.

Worked syntax patterns

An ORCID iD has a fixed 16-digit pattern in four groups of four, with the final character an ISO 7064 mod-11-2 checksum digit (which may be the letter X): 0000-000X-XXXX-XXXX. A DOI has a registrant prefix beginning “10.” followed by a registrant code, then a forward slash and a case-insensitive suffix that can technically be any Unicode string the registrant chooses — DOI syntax is deliberately permissive at the suffix level, unlike ORCID’s fixed-format check-digit pattern. An ARK follows the pattern ark:/NAAN/Name[Qualifier], where NAAN is a registered Name Assigning Authority Number. A UUID follows fixed 8-4-4-4-12 hexadecimal grouping regardless of which UUID version generated it. Conforming to the declared syntax is a precondition for resolution to even be attempted — a string that fails an ORCID’s checksum, for instance, is rejected before any lookup happens, which is why client-side validation libraries typically check syntax locally before round-tripping a request to a resolver.

How this differs from “identifier scheme” — a real, deliberate distinction

Identifier syntax is one component nested inside the broader concept of an identifier scheme, not a synonym for it. A scheme is defined by four things together: syntax (the string-format rules covered here), a minting authority (who may issue new identifiers under the scheme), a metadata schema (what descriptive information must accompany registration), and a resolution service (the technical infrastructure that resolves an identifier string to a current location or record). Syntax alone tells you whether a string is well-formed; it says nothing about who was authorised to mint it, what metadata should exist behind it, or how to resolve it. Two identifiers can share syntactically similar formats while belonging to entirely different schemes with different minting authorities — syntax validity is necessary but never sufficient evidence that an identifier is real or currently registered.

Worked example / counter-example

A CRIS system validating a newly entered ORCID iD against the ^d{4}-d{4}-d{4}-d{3}[dX]$ pattern before attempting to resolve it against the ORCID registry is enforcing identifier syntax as a first-pass sanity check. A free-text author-name field, or a project label like “Q3 climate study,” is not identifier syntax at all — it has no defined grammar to validate against, which is exactly the ambiguity a properly-typed PID metadata field is designed to eliminate.

References

  • Paskin, N., “Digital Object Identifier (DOI) System,” in Encyclopedia of Library and Information Sciences, 2010.
  • ISO 7064 (check-character systems); RFC 8141 (URN syntax).

Examples

Worked examples

  • Is an instance

    ORCID syntax: ^\d{4}-\d{4}-\d{4}-\d{3}[\dX]$.

  • Is an instance

    DOI syntax: ^10\.\d{4,9}/[-._;()/:A-Za-z0-9]+$.

Counter-examples

Looks similar, but isn't

  • Not an instance

    A field label such as 'Authors' is not identifier syntax.

  • Not an instance

    A natural-language description of a paper is not identifier syntax.

Also known as

Identifier format

Machine-readable encodings

Use in your systems

JATS XML <kwd> element
xml
<kwd vocab="CASRAI Dictionary"
     vocab-identifier="https://casrai.org/dictionary/"
     vocab-term="Identifier syntax"
     vocab-term-identifier="https://casrai.org/dictionary/term/identifier-syntax">Identifier syntax</kwd>
Schema.org DefinedTerm (JSON-LD)
Schema.org DefinedTerm (JSON-LD)
json
{
  "@context": "https://schema.org",
  "@type": "DefinedTerm",
  "@id": "https://casrai.org/dictionary/term/identifier-syntax",
  "name": "Identifier syntax",
  "identifier": "https://casrai.org/dictionary/term/identifier-syntax",
  "description": "The formal grammar that constrains the textual form of identifiers in a given scheme — what character sets, lengths, prefixes, separators, and check digits are allowed — typically expressed as a regular expression or BNF grammar in the scheme's specification.",
  "inDefinedTermSet": "https://casrai.org/dictionary/domain/persistent-identifiers#set",
  "url": "https://casrai.org/dictionary/term/identifier-syntax",
  "alternateName": [
    "Identifier format"
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "publisher": {
    "@id": "https://casrai.org/#organization"
  },
  "author": {
    "@id": "https://casrai.org/#editorial-team"
  },
  "datePublished": "2026-05-21T02:12:25Z",
  "dateModified": "2026-09-05T14:22:51Z",
  "inLanguage": "en",
  "isAccessibleForFree": true
}

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →