Skip to content

Latest commit

 

History

History
 
 

README.md

owlapy Documentation for LLMs

This directory contains comprehensive, LLM-friendly documentation for the owlapy framework (v1.6.5).

About owlapy

owlapy is a production-ready Python framework for OWL ontology engineering, knowledge graph development, and semantic reasoning. Developed by the DICE Research Group at Paderborn University.

Documentation Structure

Getting Started

Core Concepts

Advanced Features

Practical Guides

Key Features

  • Pure Python OWL 2 implementation - No Java dependencies for core functionality
  • Multiple reasoners - StructuralReasoner (fast), RDFLibReasoner (pure Python), SyncReasoner (complete)
  • Syntax conversion - DL ↔ Manchester ↔ SPARQL
  • LLM integration - Generate ontologies from text using AGenKG
  • Rich class expressions - Full OWL 2 DL support

Quick Example

from owlapy.owl_ontology import SyncOntology
from owlapy.owl_reasoner import RDFLibReasoner
from owlapy.class_expression import OWLClass

# Load ontology
onto = SyncOntology("family.owl")

# Create reasoner
reasoner = RDFLibReasoner(onto)

# Query instances
male_class = OWLClass("http://example.com/family#Male")
males = set(reasoner.instances(male_class))
print(f"Found {len(males)} male individuals")

Repository Structure

owlapy/
├── class_expression/       # OWL class expression types
├── owl_ontology.py         # SyncOntology, Ontology, NeuralOntology
├── owl_reasoner.py         # StructuralReasoner, SyncReasoner
├── owl_reasoner_rdflib.py  # RDFLibReasoner (pure Python)
├── converter.py            # OWL → SPARQL conversion
├── parser.py               # DL/Manchester → OWL parsing
├── render.py               # OWL → DL/Manchester rendering
├── agen_kg/                # LLM-based ontology generation
└── utils.py                # CESimplifier, NNF, similarity metrics

Version Information

Current Version: 1.6.5
Python Requirement: 3.11+
Main Dependencies: owlready2, rdflib (6.0.2+), jpype1 (for Java reasoners)

Additional Resources