soli-python


Namesoli-python JSON
Version 0.1.4 PyPI version JSON
download
home_pagehttps://openlegalstandard.org/
SummaryPython library for SOLI, the Standard for Open Legal Information
upload_time2024-09-04 13:54:15
maintainerNone
docs_urlNone
authorALEA Institute
requires_python<4.0.0,>=3.10
licenseMIT
keywords legal information standard soli open
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # SOLI Python Library

![SOLI Logo](https://openlegalstandard.org/assets/images/soli-intro-logo.png)

[![PyPI version](https://badge.fury.io/py/soli-python.svg)](https://badge.fury.io/py/soli-python)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python Versions](https://img.shields.io/pypi/pyversions/soli-python.svg)](https://pypi.org/project/soli-python/)

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:

```bash
pip install soli-python
```

For the latest development version, you can install directly from GitHub:

```bash
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:

```python
from soli import SOLI

# Initialize the SOLI client
soli = SOLI()

# Search by prefix
results = soli.search_by_prefix("Mich")
for owl_class in results:
    print(f"Class: {owl_class.label}")

# Search for a class by label
results = soli.search_by_label("Mich")
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](https://soli-python.readthedocs.io/).

## Contributing

We welcome contributions to the SOLI Python library! If you'd like to contribute, please follow these steps:

1. Fork the repository
2. Create a new branch for your feature or bug fix
3. Make your changes and write tests if applicable
4. Run the test suite to ensure everything is working
5. Submit a pull request with a clear description of your changes

For more information, see our [contribution guidelines](CONTRIBUTING.md).

## SOLI API
A public, freely-accessible API is available for the SOLI ontology.

The API is hosted at [https://soli.openlegalstandard.org/](https://soli.openlegalstandard.org/).

The source code for the API is available on GitHub at [https://github.com/alea-institute/soli-api](https://github.com/alea-institute/soli-api).


## License

The SOLI Python library is released under the MIT License. See the [LICENSE](LICENSE) file for details.

## Support

If you encounter any issues or have questions about using the SOLI Python library, please [open an issue](https://github.com/alea-institute/soli-python/issues) on GitHub.

## Learn More

To learn more about SOLI, its development, and how you can get involved, visit the [SOLI website](https://openlegalstandard.org/) or join the [SOLI community forum](https://discourse.openlegalstandard.org/).

            

Raw data

            {
    "_id": null,
    "home_page": "https://openlegalstandard.org/",
    "name": "soli-python",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0.0,>=3.10",
    "maintainer_email": null,
    "keywords": "legal, information, standard, soli, open",
    "author": "ALEA Institute",
    "author_email": "hello@aleainstitute.ai",
    "download_url": "https://files.pythonhosted.org/packages/b1/6a/15e4f195abbce5e2a30db936ff14283b7a275dec739c9dd6fd01c1ebf2e1/soli_python-0.1.4.tar.gz",
    "platform": null,
    "description": "# SOLI Python Library\n\n![SOLI Logo](https://openlegalstandard.org/assets/images/soli-intro-logo.png)\n\n[![PyPI version](https://badge.fury.io/py/soli-python.svg)](https://badge.fury.io/py/soli-python)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Python Versions](https://img.shields.io/pypi/pyversions/soli-python.svg)](https://pypi.org/project/soli-python/)\n\nThe SOLI Python Library provides a simple and efficient way to interact with the Standard for Open Legal Information (SOLI) ontology.\n\nSOLI is an open, CC-BY licensed standard designed to represent universal elements of legal data, improving communication and data interoperability across the legal industry.\n\n## Features\n\n- Load the SOLI ontology from GitHub or a custom HTTP URL\n- Search for classes by label or definition\n- Get subclasses and parent classes\n- Access detailed information about each class, including labels, definitions, and examples\n- Convert classes to OWL XML or Markdown format\n\n## Installation\n\nYou can install the SOLI Python library using pip:\n\n```bash\npip install soli-python\n```\n\nFor the latest development version, you can install directly from GitHub:\n\n```bash\npip install --upgrade https://github.com/alea-institute/soli-python/archive/refs/heads/main.zip\n```\n\n## Quick Start\n\nHere's a simple example to get you started with the SOLI Python library:\n\n```python\nfrom soli import SOLI\n\n# Initialize the SOLI client\nsoli = SOLI()\n\n# Search by prefix\nresults = soli.search_by_prefix(\"Mich\")\nfor owl_class in results:\n    print(f\"Class: {owl_class.label}\")\n\n# Search for a class by label\nresults = soli.search_by_label(\"Mich\")\nfor owl_class, score in results:\n    print(f\"Class: {owl_class.label}, Score: {score}\")\n\n# Get all areas of law\nareas_of_law = soli.get_areas_of_law()\nfor area in areas_of_law:\n    print(area.label)\n```\n\n## Documentation\n\nFor more detailed information about using the SOLI Python library, please refer to our [full documentation](https://soli-python.readthedocs.io/).\n\n## Contributing\n\nWe welcome contributions to the SOLI Python library! If you'd like to contribute, please follow these steps:\n\n1. Fork the repository\n2. Create a new branch for your feature or bug fix\n3. Make your changes and write tests if applicable\n4. Run the test suite to ensure everything is working\n5. Submit a pull request with a clear description of your changes\n\nFor more information, see our [contribution guidelines](CONTRIBUTING.md).\n\n## SOLI API\nA public, freely-accessible API is available for the SOLI ontology.\n\nThe API is hosted at [https://soli.openlegalstandard.org/](https://soli.openlegalstandard.org/).\n\nThe source code for the API is available on GitHub at [https://github.com/alea-institute/soli-api](https://github.com/alea-institute/soli-api).\n\n\n## License\n\nThe SOLI Python library is released under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Support\n\nIf you encounter any issues or have questions about using the SOLI Python library, please [open an issue](https://github.com/alea-institute/soli-python/issues) on GitHub.\n\n## Learn More\n\nTo learn more about SOLI, its development, and how you can get involved, visit the [SOLI website](https://openlegalstandard.org/) or join the [SOLI community forum](https://discourse.openlegalstandard.org/).\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python library for SOLI, the Standard for Open Legal Information",
    "version": "0.1.4",
    "project_urls": {
        "Documentation": "https://openlegalstandard.org/docs/",
        "Homepage": "https://openlegalstandard.org/",
        "Repository": "https://github.com/alea-institute/soli-python"
    },
    "split_keywords": [
        "legal",
        " information",
        " standard",
        " soli",
        " open"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1974c8b09024f57426fe07ff3b81f4e2ebea6345d0e2f371a7815716240436f1",
                "md5": "59673456d4c8aa4ada7c8504f0ba8a8f",
                "sha256": "ead799529fcb090a4225440c77c5c7216857610460d7589ba574dcb99ee9eb3e"
            },
            "downloads": -1,
            "filename": "soli_python-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "59673456d4c8aa4ada7c8504f0ba8a8f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0.0,>=3.10",
            "size": 19237,
            "upload_time": "2024-09-04T13:54:13",
            "upload_time_iso_8601": "2024-09-04T13:54:13.808015Z",
            "url": "https://files.pythonhosted.org/packages/19/74/c8b09024f57426fe07ff3b81f4e2ebea6345d0e2f371a7815716240436f1/soli_python-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b16a15e4f195abbce5e2a30db936ff14283b7a275dec739c9dd6fd01c1ebf2e1",
                "md5": "2f5ee658d7a1ecf8388fc121fe1362b8",
                "sha256": "9be6ae581b6a2b4c2022829c478203b6d7f12e6fb3a24f83831a44dc078f6e12"
            },
            "downloads": -1,
            "filename": "soli_python-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "2f5ee658d7a1ecf8388fc121fe1362b8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0.0,>=3.10",
            "size": 19555,
            "upload_time": "2024-09-04T13:54:15",
            "upload_time_iso_8601": "2024-09-04T13:54:15.219941Z",
            "url": "https://files.pythonhosted.org/packages/b1/6a/15e4f195abbce5e2a30db936ff14283b7a275dec739c9dd6fd01c1ebf2e1/soli_python-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-04 13:54:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "alea-institute",
    "github_project": "soli-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "soli-python"
}
        
Elapsed time: 0.58333s