Changeset 35004


Ignore:
Timestamp:
2021-04-04T16:44:52+12:00 (3 years ago)
Author:
davidb
Message:

By moving wget to use a post, rather than get, this looks to have changed the response to providing a full HTML page, rather than an excerpt. This in turn means we no longer need to 'cat' in header and footer HTML syntax to get the character encoding right, amoungst other things

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/prepare/DBPEDIA-LOD-SPARQL-QUERY.sh

    r34944 r35004  
    3939
    4040#wget --no-check-certificate -O "table-$output_result_file" "$sparql_url?$graph_arg&$query_arg_safe&$additional_args"
    41 wget --no-check-certificate -O "$tmp_output_ext_filename" "$sparql_url?$graph_arg&$query_arg_safe&$additional_args"
     41#wget --no-check-certificate -O "$tmp_output_ext_filename" "$sparql_url?$graph_arg&$query_arg_safe&$additional_args"
     42wget --no-check-certificate -O "$tmp_output_ext_filename" --post-data="$graph_arg&$query_arg_safe&$additional_args" "$sparql_url"
    4243
    4344echo "Generating: $output_result_file"
    4445if [ "$output_ext" = "html" ] ; then
    45     cat html-table-header.html "$tmp_output_ext_filename"  html-table-footer.html > "$output_result_file"
     46    # cat html-table-header.html "$tmp_output_ext_filename"  html-table-footer.html > "$output_result_file"
     47    cat "$tmp_output_ext_filename" > "$output_result_file"
    4648
    4749    if [ $? = 0 ] ; then
Note: See TracChangeset for help on using the changeset viewer.