Agent Skills
› semantica-agi/semantica
› query
query
GitHub通过SPARQL、Cypher及关键词搜索查询Semantica知识图谱。支持结构化图查询与实体检索,返回表格或排序结果。
触发场景
用户需要执行SPARQL查询
用户需要执行Cypher查询
用户需要通过关键词搜索知识图谱中的实体
安装
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.
版本历史
- 9094f1e 当前 2026-07-05 09:26


