SPARQL Introduction
SPARQL (pronounced "sparkle") is a query-langauge for RDF ledgers.
RDF ledgers are also known as triple-store ledgers, and every fact in a triple-store leger is stored a triple composed of a subject-predicate-object (SPO).
The first three elements of a flake (subject, predicate, object) align exactly to triple-store ledgers' SPO triples. This lends itself to connection across Fluree and RDF ledgers.
You can use SPARQL to:
- Query FlureeQL ledgers across time
- Query across Fluree and non-Fluree ledgers, such as Wikidata and BigData.
- Calculate aggregates
- Create complicated joins
In additional, SPARQL is strictly a query-language. You cannot use SPARQL to transact data.
SPARQL queries, as supported in FlureeQL are comprised of a:
- SELECT clause
- WHERE clause
- PREFIXes
- Additional Options