Python library for SOLI, the Standard for Open Legal Information
Project description
SOLI Python Library
The SOLI Python Library provides a simple and efficient way to interact with the Standard for Open Legal Information (SOLI) ontology.
SOLI is an open, CC-BY licensed standard designed to represent universal elements of legal data, improving communication and data interoperability across the legal industry.
Features
- Load the SOLI ontology from GitHub or a custom HTTP URL
- Search for classes by label or definition
- Get subclasses and parent classes
- Access detailed information about each class, including labels, definitions, and examples
- Convert classes to OWL XML or Markdown format
Installation
You can install the SOLI Python library using pip:
pip install soli-python
For the latest development version, you can install directly from GitHub:
pip install --upgrade https://github.com/alea-institute/soli-python/archive/refs/heads/main.zip
Quick Start
Here's a simple example to get you started with the SOLI Python library:
from soli import SOLI
# Initialize the SOLI client
soli = SOLI()
# Search for a class by label
results = soli.search_by_label("Contract")
for owl_class, score in results:
print(f"Class: {owl_class.label}, Score: {score}")
# Get all areas of law
areas_of_law = soli.get_areas_of_law()
for area in areas_of_law:
print(area.label)
Documentation
For more detailed information about using the SOLI Python library, please refer to our full documentation.
Contributing
We welcome contributions to the SOLI Python library! If you'd like to contribute, please follow these steps:
- Fork the repository
- Create a new branch for your feature or bug fix
- Make your changes and write tests if applicable
- Run the test suite to ensure everything is working
- Submit a pull request with a clear description of your changes
For more information, see our contribution guidelines.
License
The SOLI Python library is released under the MIT License. See the LICENSE file for details.
Support
If you encounter any issues or have questions about using the SOLI Python library, please open an issue on GitHub.
Learn More
To learn more about SOLI, its development, and how you can get involved, visit the SOLI website or join the SOLI community forum.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file soli_python-0.1.3.tar.gz
.
File metadata
- Download URL: soli_python-0.1.3.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a166b130db8df0932941eb0f4295e76b6f8eed760ebfa347a4d2b26df2d8bc0 |
|
MD5 | 9b6f0b97d822d85bd42b8e961a972b4b |
|
BLAKE2b-256 | ff11515509314046604928bdcf5b7e6c763508d6126189400da7aa69b8fcc9aa |
File details
Details for the file soli_python-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: soli_python-0.1.3-py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbdcc77810452f88c89e6e8d407a91962338b54b23d85de2a0ab75a168102f99 |
|
MD5 | c766efe07c860ea9e4f4f501780a33f2 |
|
BLAKE2b-256 | 899a868d8112325706f8605ea20a0169346e51a6f5679de6d0758f36d89cbb46 |