# com.nahdig.purl

> Deterministic PURL lookup record. rkey = sha256(versionless canonical purl) as lowercase hex.

- Kind: record
- Record key: any
- Authority: nahdig.com
- Lexicon: 1
- Published by [nahdig.com](https://lexicon.garden/identity/did:plc:zmuf6p7ahfh4ly4wp4bx57hx), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:zmuf6p7ahfh4ly4wp4bx57hx/com.nahdig.purl)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:zmuf6p7ahfh4ly4wp4bx57hx/com.nahdig.purl/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:zmuf6p7ahfh4ly4wp4bx57hx/com.nahdig.purl/analytics)

## Record (`com.nahdig.purl`)

Type: record · key any

### Properties

- `purl` (string, required)
  - Constraints: minLength: 1
- `software` (array, required): Strong references to com.nahdig.software records for this PURL.
  - Constraints: minLength: 1
  - `items` (ref)
    - Reference: `com.atproto.repo.strongRef#main`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "any",
      "record": {
        "properties": {
          "purl": {
            "minLength": 1,
            "type": "string"
          },
          "software": {
            "description": "Strong references to com.nahdig.software records for this PURL.",
            "items": {
              "ref": "com.atproto.repo.strongRef#main",
              "type": "ref"
            },
            "minLength": 1,
            "type": "array"
          }
        },
        "required": [
          "purl",
          "software"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "Deterministic PURL lookup record. rkey = sha256(versionless canonical purl) as lowercase hex.",
  "id": "com.nahdig.purl",
  "lexicon": 1
}
```
