SWI-Prolog Did You Know Did you know? You can get Javadoc style documentation automatically Search Documentation:
Predicate xref_source_file/3
Availability::- use_module(library(prolog_xref)).(can be autoloaded)
 xref_source_file(+Spec, -File, +Src) is semidet
 xref_source_file(+Spec, -File, +Src, +Options) is semidet
Find named source file from Spec, relative to Src.