Catman...tements(3pm)

πŸ“¦
version 0.32 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing

🌸 NAME

Catmandu::Fix::rdf_ldf_statements β€” okay bestie, this is the Catmandu Fix that goes and looks up an object into an LDF endpoint. It's giving Linked Data Fragments detective energy and we're obsessed. πŸ’…

It lives in the User Contributed Perl Documentation for perl module section 3pm, iykyk.


✨ SYNOPSIS ✨

# Replace a name with an array of matching VIAF records
# name: "\"Einstein, Albert, 1879-1955\""
rdf_ldf_statements(name,url:"http://data.linkedatafragments.org/viaf",predicate:"http://schema.org/alternateName")

# name:
#   - http://viaf.org/viaf/75121530

Like… you feed it a name, it hands you back a whole array of VIAF records. Main character behavior fr fr. πŸ¦‹


πŸ’– DESCRIPTION πŸ’–

So this Catmandu::Fix can be used to find, at a Linked Data Fragments endpoint, all subject URIs for which the object has a specific value found at a path. Lowkey magic, highkey useful. E.g.

rdf_ldf_statements(name,url:"http://data.linkedatafragments.org/viaf")

which means: go search at the endpoint http://data.linkedatafragments.org/viaf for all the subjects for which the object is the value found in 'name', and then replace the name value with all the found subjects. Slay. ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • subject β€” an optional subject URI to be used in the LDF query. Optional! So if you don't bring it, no worries bestie. 🫢
  • predicate β€” an optional predicate URI to be used in the LDF query. Also optional, also vibing.
  • url β€” Required URL to the Linked Data Fragments endpoint. Like… this one is not optional, she is mandatory, she is the moment. Not me showing up without a url… πŸ’€
🚨 Bestie warning: url is required. subject and predicate are optional. Do not mix these up, I am begging. πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

  • Catmandu::Fix β€” the mothership, the blueprint, the blueprint queen herself. Go read it. 🌈

πŸ’– ✨ πŸŽ€ And that's the whole page, gorgeous! This gem came to you from perl v5.36.0, dated 2022-12-06, under the User Contributed Perl Documentation. Periodt. πŸ’…πŸŒΈ πŸ¦‹

πŸ“¦ where this page comes from