query-pkg

Retrieve facts from the Project-Knowledge-Graph using SPARQL queries.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines access to the Project-Knowledge-Graph (PKG) by allowing users to run SPARQL queries to retrieve facts and information, eliminating the need to read through entire documents.

Core Features & Use Cases

  • SPARQL Query Execution: Run SPARQL queries on the PKG to retrieve specific information.
  • Introspection and Grounding: Before querying, introspect the dataset's schema and ground the question to SPARQL terms.
  • Use Case: When you need to quickly find the provenance or status of a certain concept or task within the PKG, use this Skill to avoid reading through large documents.

Quick Start

Use the query-pkg skill to find the provenance of a specific finding in the PKG.

Frequently Asked Questions about query-pkg

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

FAQPage Schema
How do I retrieve facts from a Project-Knowledge-Graph using SPARQL?▼

You can retrieve facts from a Project-Knowledge-Graph by executing SPARQL queries to extract specific information, which eliminates the need to manually read through entire project documents.

What is the best way to find the provenance of a finding in a project knowledge graph?▼

The best way to find provenance is by running targeted SPARQL queries on the project knowledge graph, allowing rapid information lookup and status retrieval without scanning large documents.

Do I need sparq-kb to execute SPARQL queries over the PKG?▼

Yes, you need sparq-kb installed as a dependency because it provides the required execution environment for running SPARQL queries over the Project-Knowledge-Graph.

How does introspection help ground questions to SPARQL terms?▼

Introspection examines the dataset's schema before querying, grounding your natural language questions to accurate SPARQL terms to ensure precise fact retrieval from the knowledge graph.

Can I look up task status without reading entire project documents?▼

Yes, you can look up task status and concept provenance directly by automating fact retrieval with SPARQL queries, bypassing the need to read through large project documents.