SPARQL is a query language for RDF. Please refer to the SPARQL Specification for details. A number of the AllegroGraph Java examples provided in this section are based on example queries in the specification.
There are a number of gentle SPARQL tutorials available on the web. A detailed overview of SPARQL for the mathematically inclined can be found here.