Sparql Endpoint

The SPARQL Endpoint section lets you query an RDF graph with SPARQL.

Warning
This AI Task is only available if you added as a data source an RDF Graph!

To access this AI task, click AI Tasks and then SPARQL Endpoint:

sparqlsparql initiation

Query the RDF graph with SPARQL 1.1. This endpoint is based on qEndpoint. Set the query timeout in the "Timeout" field. Use the prefix button to add default prefixes:

sparql prefixes

Generate SPARQL queries from natural language. For example, using the cocktails dataset from the RDF Graph data source:

text2sparql
Warning
For the cocktails dataset you need to specify "English" as the language of the dataset at creation time!

Task Settings

Customize the SPARQL Endpoint AI Assistant by clicking the settings icon:

  • Filling the prompt settings: defines the assistant's personality; follow the example in the default settings.
  • Adjusting the LLM settings: choose the LLM, creativity level, and answer speed.
  • Adjusting the Retriever: choose the reference level and add synonyms.
  • Adjusting the Visualization setting: choose how entities are displayed (images, table, list).
Sparql pages settings position

Synonyms

Define groups of synonyms to retrieve more relevant documents.

  • Click + Add synonym group to add a new group.
  • Enter a word and press Enter or click + to add it to the group.
  • A new group can only be added when no existing groups are present, or the last group has at least one synonym and the input field is empty.
  • Click the trash icon to delete a group.
  • Click Bulk Upload to upload synonyms in bulk. Use download the CSV example to see the format, or Choose File to upload a CSV.
AI Task synonyms init