sparql-query

Execute SPARQL 1.1/1.2 queries on RDF data in the sparq engine.

8|1|Updated Jun 7, 2026
One-click install
npx skills add https://github.com/sparq-org/sparq --skill sparql-query
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sparql-query
Source: https://github.com/sparq-org/sparq/tree/main/skills/sparql-query
Command: npx skills add https://github.com/sparq-org/sparq --skill sparql-query

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sparq-core, sparq-engine, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows users to run SPARQL 1.1/1.2 queries against the sparq RDF engine, making it easier to query and manipulate RDF data.

Core Features & Use Cases

  • SPARQL Query Execution: Execute SELECT, ASK, CONSTRUCT, and DESCRIBE queries on RDF data.
  • RDF Data Manipulation: Perform various operations on RDF data, including property paths, aggregates, and custom extension functions.
  • Use Case: Imagine you have an RDF dataset containing information about books. Use this Skill to query the dataset for books published after a certain year or to construct a new graph representing the relationships between authors and their books.

Quick Start

Run the sparql-query skill with the following command: sparql-query --query 'SELECT ?book ?title WHERE { ?book <http://schema.org/title> ?title . }'

Frequently Asked Questions about sparql-query

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

FAQPage Schema
How do I execute SPARQL queries against RDF data?

To execute SPARQL queries against RDF data, you can run the sparql-query skill with a command like `sparql-query --query 'SELECT ... WHERE { ... }'`. It processes the query and returns the matching RDF data results.

What SPARQL query types are supported for RDF data manipulation?

Supported SPARQL query types for RDF data manipulation include SELECT, ASK, CONSTRUCT, and DESCRIBE. These allow you to extract specific data, test for existence, build new graphs, and explore resource properties.

Can I use property paths and aggregates in my SPARQL queries?

Yes, you can use property paths and aggregates in your SPARQL queries. The skill also supports custom extension functions to perform advanced data manipulation and complex graph traversal operations.

Do I need sparq-core and sparq-engine to run SPARQL 1.1 queries?

Yes, you need both sparq-core and sparq-engine installed to run SPARQL 1.1 and 1.2 queries. These dependencies are required to process the underlying RDF data and execute the query logic.

What is the best way to construct a new graph from an existing RDF dataset?

The best way to construct a new graph from an existing RDF dataset is using a SPARQL CONSTRUCT query. This skill extracts matching patterns from your source data and returns a new RDF graph structure.

How does sparql-query handle RDF data extraction for specific conditions?

sparql-query handles RDF data extraction by evaluating SPARQL SELECT queries against the stored data. You can filter by specific conditions, such as retrieving books published after a certain year, using standard query syntax.