• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

2.13 Automatic loading of libraries
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Overview
        • Automatic loading of libraries
          • autoload_path/1
          • make_library_index/1
          • make_library_index/2
          • reload_library_index/0
    • Packages
Availability:built-in
Sourcemake_library_index(+Directory, +ListOfPatterns)
Normally used in MKINDEX.pl, this predicate creates INDEX.pl for Directory, indexing all files that match one of the file patterns in ListOfPatterns.

Sometimes library packages consist of one public load file and a number of files used by this load file, exporting predicates that should not be used directly by the end user. Such a library can be placed in a sub-directory of the library and the files containing public functionality can be added to the index of the library. As an example we give the XPCE library's MKINDEX.pl, including the public functionality of trace/browse.pl to the autoloadable predicates for the XPCE package.

:- make_library_index('.',
                      [ '*.pl',
                        'trace/browse.pl'
                      ]).
ClioPatria (version V3.1.1-51-ga0b30a5)