karmaresearch / vlog

Apache License 2.0
55 stars 9 forks source link

More helpful error message for missing data imports #53

Closed mkroetzsch closed 4 years ago

mkroetzsch commented 4 years ago

Rulewerk supports datasource declarations such as

@source doidTriple[3]: load-rdf("../rulewerk-examples/src/main/data/input/doid.nt.gz") .

which are then translated to a corresponding VLog EDB declaration. If the specified file does not exist, however, VLog will produce the following error:

[0x90d7fb990794bcdd 2020-08-21 11:23:44] ERROR Could not find doid

This is very hard to interpret, since it is not even clear what part of the input program might have caused this. The error should be expanded to:

  1. Indicate that this happened when trying to load data for predicate "doidTriple"
  2. Indicate what file path was used.
  3. Indicate which file names were considered.