Catmandu::Fix::aref_query - copy values of RDF in aREF to a new field
In Catmandu Fix language
aref_query( dc_title => title ) aref_query( query => 'dc_title', field => 'title' ) aref_query( 'http://example.org/subject', dc_title => title )
In Perl code
use Catmandu::Fix::aref_query as => 'my_query'; use RDF::aREF; my $rdf = encode_aref("example.ttl"); my_query( $rdf, dc_title => 'title' );
This Catmandu::Fix can be used to map values of imported RDF, given in aREF structure
Optional subject URI (first argument). By default, the fields _uri and _uri are used.
_uri
aREF query expression (first or second argument)
Field name to map RDF data to (last argument). Existing values are also kept.
Function aref_query in RDF::aREF
aref_query
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.