---
name: "Catmandu::Fix::aat_match"
section: "3pm"
platform: "linux"
package: "libcatmandu-aat-perl"
version: "0.03-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Catmandu::Fix::aat_match"
---

# Catmandu::Fix::aat\_match(3pm)

Perform a direct match between a term and a Subject in the AAT

## NAME

Catmandu::Fix::aat\_match - Perform a direct match between a term and a Subject in the AAT

## SYNOPSIS

```
  aat_match(
      path,
      -lang: nl
  )
```

## DESCRIPTION

Perform a direct match between a term and the SPARQL endpoint \<http://vocab.getty.edu/sparql\> of the AAT. This fix will attempt to find a *Subject* for which the *prefLabel* in *lang* (optional, default `"nl"`) equals the term. Will return a single item if one is found, or an empty hash if none was found.

Returns the following data:

```
  {
    'id'        => 'The dc:identifier of the Subject',
    'prefLabel' => 'The prefLabel in the provided language',
    'uri'       => 'The URI of the Subject'
  }
```

### PARAMETERS

*Required parameters*

- "path"

  Path to the term.

*Optional parameters*

- "lang"

  Language of both the *prefLabel* that is matched and the *prefLabel* that is returned.

## AUTHOR

Pieter De Praetere \<pieter at packed.be \>

## COPYRIGHT

Copyright 2017- PACKED vzw

## LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

## SEE ALSO

Catmandu Catmandu::AAT Catmandu::Store::AAT Catmandu::Fix::aat\_search
