How aws-samples/sample-industrial-ontology-mcp-server works
Ontology Agent is a local stdio MCP server for a knowledge-graph lifecycle. An MCP client invokes tools that profile CSV data, design and improve a T-Box, generate an A-Box, validate and reason over the graph, then query or report results. The README also documents competency questions, tacit-knowledge input, semantic dictionaries, pipeline state, and optional remote stores. The principal workflow links below follow the README; internal links are limited to relationships shown in the source index. Several capability implementations were not excerpted, so their internal calls are not inferred.
Main entry points: server.py MCP server · abox_generation.py A-Box generation · inference.py OWL reasoning · tools CSV profiling
Components 24
MCP entry
- MCP server
server.py - Application entry
app.py - Tool registry
tools/registry.py
Ontology design
- CSV profiling
tools - Competency questions
tools/competency_questions.py - T-Box design
tools/tbox_generation.py - Collaborative design
tools/multi_agent_tbox.py - T-Box quality
tools/ontology_quality.py - Tacit knowledge
tools/tacit_rules.py
Graph lifecycle
- A-Box generation
tools/abox_generation.py - Graph validation
tools/validation_core.py - OWL reasoning
tools/inference.py - SPARQL queries
tools/sparql_local.py - Reports and dictionaries
tools/report.py - Optional graph stores
tools/remote
Shared services
- Pipeline state
tools/pipeline_state.py - Shared utilities
tools/common.py - Ontology conventions
domain - Quality steps
tools/quality_steps - Validation checks
tools/validation_support/checks
Other components
- MCP client
- Amazon Bedrock
- Generated graph artifacts
- Sample CSV data
Connections 32
- MCP client → MCP server: invokes via stdio
README.md - MCP server → Tool registry: registers tools
tools/registry.py - Application entry → Tool registry: loads
app.py - MCP server → Application entry: uses
server.py - MCP server → CSV profiling: offers profiling
README.md - MCP server → Competency questions: offers questions
README.md - MCP server → T-Box design: offers design
README.md - MCP server → A-Box generation: offers generation
README.md - MCP server → Graph validation: offers validation
README.md - MCP server → OWL reasoning: offers reasoning
README.md - MCP server → SPARQL queries: offers querying
README.md - MCP server → Reports and dictionaries: offers reports
README.md - T-Box design → Amazon Bedrock: uses model
README.md - Competency questions → Amazon Bedrock: uses model
README.md - CSV profiling → Sample CSV data: profiles
README.md - CSV profiling → Generated graph artifacts: writes artifacts
README.md - T-Box design → Generated graph artifacts: writes artifacts
README.md - A-Box generation → Generated graph artifacts: writes artifacts
README.md - Graph validation → Generated graph artifacts: validates
README.md - OWL reasoning → Generated graph artifacts: reasons over
README.md - MCP server → Pipeline state: offers checkpoints
README.md - MCP server → Tacit knowledge: offers tacit input
README.md - MCP server → T-Box quality: offers quality gates
README.md - MCP server → Optional graph stores: optional integration
README.md - A-Box generation → Shared utilities: imports utilities
tools/abox_generation.py - A-Box generation → Ontology conventions: uses conventions
tools/abox_generation.py - T-Box quality → Quality steps: uses steps
tools/ontology_quality.py - Graph validation → Validation checks: uses checks
- OWL reasoning → Shared utilities: imports utilities
tools/inference.py - OWL reasoning → Ontology conventions: uses conventions
tools/inference.py - SPARQL queries → Ontology conventions: uses templates
tools/sparql_local.py - Pipeline state → Shared utilities: imports utilities
tools/pipeline_state.py