< Back | Home | Edit page | 🙋 Check for open issues |
EN FR unavailable

Query API

There are several APIs to query Artsdata.

List of APIs to query Artsdata:

Artsdata MCP Server

Artsdata is live in the official MCP Registry.

The Artsdata MCP Server exposes the Artsdata knowledge graph to AI agents and LLM-based tools via the Model Context Protocol (MCP). It lets an agent search for entities (organizations, people, places), fetch full entity details, and search for events — all backed by Artsdata’s linked-data knowledge graph.

Endpoint

https://mcp.artsdata.ca/mcp

See also

Query API wrapper for SPARQL

A RESTful API to query anything in Artsdata including events, people, places, organizations and vocabularies…

This API is in active development and may change. If you are looking for a stable API then please use the Artsdata Reconciliation Service which can be used to search (/match) entities in Artsdata, retrieve data (/extend) about those entities using Artsdata identifiers, as well as generate an HTML preview (/preview) of an Artsdata entity.

The Artsdata Query API is a SPARQL wrapper. It uses the SPARQL passed in as a parameter in the HTTP GET /query request.

Parameter Description
sparql SPARQL to run (optional). May be a reserved name or a remote URL. Defaults to query_adid.
frame JSON-LD frame (optional). May be a reserved name or a remote URL.
format Data format in the response body (optional). json | jsonld |html. Defaults to html
adid K-number used in the SPARQL template (optional).

Examples

Any Artsdata ID: K2-197

https://api.artsdata.ca/query?adid=K2-197&format=json&sparql=query_adid

Place: Cabaret La Basoche

http://api.artsdata.ca/query?adid=K5-7&format=json&frame=ranked_place_footlight&sparql=ranked_place_footlight

Person: Étienne Coppée

http://api.artsdata.ca/query?adid=K5-21&format=json&frame=ranked_org_person_footlight&sparql=ranked_org_person_footlight

Organization: Société de musique de chambre de Gatineau

https://api.artsdata.ca/query?adid=K5-3&format=json&frame=ranked_org_person_footlight&sparql=ranked_org_person_footlight

Event Search API (deprecated)

The Event Search API has been replaced by the Reconciliation Service. To search for events on a date and location, use the reconciliation match service with schema:startDate and schema:location properties.

The following documentation is preserved for historical reasons:

The Event Search API is a dedicated endpoint for events and provides an easy way to get a list of events in json or json-ld. Params:

  • “frame” parameter enables the user to select different output properties and structures.
  • “format” parameter selects between json and json-ld.
  • “predicate” parameter selects the property to filter
  • “object” parameter selects the filter value

Example: List of upcoming events at Théâtre Maisonneuve (K11-11) in Montreal: https://api.artsdata.ca/events?format=json&apiKey=sandbox&frame=event_location&predicate=schema:location&object=adr:K11-11

Events demo

Here is a demo website in Github that lists upcoming events in Quebec using the Artsdata API.