List graphs on a SPARQL endpoint
get_graph_listLists named graphs available on a SPARQL endpoint for a specified database, ranking matching graph URIs first to help identify the correct graph for queries.
Instructions
Get a list of named graphs on a SPARQL endpoint. database is required.
Endpoints are the same registry run_sparql uses: RDF Portal (https://rdfportal.org/)
for most databases, plus the external endpoints run_sparql's description names.
RETURNS a CSV-formatted list of named graphs (database-name matches first). On missing endpoint selection it returns a string beginning with 'Error:' — check for that prefix before use.
Graph URIs containing the database substring (case-insensitive) are ranked first,
always — useful when the endpoint hosts multiple databases (e.g. SIB hosts UniProt +
Rhea + Bgee + OMA). Virtuoso/OpenLink internal graphs are filtered out unless
include_system=True.
The endpoint URL is resolved with the same priority used by run_sparql:
endpoint_url > endpoint_name > database. If only database is given it must be
in the registry; otherwise pass endpoint_url (or endpoint_name if its parent
endpoint is registered) to bypass that check, and the required database value then
serves only as the ranking hint.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"database": "<database>"
},
"name": "get_graph_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | RDF database name (e.g. 'uniprot', 'chembl'). Required. When the name is in the registry it resolves the endpoint URL; in any case the value is used as a case-insensitive substring to rank matching graph URIs first. For an unregistered database, also pass `endpoint_url` or `endpoint_name` (which take priority); `database` is then just the ranking hint. | |
| endpoint_url | No | Direct SPARQL endpoint URL. Use when neither the database nor its parent endpoint name is in the registry. Must be a registered endpoint or a public http(s) one; internal addresses are refused. | |
| endpoint_name | No | Short endpoint name (e.g. 'primary', 'sib', 'ebi'). Use when the database is not yet registered but its parent endpoint is. | |
| include_system | No | If True, include Virtuoso/OpenLink internal graphs (virtrdf, ldp, activitystreams, etc.). Default False — these are never useful for queries. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |