Using op(_,_,_) to import all operators from a module

One way to import an operator from a module is to explicitly list each operator using op/3, however, _ can also be used with op/3 in import list, E.g.

:- use_module(library(semweb/rdf_db),
   [ rdf_global_id/2,
     rdf_subject/1,
     rdf_current_predicate/1,
     (rdf_meta)/1,
     op(_,_,_)
   ]).
3 Likes