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

E.2 Software support to keep track of license conditions
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • SWI-Prolog License Conditions and Tools
        • Software support to keep track of license conditions
          • license/0
          • license/2
          • license/1
          • PL_license()
          • known_licenses/0
    • Packages
Availability:built-in
Sourcelicense(+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).
ClioPatria (version V3.1.1-59-g7b9a7a3)