Changeset 35892


Ignore:
Timestamp:
2022-01-06T11:01:33+13:00 (6 months ago)
Author:
davidb
Message:

Need to monitor for metadata names such as '/equivDocLink' in $front as these are not valid TTL syntax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/apache-jena/trunk/src/perllib/jenaTDBBuildproc.pm

    r35139 r35892  
    188188    $str =~ s/[\r\n]+/\\n/g;
    189189
     190    # Take care of metadata cases such as:
     191    #    <Metadata ... name="/equivDocLink">...</Metadata>
     192    $front =~ s/(\"(?:\w+\.)?)\//$1SLASH/g;
     193
    190194    return "$front$str$back";
    191195}
     
    233237#   my $cmd = "gs-triplestore-add $collection \"$tmp_doc_filename\"";
    234238    my $cmd = "gs-triplestore-add3 $collection \"$tmp_doc_filename\"";
    235        
     239
    236240    my $status = system($cmd);
    237241    if ($status != 0) {
     
    239243    }
    240244   
    241 #   print STDERR "**** temporarily supressing deletion of: $tmp_doc_filename\n";
     245#   print STDERR "**** jenaTDBBuildproc::xml_to_ttl() temporarily supressing deletion of: $tmp_doc_filename\n";
    242246    unlink $tmp_doc_filename;
    243247    }
Note: See TracChangeset for help on using the changeset viewer.