python

Manage RDF data and run SPARQL 1.1 queries in Python.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill allows developers to leverage the sparq RDF+SPARQL engine within Python applications, providing powerful RDF data management and SPARQL querying capabilities.

Core Features & Use Cases

  • RDF Data Management: Load, manipulate, and persist RDF data using Python.
  • SPARQL Querying: Execute SPARQL 1.1 queries and updates for data retrieval and manipulation.
  • Reasoning and Text Search: Perform RDFS/OWL-RL reasoning and BM25 full-text search on RDF data.
  • Use Case: A developer could use this Skill to build a semantic search application that indexes and queries RDF data stored in a triplestore.

Quick Start

Use the sparq skill to load RDF data from a Turtle file and execute a SPARQL query to find all resources with the predicate 'http://schema.org/name' that have a value of 'Alice'.

Frequently Asked Questions about python

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

FAQPage Schema
How do I query RDF data using SPARQL in Python?

This Skill provides Python bindings for the sparq engine to manage RDF data and execute SPARQL 1.1 queries. It supports loading Turtle files and retrieving specific predicate values within Python applications.

Does this Python SPARQL engine support RDFS and OWL reasoning?

Yes, the Python SPARQL engine supports RDFS and OWL-RL reasoning. This allows you to perform semantic inference on your RDF data directly within your Python applications.

Can I perform full-text search on RDF data in Python?

You can perform full-text search on RDF data using the built-in BM25 search functionality. This enables efficient text querying and indexing alongside standard SPARQL querying in Python.

Do I need to install the sparq-rdf package to use these Python bindings?

Yes, you must install the sparq-rdf Python package as a dependency. This Skill requires the sparq-rdf package to provide the underlying RDF data management and SPARQL querying capabilities.

What is the best way to build a semantic search application with RDF data in Python?

The best way to build a semantic search application in Python is to use this Skill to index and query RDF data. It combines SPARQL 1.1 querying with BM25 full-text search to retrieve data from a triplestore.