ontology
py-ontology-server-starter
Starter de servidor de conocimiento ontológico — capa semántica FastAPI + triplestore Apache Jena Fuseki, con consumidores tanto por REST como por MCP.
Declara en código una ontología centrada en objetos al estilo Palantir (Object Type / Property / Link Type), y el almacenamiento y la consulta se gestionan con los estándares W3C (RDF / SPARQL 1.1). Como el código de la aplicación solo usa el estándar SPARQL, la aplicación permanece igual aunque se cambie el almacén por GraphDB u otro.
┌─ 소비자 ──────────────────────────────┐
│ AI 에이전트(MCP) 앱·사람(REST) │
└──────────┬───────────────┬───────────┘
│ │
mcp_server.py api/rest.py ← 이중 어댑터
└───────┬───────┘
ontology/ + store/ ← 코어: 온톨로지 정의 + SPARQL 클라이언트
│
Apache Jena Fuseki (docker) ← 저장·SPARQL·추론
▲
ingest/ 파이프라인 ← 지식원 → RDF 변환·적재Inicio rápido
# 1. 트리플스토어 기동
docker compose up -d fuseki # http://localhost:3030 (admin / admin)
# 2. 앱 설치
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
# 3. 샘플 데이터 적재 (CSV → RDF → Fuseki)
python -m ontology_server.ingest.example_csv data/sample/organizations.csv \
--object-type organization --push
# 4. REST 서버 기동
uvicorn ontology_server.main:app --reload
# → http://localhost:8000/docs
curl localhost:8000/objects/organizationRelated MCP server: mcp-ubergraph-query
Adaptador MCP (para agentes de IA)
Se ejecuta mediante el transporte stdio. En el .mcp.json de un proyecto de Claude Code:
{
"mcpServers": {
"ontology": {
"command": "/절대경로/.venv/bin/python",
"args": ["-m", "ontology_server.mcp_server"]
}
}
}Herramientas disponibles: list_object_types(descubrimiento de esquema) · search_objects(consulta de instancias por tipo) · sparql_query(consulta directa de solo lectura).
Cómo adaptarlo a tu dominio
Reemplaza
src/ontology_server/ontology/sample.pypor una ontología de dominio: con solo cambiar las declaraciones de Object Type y Link Type, el adaptador REST, el adaptador MCP y el constructor de consultas se adaptan automáticamente.Añade módulos de ingesta por fuente de conocimiento en
src/ontology_server/ingest/(example_csv.pycomo referencia).Si se necesita integración externa o cumplimiento de estándares, define los espacios de nombres con un esquema de URIs real y gestiona también el documento de esquema OWL.
Pruebas
pytest # 단위 테스트 (Fuseki 불필요)
RUN_INTEGRATION=1 pytest # Fuseki 기동 상태에서 통합 테스트 포함Estructura
Ruta | Rol |
| Framework de definición de Object/Link Type (estilo Palantir) |
| Ontología de ejemplo — archivo que se reemplaza en el proyecto |
| Cliente SPARQL 1.1 (punto donde se puede reemplazar el almacén) |
| Adaptador REST |
| Adaptador MCP |
| Pipeline de ingesta de fuentes de conocimiento → RDF |
| Arranque de Fuseki |
Licencia
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityCmaintenanceA Model Context Protocol server that provides read-only access to Ontotext GraphDB, enabling LLMs to explore RDF graphs and execute SPARQL queries.21116GPL 3.0
- AlicenseAqualityDmaintenanceEnables AI assistants to query the Ubergraph biomedical ontology SPARQL endpoint with tools for custom SPARQL queries, term lookup, search, and hierarchy traversal.4MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to interact with ontologies through the Ontology Access Kit, providing ontology querying and management capabilities.5MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to query semantic data via SPARQL endpoints, with support for multiple output formats and caching.5AGPL 3.0
Related MCP Connectors
Search and fetch Wikidata entities, execute SPARQL queries, and resolve external identifiers.
Curated knowledge API for AI agents - skill packs, semantic search, validated patterns.
Read-only tools over the Safer Agentic AI framework: 238 patterns + 14 heuristics.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nrwoodpsh/py-ontology-server-starter'
If you have feedback or need assistance with the MCP directory API, please join our Discord server