Skip to content

ULIT - a Universal Legal Informatics Toolkit, is set of legal informatics utilities collected in a Python package that focuses on the retrieval of legal data and metadata from official sources in the EU, and their transformation in pythonic data structures

License

Notifications You must be signed in to change notification settings

AlessioNar/ulit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ulit, The Universal Legal Informatics Toolkit

Publish Package to PyPI

1. Introduction

The ulit package provides utilities to work with legal data in a way that legal informatics practitioners can focus on addding value.

2. Installation

2.1 Using Poetry Dependency Manager

It is highly recommended to use Poetry as a dependency manager. To install the ulit package using Poetry, follow these steps:

  1. Set up a Poetry environment by running the following command in your terminal:
poetry init
poetry shell
  1. Add the ulit package as a dependency in your pyproject.toml file by running the following command:
poetry add ulit

2.2 Using Pip

Alternatively, you can install the ulit package in the environment of your choice by using pip by running the following command in your terminal:

pip install ulit

3. User Guide

3.1 SPARQL Query

SPARQL metadata retrieval is currently supported only from the Publications Office SPARQL endpoint based on the CELEX identifier.

from ulit.sparql import send_sparql_query

response = send_sparql_query(sparql_query_filepath, celex=None)

Replace "sparql_query_filepath" with the actual path to your SPARQL query file and "celex" with the desired celex identifier.

3.2 Downloading the documents

from ulit.download import download_documents

download_documents(results=response, download_dir='desired_downloadpath', log_dir='desired_log_dir'format='xhtml')

Acknowledgements

The ulit package has been inspired by a series of previous packages and builds upon some of their architectures and workflows. We would like to acknowledge the following sources that have contributed to the development of this generic solution:

Integration of part of the codebase

Inspiration in the parsing strategy

Use of existing standards and structured formats

About

ULIT - a Universal Legal Informatics Toolkit, is set of legal informatics utilities collected in a Python package that focuses on the retrieval of legal data and metadata from official sources in the EU, and their transformation in pythonic data structures

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published