SOLI API

The SOLI API provides a robust and efficient way to interact with the Standard for Open Legal Information (SOLI) ontology over HTTP. This API enables developers, researchers, and legal professionals to seamlessly integrate SOLI into their applications and workflows, facilitating access to a comprehensive legal information standard.

By leveraging the SOLI API, organizations can accelerate their adoption of the SOLI standard, streamline data science projects in the legal domain, and enhance interoperability across various legal information systems.

ResourceLink
API Base URLhttps://soli.openlegalstandard.org/
API Documentationhttps://soli.openlegalstandard.org/docs
OpenAPI Specificationhttps://soli.openlegalstandard.org/openapi.json
GitHub Repositoryhttps://github.com/alea-institute/soli-api

Overview

The SOLI API offers the following key features:

  • Access to the entire SOLI ontology
  • Search functionality for classes by label or definition
  • Retrieval of detailed class information
  • Multiple output formats including JSON, JSON-LD, OWL XML, and Markdown
  • CORS-enabled for cross-origin requests
  • Open and free to use without authentication

Key Endpoints

Get Class Information

Retrieve detailed information about a specific SOLI class.

GET /{class_id}

Example:

curl https://soli.openlegalstandard.org/R8pNPutX0TN6DlEqkyZuxSw

Search Classes

Search for SOLI classes by prefix, label, or definition.

GET /search/prefix?query=Mich

Example:

curl https://soli.openlegalstandard.org/search/prefix?query=Mich

Get Class in Specific Format

Retrieve a SOLI class in a specific format (JSON-LD, Markdown, OWL XML).

GET /{class_id}/{format}

Example:

curl https://soli.openlegalstandard.org/R8pNPutX0TN6DlEqkyZuxSw/jsonld

Using the API

The SOLI API is designed to be simple to use. Here are some examples using Python and the httpx library:

import httpx

# Get class information
response = httpx.get('https://soli.openlegalstandard.org/R8pNPutX0TN6DlEqkyZuxSw')
print(response.json())

# Search for classes
response = httpx.get('https://soli.openlegalstandard.org/search/prefix', params={'query': 'Mich'})
print(response.json())

# Get class in JSON-LD format
response = httpx.get('https://soli.openlegalstandard.org/R8pNPutX0TN6DlEqkyZuxSw/jsonld')
print(response.json())

API Documentation

For more detailed information about using the SOLI API, please refer to the Swagger UI documentation.

Contributing

Contributions to the SOLI API are welcome! If you’d like to contribute, please visit the GitHub repository for more information.

License

The SOLI API 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 API, please open an issue on GitHub or open a discussion topic on the SOLI community forum.