Catman..._search(3pm)

πŸ’– NAME πŸ’–

okay so this is Catman..._search(3pm) from the User Contributed Perl Documentation bestie, and the module itself is Catmandu::Fix::aat_search β€” it does a search for a term in the AAT. that's the whole vibe. periodt. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

aat_search(
    path,
    -lang: nl
)

🌸 DESCRIPTION 🌸

so basically it performs a search for a term and the SPARQL endpoint http://vocab.getty.edu/sparql of the AAT. 🫢

this fix will attempt to find a Subject that contains a prefLabel, altLabel or a Subject ID containing the searched for term. more deets can be found here http://vocab.getty.edu/doc/#Full_Text_Search (and jsyk, "luc:term" is used). iykyk πŸ’…

it returns an array of results containing the following data:

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

like, it's giving data. iconic.

πŸŽ€ PARAMETERS πŸŽ€

Required parameters

  • path β€” Path to the term. no path, no search, sorry bestie 😭

Optional parameters

  • lang β€” Language of both the term that is matched and the prefLabel that is returned. so it's doing double duty fr fr πŸ’–

πŸ’œ AUTHOR πŸ’œ

Pieter De Praetere <pieter at packed.be > πŸ‘‘


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. slay πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

  • Catmandu
  • Catmandu::AAT
  • Catmandu::Store::AAT
  • Catmandu::Fix::aat_search

and that's the whole page bestie πŸ¦‹ this was perl v5.36.0, dated 2023-02-04 β€” written up with so much love, mwah πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from