DOKK / manpages / debian 12 / libcatmandu-rdf-perl / Catmandu::Fix::rdf_ldf_statements.3pm.en
Catmandu::Fix::rdf_ldf_statements(3pm) User Contributed Perl Documentation Catmandu::Fix::rdf_ldf_statements(3pm)

Catmandu::Fix::rdf_ldf_statements - lookup an object into a LDF endpoint

    # 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

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. E.g.

   rdf_ldf_statements(name,url:"http://data.linkedatafragments.org/viaf")
 means, search at the endpoint http://data.linkedatafragments.org/viaf all the
 subjects for which the object is the value found in 'name', and replace the name value
 with all the found subjects.

Optional subject URI to be used in the LDF query
Optional predicate URI to be used in the LDF query
Required URL to the Linked Data Fragments endpoint

Catmandu::Fix

2022-12-06 perl v5.36.0