Changeset 34871


Ignore:
Timestamp:
2021-02-16T01:01:00+13:00 (3 years ago)
Author:
davidb
Message:

Key changes: plugin now supports 'exploding' and more careful specification of default process_exp regex

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/perllib/plugins/JSONSPARQLResultPlugin.pm

    r34834 r34871  
    7070        'abstract' => "no",
    7171        'inherits' => "yes",
     72        'explodes' => "yes",
    7273        'args'     => $arguments };
    7374
     
    8990
    9091sub get_default_process_exp {
    91     return q^(?i).*sparql.*(\.json)$^;
     92    return q%(?i).*/sparqlresults[^/]*.json$%;
    9293}
    9394
     
    189190    }
    190191
    191     # Iterate through merged_hashmap to egenerate result_array with newly merge record entires
     192    # Iterate through merged_hashmap to generate result_array with newly merge record entires
    192193   
    193194    $results_array = [];
     
    229230    my $outhandle = $self->{'outhandle'};
    230231
     232#    # the following line, not currently used
     233#    my ($filename_full_path, $filename_no_path) = &util::get_full_filenames($base_dir, $file);
     234   
    231235    my $section = $doc_obj->get_top_section();
    232236
     
    247251    #
    248252    # For now: The \uNNNN is dealt with by having the to_json() result re-encoded
     253
    249254    my $text_utf8 = to_json($result_entry, { pretty => 1} );
    250255
Note: See TracChangeset for help on using the changeset viewer.