get_graph_list
List named graphs on a SPARQL endpoint, filtering out system graphs, and ranking database-specific graphs first. Works with registered and unregistered databases.
Instructions
Get a list of named graphs on a SPARQL endpoint. ALWAYS pass database (required). Virtuoso/OpenLink internal graphs are filtered out. Graph URIs containing the database substring (case-insensitive) are ranked first — useful when the endpoint hosts multiple databases (e.g. SIB hosts UniProt + Rhea + Bgee + OMA). For a database not yet in the registry, pass endpoint_url (or endpoint_name if its parent endpoint is registered) to bypass database validation; the required database value is then used only as a ranking hint. 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.
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. | |
| 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 |