Catmandu::Fix::aref_query(3pm)

Catmandu::Fix::aref_query3pm

Copy values of rdf in aref to a new field

Usage

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' );

Overview

This Catmandu::Fix can be used to map values of imported RDF, given in aREF <http://gbv.github.io/aREF/> structure

Arguments

subject

Optional subject URI (first argument). By default, the fields "_uri" and "_uri" are used.

query

aREF query expression (first or second argument)

path

Field name to map RDF data to (last argument). Existing values are also kept.

Releases

6 releases since Debian 8 (Jessie); the text changed 3 times.

  1. 8
  2. 9
  3. 10–11
  4. 12–13

From libcatmandu-rdf-perl 0.32-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.