Query

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

bibinprathap Updated

File contents

/veritasreason:query

Run graph queries and search. Usage: /veritasreason:query <mode> [args]

$ARGUMENTS = query mode + query string or filter.


sparql <query>

Execute a SPARQL query against the graph.

from veritasreason.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.

bibinprathap/VeritasGraph/tree/main/veritas-reason/plugins/skills/query commit e2c5bbef1c

Frequently asked questions

npx skillmds@latest add bibinprathap/query