This application is a comprehensive web service for testing and analyzing ontologies using First-Order Logic (FOL), Basic Formal Ontology (BFO), and Web Ontology Language (OWL). It provides advanced reasoning capabilities, interactive visualization tools, and AI-powered analysis features for ontology development and validation.
- Framework: Flask-based web application
- Database: PostgreSQL with SQLAlchemy ORM
- OWL Processing: Dual-layer approach using both Owlready2 and RDFlib for robust parsing
- Reasoning: Multi-reasoner system leveraging Pellet, HermiT, and other OWL reasoners
- AI Integration: OpenAI GPT-4o for generating implications and suggestions
- UI Framework: Bootstrap 5 with dark theme
- Visualization: D3.js for interactive ontology diagrams
- Templating: Jinja2 templates with modular components
- JavaScript: Modern ES6+ with async/await patterns
- Comprehensive OWL file parsing and analysis
- Consistency checking with detailed reporting
- Expressivity detection (ALC, SHOIN, SROIQ)
- Axiom extraction and categorization
- FOL premise generation from ontology structures
- Transparent Reasoning: Detailed methodology reporting
- Derivation Tracing: Visual representation of inference chains
- Multi-reasoner Approach: Robust consistency checking
- Performance Metrics: Timing and efficiency tracking
- BFO-2020 Definitions: Complete class and relation mappings
- Validation: BFO-compatible expression testing
- Notation Support: Both traditional and BFO-style syntax
- Visual Grammar: Standardized symbols for BFO entities
- Interactive Diagrams: D3.js-based ontology visualization
- Validation Interface: Visual contradiction detection
- Export Capabilities: SVG and PNG diagram generation
- Authentication: Flask-Login with session management
- User Dashboards: Personalized analysis history
- Anonymous Access: Core functionality without registration
- Ontology Builder: Interactive ontology creation
- AI Suggestions: Intelligent class and property recommendations
- Export System: Convert sandbox ontologies to formal OWL
- File Upload: Users upload OWL files through web interface
- Format Detection: Automatic format detection and conversion
- Parsing: Dual-layer parsing with fallback mechanisms
- Analysis: Comprehensive ontology analysis including:
- Statistics extraction
- Consistency checking
- Axiom categorization
- Expressivity detection
- Visualization: Interactive diagram generation
- AI Processing: Real-world implications generation
- Storage: Results stored in PostgreSQL database
- Presentation: Rich web interface with detailed reporting
- owlready2: Primary OWL ontology handling
- rdflib: Alternative RDF parsing and serialization
- nltk: Natural language processing for FOL parsing
- Flask: Web framework with extensions
- SQLAlchemy: Database ORM
- psycopg2: PostgreSQL adapter
- OpenAI API: GPT-4o for generating implications and suggestions
- Model: Uses gpt-4o (latest available model)
- Bootstrap 5: UI framework with dark theme
- D3.js v7: Data visualization library
- Font Awesome: Icon library
- jQuery: DOM manipulation and AJAX
- PlantUML: UML diagram generation
- Gunicorn: WSGI HTTP server for production
- Development: Local Flask development server
- Production: Gunicorn WSGI server
- Database: PostgreSQL with automatic migrations
- File Storage: Local filesystem with organized directory structure
- Users: Authentication and profile management
- OntologyFile: Uploaded file metadata
- OntologyAnalysis: Analysis results and metrics
- SandboxOntology: User-created ontologies
- FOLExpression: Tested expressions history
- Automated database schema updates
- Backward compatibility maintenance
- Data preservation during updates
- July 03, 2025. Fixed navigation system and resolved database performance issues
- Resolved internal server errors caused by database relationship conflicts
- Optimized SQLAlchemy lazy loading to prevent infinite loops and crashes
- Cleaned up orphaned database records that were causing performance issues
- Added clear navigation cards on homepage with direct access to main features
- Fixed dropdown menu URLs to match actual application routes
- Improved user interface with visual indicators and better organization
- All navigation paths now work correctly without server crashes
- July 03, 2025. Enhanced automatic format detection and conversion system
- Implemented robust format detection for mislabeled ontology files
- Added automatic conversion from Turtle, N-Triples, and other RDF formats to OWL/XML
- Improved error handling and file validation during upload process
- Added database cleanup for orphaned records
- System now gracefully handles format mismatches and provides transparent conversion
- July 03, 2025. Initial setup
Preferred communication style: Simple, everyday language.