sparql-university

Write and validate SPARQL queries against RDF/Turtle academic datasets.

134|21|Updated Nov 12, 2025
One-click install
npx skills add https://github.com/letta-ai/skills --skill sparql-university
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sparql-university
Source: https://github.com/letta-ai/skills/tree/main/ai/benchmarks/letta/terminal-bench-2/trajectory-only/sparql-university
Command: npx skills add https://github.com/letta-ai/skills --skill sparql-university

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides structured guidance for crafting and validating SPARQL queries against university/academic RDF ontologies, helping you extract precise educational data from complex graphs.

Core Features & Use Cases

  • Ontology-aware querying: Learn to map university classes, relationships, and datasets to SPARQL patterns.
  • Complex pattern handling: Build queries with filters, aggregations, and conditional patterns to answer institutional questions.
  • Verification strategies: Validate query results against expected data structures and sample data.

Quick Start

Example: write a SPARQL query to list all professors and their departments who supervise at least two graduate students.

Frequently Asked Questions about sparql-university

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

FAQPage Schema
How do I write SPARQL queries to filter university data by multiple criteria?

SPARQL queries use WHERE clauses with multiple triple patterns and FILTER expressions to match RDF entities by criteria. Decompose your requirement into atomic conditions—such as department affiliation or student count thresholds—then combine them with AND/OR logic and data type constraints to extract precise results from your ontology.

What's the best way to validate SPARQL query results against RDF/Turtle datasets?

Validate by checking query output against expected data structures and sample records from your .ttl file. Verify data types match the schema, confirm entity relationships resolve correctly, and test edge cases like empty result sets or boundary values to ensure your query captures the intended institutional data.

Can I use SPARQL to perform aggregations like counting or summing academic data?

Yes. SPARQL supports aggregation functions—COUNT, SUM, AVG, MIN, MAX—combined with GROUP BY clauses to summarize university data. Use these to answer questions like total supervisions per professor or average course enrollment across departments in your RDF graph.

Do I need to understand RDF ontologies before writing SPARQL queries for academic datasets?

Yes. Understanding your university ontology—how classes, relationships, and properties map to real-world entities—is essential. Map institutional concepts to RDF predicates and class definitions, then use those patterns to construct queries that reliably extract the data you need.

How do I structure complex SPARQL patterns for relationships like professor-to-student supervision?

Break the relationship into its graph components: triple patterns linking professor → supervises → student, with additional filters for constraints like minimum student count. Build incrementally, testing each pattern fragment against your Turtle file to verify syntax and data alignment before combining into the full query.