This blog post provides a few sample SPARQL queries that can be used as a starting point for exploring an unfamiliar dataset. The queries are intended to give users an idea of what is possible and a platform to build on. The dataset used in these examples is LOCAH archival data which, like most archives, is hierarchically organized into collection level and sub-levels.
URL: http://locah.archiveshub.ac.uk/tag/sparql/
Keywords: Archives, Dataset, RDF, SPARQL endpoint, SPARQL
Author: Petej
Publisher: LOCAH Project
Date created: 2011-05-10 04:00:00.000
Language: http://id.loc.gov/vocabulary/iso639-2/eng
Time required: P30M
- Reads and understands high-level descriptions of the classes and properties of a dataset in order to write queries.
- Understands how to combine and filter graph patterns using operators such as UNION, OPTIONAL, FILTER, and MINUS.
- Uses aggregates to apply expressions over groups of solutions (GROUP BY, COUNT, SUM, AVG, MIN) for partitioning results, evaluating projections, and filtering.
- Uses ORDER BY to define ordering conditions by variable, function call, or expression.
- Uses variables in SELECT and WHERE clauses to yield a table of results.