Enhances LLM responses with RAG by routing user intent to the right query
language and live endpoint. Covers SQL, SPARQL, SPASQL, SPARQL-FED, and
GraphQL — all driven by natural language, no imperative programming required.
| Parameter | Value |
|---|---|
| --- | --- |
| SPARQL Default Endpoint | https://linkeddata.uriburner.com/sparql |
| SPARQL Result Format | text/x-html+tr |
| SPARQL / SQL Timeout | 30 seconds |
| SPARQL Max Results | 20 (unless overridden) |
| GraphQL Default Endpoint | https://linkeddata.uriburner.com/graphql |
| GraphQL Query Depth Limit | 10 |
| SQL Default | SELECT TOP 20 * FROM Demo.Demo.Customers |
| Cache TTL | 3600 seconds |
| Parallel Execution | Enabled |
| Tabulate All Results | Yes (all query types) |
Default execution order for query execution:
curl or the query protocol's simplest direct mechanismsparqlRemoteQuery, sparqlQuery, graphqlEndpointQuery, graphqlQuery, execute_spasql_query, and execute_sql_queryhttps://linkeddata.uriburner.com/chat/mcp/messages or https://linkeddata.uriburner.com/chat/mcp/ssehttps://linkeddata.uriburner.com/chat/functions/chatPromptCompleteIf the user's prompt expresses a protocol preference such as curl, REST, OpenAI, MCP, SSE, streamable HTTP, or OPAL, follow that preference instead of the default order.
Read references/protocol-routing.md when you need exact routing guidance.
Default: SELECT TOP 20 * FROM Demo.Demo.Customers
Apply TOP 20 unless a row limit is specified. Tabulate results.
Use default endpoint. Format text/x-html+tr. Max 20 rows. Tabulate results.
Trigger: User explicitly names a SPARQL endpoint URL in the prompt.
SERVICE block (remote); default endpoint → outer processor.SERVICE block must contain a SELECT with an inner LIMIT.Wraps SPARQL inside SQL: FROM (SPARQL ... WHERE ...) AS
Endpoint: https://linkeddata.uriburner.com/graphql. Depth: 10. Introspection on.
Always load references/query-templates.md and match the user's intent to
a template before falling back to general LLM knowledge. Substitute
{placeholders}, run the index query first (where applicable), similarity-match
?name, then execute the final query.
| # | Trigger | Template in references/ |
|---|---|---|
| --- | --- | --- |
| 1 | "Explore this Data Space" | T1 — Entire data space |
| 2 | "Explore knowledge graph {G}" | T2 — Specific KG |
| 3 | "Explore {G} with reasoning & inference" | T3 — KG + inference |
| 4 | "Using endpoint {E}, explore graph {G}" | T4 — SPARQL-FED |
| 5 | "How to {X}" | T5 — HowTo (2-step) |
| 6 | "{Question}" with article/graph context | T6 — Q&A UNION (2-step) |
| 7 | "Define the term {X}" | T7 — DefinedTerm (2-step) |
| Function | Signature | Use Case |
|---|---|---|
| --- | --- | --- |
UB.DBA.sparqlQuery | (query, format) | SPARQL |
Demo.demo.execute_spasql_query | (sql, maxrows, timeout) | SPASQL |
UB.DBA.sparqlQuery | (sql, url) | SQL |
DB.DBA.graphqlQuery | (query) | GraphQL |
Call directly, or as fallback when predefined templates yield no match.
Canonical OPAL-recognizable function names from the Smart Agent definition are:
UB.DBA.sparqlQuery with signature (query, format) for SPARQLDemo.demo.execute_spasql_query with signature (sql, maxrows, timeout) for SPASQLUB.DBA.sparqlQuery with signature (sql, url) for SQL as documented in the canonical configurationDB.DBA.graphqlQuery with signature (query) for GraphQLTreat OPAL as an agent routing layer over these named functions, not merely another transport.
Hyperlink all entity identifiers using:
http://linkeddata.uriburner.com/describe/?uri={url_encoded_id}
@en language tags on ?name.{G}, {Article Title}, ?authorName, etc.chatPromptComplete -> OPAL Agent routing.| Command | Syntax |
|---|---|
| --- | --- |
| Update a setting | /update_settings [name] [value] |
| Show all settings | /show_settings |
| Run a test query | /test_query [type] [content] |
共 1 个版本