prov/commit
Revert "FIXED: can no longer rely on access_file to silently fail on http uris"
author | Jacco van Ossenbruggen |
---|---|
Tue Mar 26 18:07:30 2019 +0100 | |
committer | Jacco van Ossenbruggen |
Tue Mar 26 18:07:30 2019 +0100 | |
commit | 41bd99d1d19dee18d7d80c10b23b076fba873e15 |
tree | afb6d56378c09b97c15c0be37b500ec43c8ed9cc |
parent | df7809e650b8ef6d00eacb0cd1a28f547ce7b016 |
Diff style: patch stat
diff --git a/lib/prov_schema.pl b/lib/prov_schema.pl index 7f731f1..6c4d111 100644 --- a/lib/prov_schema.pl +++ b/lib/prov_schema.pl @@ -228,14 +228,8 @@ log_entity_create(File, Options) :- option(prov(ProvBundle), Options), option(graph(Graph), Options, none), ( uri_is_global(File) - -> Entity = File, - xsd_now(TimeStamp) - ; uri_file_name(Entity, File), - ( access_file(File, read), - time_file(File, Time) - -> xsd_timestamp(Time, TimeStamp) - ; xsd_now(TimeStamp) - ) + -> Entity = File + ; uri_file_name(Entity, File) ), size_time_stamp(File, Entity, Options), rdf_assert(Entity, prov:wasGeneratedBy, Activity, ProvBundle),