Availability:built-in
license(+LicenseId,
+Component)Register the fact that Component is distributed under a
license identified by LicenseId. Known license identifiers
can be listed using known_licenses/0.
A new license can be registered as a known language using a declaration
like below. The second argument defines the
category if the license, which is one of gpl,
lgpl, copyleft, permissive or
proprietary. The category copyleft is for
licenses whose copyleft is limited to the component itself, such as the
Eclipse Public License (EPL). The third argument is a list of
properties. Defined are comment(Text), url(URL)
and
gpl_compatible(false). The latter makes license/0
warn if the license is combined with a component in the gpl
category.
:- multifile license:license/3.
license:license(mylicense, permissive,
[ comment('My personal license'),
url('http://www.mine.org/license.html')
]).
:- license(mylicense).