Agent Skills
› semantica-agi/semantica
› query
query
GitHub通过SPARQL、Cypher及关键词搜索查询Semantica知识图谱。支持执行图查询与实体检索,返回结构化数据或排序结果,适用于需要深入分析图谱关系和信息的场景。
Trigger Scenarios
需要执行SPARQL查询时
需要执行Cypher查询时
需要通过关键词搜索知识图谱实体时
Install
npx skills add semantica-agi/semantica --skill query -g -y
SKILL.md
Frontmatter
{
"name": "query",
"description": "Query the Semantica knowledge graph using SPARQL, Cypher, keyword search, and structured graph query patterns."
}
/semantica:query
Run graph queries and search. Usage: /semantica:query <mode> [args]
$ARGUMENTS = query mode + query string or filter.
sparql <query>
Execute a SPARQL query against the graph.
from semantica.query import QueryEngine
engine = QueryEngine()
results = engine.query_sparql(query)
Return: query bindings as a Markdown table.
cypher <query>
Execute a Cypher-like query.
results = engine.query_cypher(query)
Output: node/relationship results and path summaries.
search <keywords> [--filter <type>]
Search graph entities by keyword.
results = engine.search(keywords=keywords, filter_type=filter_type)
Return: ranked matches with entity types and relevance scores.
Version History
- 9094f1e Current 2026-07-05 09:26


