Catman...tements(3pm)
πΈ 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 aurlβ¦ π
π¨ Bestie warning:urlis required.subjectandpredicateare 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
- debian bookworm: libcatmandu-rdf-perl 0.32-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatmandu-rdf-perl 0.32-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatmandu-rdf-perl 0.32-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu questing: libcatmandu-rdf-perl 0.32-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms