Ontology Knowledge Graph Management
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md and install @user_3c64547b/ontology-knowledge-graph-mgmt into your AI assistant.
About this skill
Problem
Knowledge graphs often break down between data entry and retrieval: after adding entities, relations, or documents, teams can encounter glued JSON lines, broken quotes or brackets, orphan nodes, and inconsistent SQLite synchronization. This skill addresses those engineering details by turning graph completion, validation, synchronization, and vector search into an executable workflow rather than a conceptual outline.
How it works
The main capabilities cover several lifecycle tasks:
- Reading and validation: it reads raw graph data and checks common format issues, such as Line N: double JSON and invalid quotes or brackets, then suggests splitting or repairing them.
- Completion management: it supports entity, relation, and document formats for appending structured data to an existing ontology graph.
- Sync and verification: it writes data to SQLite and checks entity counts, relation counts, and optionally orphan nodes.
- Vector search integration: by default it can use SQLite plus in-memory vectors, and can connect backends such as ChromaDB, Pinecone, or Weaviate depending on deployment needs.
- Index refresh: it includes scheduled index updates to reduce stale retrieval results.
Boundaries and cautions
The skill references external scripts such as scripts/graph_sync.py, scripts/graph_vectorize.py, and scripts/graph_search.py, but they are not included in the current directory. Obtain them from the project repository or implement them against the described interfaces. Before running, confirm no partial operation is in progress; back up configuration before changes; and verify end-to-end behavior after completion. For vector storage, ChromaDB is suitable for local small-scale use, while Pinecone or Weaviate can fit cloud or larger deployments.
Use Cases
- Fix glued JSON, quotes, or brackets after adding graph data.
- Sync graph data to SQLite and check entity and relation counts.
- Connect ChromaDB for local vector search on documents or entities.
- Refresh vector indexes after adding new documents for search.
Best For
- Ontology data engineers adding entities, relations, and documents.
- Graph pipeline engineers syncing JSON data to SQLite and checking consistency.
- Search engineers integrating graph documents into vector search backends.
- Ops engineers refreshing vector indexes so new content remains searchable.
Related Skills
Search Huawei Cloud official docs and product pages to find ECS, OBS, RDS, CCE product specs, parameters, documentation, and API references without login.
OCR-based recognition for movie, train, flight, and event tickets in images or PDFs, extracting key fields into Markdown or JSON reports.
Turns notes, research, and meeting summaries into actionable next moves, plans, decisions, experiments, and decision-changing gaps.
A local wiki knowledge base manager that compiles raw documents into sourced, indexed Markdown pages with wikilinks, query support, and health checks.