What you find here
Everything in this layer lives in the RDFSharp.Query namespace, on top of the other two.
using RDFSharp.Model;
using RDFSharp.Store;
using RDFSharp.Query;
Every query can be composed in C#, with one class per SPARQL construct, or parsed from a SPARQL string; both produce the same object and the same answers. The chapters start from patterns and build up through filters, paths, aggregates and expressions to the four query forms. Then the data sources beyond a single graph: federations and remote endpoints. Last, the updates: SPARQL operations that insert, delete and reorganize data.
Variables and patterns
Variables, patterns, optional parts, unions and differences.
2Filters
Keep only the solutions that pass a test.
3Modifiers
Sort, page and deduplicate results.
4Property paths
Walk chains of links of any length in one step.
5Subqueries
Queries inside queries.
6Aggregates
Count, sum, average and group.
7Values
Give a variable a fixed list of values.
8Bind and expressions
Compute new values: arithmetic, strings, dates, conditions.
9GeoSPARQL
Distances, buffers and topology on geometries.
10Query forms
SELECT, ASK, CONSTRUCT and DESCRIBE.
11Parsing SPARQL
Turn SPARQL text into query objects and back.
12Federations
Query several data sources as one.
13SPARQL endpoints
Ask remote SPARQL services such as DBpedia.
14Tips and tricks
How the engine works and how to help it.
Updates
Insert and delete
Add and remove data with SPARQL Update.
16Load and manage graphs
Load, clear, create, drop, copy and move graphs.
17Operation sets
Several updates applied as one unit.
Where the data comes from
Most examples query vallerosa-catalog.ttl. Those about scores use the store of the Store chapters; those about shops and sales use vallerosa-sales.ttl. Each page says which.