Query

Query the Semantica knowledge graph using SPARQL, Cypher, keyword search, and structured graph query patterns.

Hawksight-AI Updated

File contents

/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.

Hawksight-AI/semantica/tree/main/plugins/skills/query commit 7b3ed40720

Frequently asked questions

npx skillmds@latest add hawksight-ai/query