A MCP server for OWL ontology operations
Project description
OWL Server
A simple server for OWL operations that provides a clean API for managing OWL ontologies.
Features
- Add and remove axioms
- Find axioms by pattern
- Manage prefix mappings
- Event-based change notifications
- Simple command-line interface
Installation
pip install -e .
Usage
Initialize a new OWL file
python -m owl_server.server init my-ontology.owl
Start the server
python -m owl_server.server start my-ontology.owl --debug
Python API
from owl_mcp.owl_api import OwlAPI
# Initialize the API
api = OwlAPI("my-ontology.owl")
# Add an axiom
api.add_axiom("ClassAssertion(:Person :John)")
# Find axioms
axioms = api.find_axioms(":John")
# Add a prefix
api.add_prefix("ex:", "http://example.org/")
# Register for changes
def on_change(event_type, **kwargs):
print(f"Change: {event_type}", kwargs)
api.add_observer(on_change)
Development
- Clone the repository
- Create a virtual environment:
python -m venv venv - Activate the virtual environment:
- Windows:
venv\Scripts\activate - Unix/MacOS:
source venv/bin/activate
- Windows:
- Install development dependencies:
pip install -e ".[dev]"
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file owl_mcp-0.1.1.tar.gz.
File metadata
- Download URL: owl_mcp-0.1.1.tar.gz
- Upload date:
- Size: 256.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7155b5b94a862f3fb62a4b9d55ec3090aade9866c461f41d8ea1bff2c5af527f
|
|
| MD5 |
d52169b7a79b7fb879da5bab483ffe51
|
|
| BLAKE2b-256 |
bfc2ff5c6df7055b06716de29b7466ca1071e0c4aa21997d7d982d253a76771a
|
Provenance
The following attestation bundles were made for owl_mcp-0.1.1.tar.gz:
Publisher:
pypi-publish.yaml on scimcp/owl-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
owl_mcp-0.1.1.tar.gz -
Subject digest:
7155b5b94a862f3fb62a4b9d55ec3090aade9866c461f41d8ea1bff2c5af527f - Sigstore transparency entry: 213680396
- Sigstore integration time:
-
Permalink:
scimcp/owl-mcp@2266213a33c308e425d2fca9e2a50dca1d55560b -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/scimcp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yaml@2266213a33c308e425d2fca9e2a50dca1d55560b -
Trigger Event:
release
-
Statement type:
File details
Details for the file owl_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: owl_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4568fa6d4d0c60f6a25cebccf39cb040c762008855712dbf852657d5e3c87b03
|
|
| MD5 |
86b0ab17c2b6fa8b03a8eab086f30bfa
|
|
| BLAKE2b-256 |
8bbb8a85d255cc2395f9979ce9174d5b03d5206a4b89f5cbf8588c6f4a65b73d
|
Provenance
The following attestation bundles were made for owl_mcp-0.1.1-py3-none-any.whl:
Publisher:
pypi-publish.yaml on scimcp/owl-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
owl_mcp-0.1.1-py3-none-any.whl -
Subject digest:
4568fa6d4d0c60f6a25cebccf39cb040c762008855712dbf852657d5e3c87b03 - Sigstore transparency entry: 213680398
- Sigstore integration time:
-
Permalink:
scimcp/owl-mcp@2266213a33c308e425d2fca9e2a50dca1d55560b -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/scimcp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yaml@2266213a33c308e425d2fca9e2a50dca1d55560b -
Trigger Event:
release
-
Statement type: