---
id: "lcnaf_id"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["publishing", "objectids"]
country: ["US"]
langs: ["common"]
quality: 80
url: "http://registry.apicrafter.io/datatype/lcnaf_id"
---

# Library of Congress authority ID (LCCN of an authority record) (`lcnaf_id`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Identifier of a name, subject or genre authority record of the Library of Congress: a prefix such as n, nb, nr, no or sh, then the year and a serial number. It is used in library catalogues and in id.loc.gov.

- Parent datatype: `lccn`
- Personal data (PII): no
- Categories: Publishing and print (publishing), Objects identifiers (objectids)
- Countries: United States (US)
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(cf|ct|gf|n|nb|nr|no|ns|sh|sj)([4-9][0-9]|00|01|20[0-2][0-9])[0-9]{6}$
```

## Examples

- `sh2020006558` — astronomical survey
- `n81092084` — Royal Society for the Prevention of Cruelty to Animals
- `n84023326` — Baranagar

## Mappings

- wikidata: `P244`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Library_of_Congress_Name_Authority_File>
- doc: <https://id.loc.gov/authorities/names.html>
- wikidata: <https://www.wikidata.org/wiki/Property:P244>

## Quality

Score 80/100. Missing: negative example, translation, detector coverage.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/lcnaf_id.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/US/publishing/lcnaf_id.yaml>
