genai-retrieval

Official

Automate RDF dataset introspection and retrieval via SPARQL with GenAI integration.

Authorsparq-org
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates the process of understanding and retrieving information from RDF datasets using SPARQL, enhanced with natural language processing capabilities provided by Generative AI.

Core Features & Use Cases

  • RDF Dataset Introspection: Generate schema cards, VoID representations, and SHACL node shapes for datasets.
  • SPARQL-based Retrieval: Build token-budgeted retrieval contexts for unknown RDF datasets using NL→SPARQL loops.
  • NLQ Integration: Utilize Natural Language Query (NLQ) for seamless querying of RDF graphs with SPARQL.
  • Use Case: Consider an RDF dataset representing a university's student records. This Skill can help you quickly generate a schema card for the dataset and allow you to ask natural language questions to retrieve relevant information like "What is the list of students majoring in Computer Science?"

Quick Start

Load an RDF dataset with 'sparq-core::Graph::load_str("data.ttl", "turtle")?;'. Use the 'sparq_introspect::Introspection::build(&graph)' to generate a schema card. To query, initialize an NLQ with 'sparq_nlq::Nlq::new(&graph, Box::new(ReplayLlm::from_file("tests/fixtures/olympics_replay.json")?));' and then call 'ask("What are the average grades of students?")?;'

Dependency Matrix

Required Modules

sparq-coresparq-introspectsparq-nlq

Components

scriptsreferencesassets

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: genai-retrieval
Download link: https://github.com/sparq-org/sparq/archive/main.zip#genai-retrieval

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.