A simple (yet thorough) introduction to SPARQL query language based on the W3C documentation. Focuses on aspects of the query language present in SPARQL 1.0 and does not include features added in SPARQL 1.1 Update.
Keywords: SPARQL, Negation, BIND
Author: Szekely, Pedro
Date created: 2013-05-21 07:00:00.000
Time required: P45M
Educational use: instruction
Educational audience: professional
Interactivity type: expositive
- Demonstrates a working knowledge of the forms and uses of SPARQL result sets (SELECT, CONSTRUCT, DESCRIBE, and ASK).
- Differentiates between a Default Graph and a Named Graph, and formulates queries using the GRAPH clause.
- Understands how to combine and filter graph patterns using operators such as UNION, OPTIONAL, FILTER, and MINUS.
- Understands the role of Property Paths and how they are formed by combining predicates with regular expression-like operators.
- Uses aggregates to apply expressions over groups of solutions (GROUP BY, COUNT, SUM, AVG, MIN) for partitioning results, evaluating projections, and filtering.
- Uses the regular expression (regex()) function for string matching.