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?")?;'