}
my $filename = $inputuri;
+ my $prefix;
if (not isRdfUri($inputuri)) { # standad cic: or theory: uri
$filename =~ s/^cic:(.*)/$1/;
$filename =~ s/^theory:(.*)/$1/;
} else { # rdf uri
+ # The "helm:rdf/<<...>>//cic:" prefix is kept, but quoted
+ # (so that a "helm:rdf/<<...>>//cic:" dir is created
+ $prefix = $filename;
$filename =~ s/^(.*)\/\/cic:(.*)/$2/;
$filename =~ s/^(.*)\/\/theory:(.*)/$2/;
+ $prefix =~ s/\Q$filename\E//;
+ $prefix =~ s/_/__/g;
+ $prefix =~ s/\//_/g;
+ $filename = $prefix.$filename;
}
my $url = resolve ($inputuri); # resolve uri in url
if (not isRdfUri ($inputuri)) { # save in uri std cache dir
$filename = $helm_dir.$filename.$extension;
} else { # save in rdf metadata cache dir
- $filename = $helm_rdf_dir.$filename.$extension;
+ $filename = $helm_rdf_dir."/".$filename.$extension;
}
print_request($inputuri,$url,$filename);
}
sub update {
+# retie dbs
untie %map;
tie(%map, 'DB_File', $uris_dbm.".db", O_RDWR, 0664);
untie %rdf_map;
tie(%rdf_map, 'DB_File', $rdf_dbm.".db", O_RDWR, 0664);
} # update_dbs
+# vim modline: do not remove!
+# vim: set ft=perl:
+