Skip to main content

Defines a partial order over licenses

Project description


Build Status

A python package that defines a partial order over licenses


CaLi is a lattice-based model for license orderings. This repository contains a python package that implements this model.

Our code uses the ODRL CaLi ordering ⟨A, DL, CL, C⟩ such that:

  • A is the set of 72 actions of ODRL (e.g., cc:Distribution, cc:ShareAlike),
  • DL is the deontic lattice Undefined <= Permissions <= Duty <= Prohibition (actions can be either permitted, obliged, prohibited or not specified; in this deontic lattice, the undefined status is the least restrictive and the prohibited one the most restrictive),
  • CL and
  • C are sets of constraints.

CaLi online demonstrator Is an exemple of license compliant search engine using CaLi model.


Installation in a virtualenv is recommended.

Assuming you already have python 3 and pip installed

pip install pycali

this will automatically install rdflib used to manipulate RDF.

Getting started

This section shows how to create a CaLi ordering with ease.

Load a vocabulary

Load a deontic lattice

Define constraints

Load licenses

Instanciate a CaLi Ordering

Browse the CaLi Ordering

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pycali, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size pycali-0.1-py3-none-any.whl (14.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pycali-0.1.tar.gz (8.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page