Skip to main content

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

  1. Clone the repository
  2. Create a virtual environment: python -m venv venv
  3. Activate the virtual environment:
    • Windows: venv\Scripts\activate
    • Unix/MacOS: source venv/bin/activate
  4. Install development dependencies: pip install -e ".[dev]"

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

owl_mcp-0.1.1.tar.gz (256.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

owl_mcp-0.1.1-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

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

Hashes for owl_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7155b5b94a862f3fb62a4b9d55ec3090aade9866c461f41d8ea1bff2c5af527f
MD5 d52169b7a79b7fb879da5bab483ffe51
BLAKE2b-256 bfc2ff5c6df7055b06716de29b7466ca1071e0c4aa21997d7d982d253a76771a

See more details on using hashes here.

Provenance

The following attestation bundles were made for owl_mcp-0.1.1.tar.gz:

Publisher: pypi-publish.yaml on scimcp/owl-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for owl_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4568fa6d4d0c60f6a25cebccf39cb040c762008855712dbf852657d5e3c87b03
MD5 86b0ab17c2b6fa8b03a8eab086f30bfa
BLAKE2b-256 8bbb8a85d255cc2395f9979ce9174d5b03d5206a4b89f5cbf8588c6f4a65b73d

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page