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
To install Catmandu::RDF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::RDF
CPAN shell
perl -MCPAN -e shell install Catmandu::RDF
For more information on module installation, please visit the detailed CPAN module installation guide.