Query Clauses

The topics in this section describe the standard SPARQL query clauses. All query forms comprise one or more of the following clauses:

  • PREFIX Clause: The optional PREFIX clause declares the abbreviations that you want to use to reference URIs in the query.
  • Result Clause: The required result clause specifies the type of query and defines the data that the query should return.
  • FROM Clause: The optional FROM clause defines the data sets or graphs to query.
  • WHERE Clause: The required WHERE clause defines the data that the query operates against.