prov/commit
Merge branch 'master' of github.com:ClioPatria/prov
author | Jacco van Ossenbruggen |
---|---|
Tue Mar 26 17:50:58 2019 +0100 | |
committer | Jacco van Ossenbruggen |
Tue Mar 26 17:50:58 2019 +0100 | |
commit | df7809e650b8ef6d00eacb0cd1a28f547ce7b016 |
tree | 05a9d5046b1ffe3faa406ca718a2ca30096a0d28 |
parent | 3e3bac64dc0e4c2626a67b7b8cbb58ec3c83abf4 a5b18ca40d5c35d23d4606889944d9235da97842 |
Diff style: patch stat
diff --cc lib/prov_schema.pl index c5692d5,6c4d111..7f731f1 --- a/lib/prov_schema.pl +++ b/lib/prov_schema.pl @@@ -206,18 -228,10 +228,16 @@@ log_entity_create(File, Options) : option(prov(ProvBundle), Options), option(graph(Graph), Options, none), ( uri_is_global(File) - -> Entity = File - ; uri_file_name(Entity, 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) + ) ), - xsd_now(TimeStamp), - rdf_assert(Entity, rdf:type, prov:'Entity', ProvBundle), - rdf_assert(Entity, prov:generatedAtTime, TimeStamp^^xsd:dateTime, ProvBundle), + size_time_stamp(File, Entity, Options), rdf_assert(Entity, prov:wasGeneratedBy, Activity, ProvBundle), log_derivation(Entity, Options), log_entity_graph_properties(Entity, Graph, ProvBundle).