parameterised-query

Retrieve UK Parliament data via parameterised SPARQL templates over HTTP.

1|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/danbri/forgetmenot --skill parameterised-query
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: parameterised-query
Source: https://github.com/danbri/forgetmenot/tree/main/skills/parameterised-query
Command: npx skills add https://github.com/danbri/forgetmenot --skill parameterised-query

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill removes the need to write complex SPARQL queries by providing access to a library of 124 pre-vetted, parameterised templates that return structured JSON data from the UK Parliament knowledge graph.

Core Features & Use Cases

  • Pre-canned Queries: Access common data lookups like constituency member lookups, person indices, and party information without authoring SPARQL.
  • Standardized Output: Receive consistent, machine-readable JSON responses from the official Parliament API.
  • Use Case: Quickly retrieve the current Member of Parliament for a specific postcode by using the constituency_lookup_by_postcode template.

Quick Start

Use the parameterised-query skill to find the current MP for the postcode SW1P 3JA.

Frequently Asked Questions about parameterised-query

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get UK Parliament data without writing SPARQL queries?

You can retrieve UK Parliament data without writing SPARQL by using parameterised query templates. These pre-canned templates perform common lookups for members, constituencies, and committees via HTTP GET requests, returning structured JSON data directly from the official Parliament knowledge graph.

Can I find the current MP for a specific postcode using the Parliament API?

Yes, you can find the current MP for a specific postcode using a pre-defined constituency lookup template. By supplying the postcode as a parameter, the template queries the Parliament knowledge graph and returns the corresponding member information as structured JSON.

Do I need to know the SPARQL query language to look up parliamentary constituency information?

No, you do not need to know the SPARQL query language to look up parliamentary constituency information. The parameterised query approach provides a library of 124 pre-vetted templates that handle the query authoring, allowing you to simply pass parameters to retrieve structured JSON data.

What is the best way to retrieve structured JSON from the UK Parliament knowledge graph?

The best way to retrieve structured JSON from the UK Parliament knowledge graph is by using parameterised query templates. This approach ensures authoritative and consistent data retrieval by executing pre-defined lookups against the official Parliament query service via HTTP GET requests.

What kinds of parliamentary data lookups are supported by pre-canned query templates?

Pre-canned query templates support common parliamentary data lookups including constituency member searches, person indices, and party information. These templates query the UK Parliament knowledge graph to return standardized, machine-readable JSON responses for consistent data integration.

Are there limitations to using parameterised queries for Parliament data instead of direct SPARQL?

The limitation of using parameterised queries instead of direct SPARQL is that you are restricted to the 124 pre-vetted templates provided. For complex or highly customized queries outside the standard lookups for members, constituencies, and committees, you would need to author custom SPARQL queries.