40.3k views
4 votes
Besides SELECT, what other QUERY FORMS are available in SPARQL?

A) FILTER
B) ASK
C) MERGE
D) SORT

User Lordhong
by
7.8k points

1 Answer

1 vote

Final answer:

SPARQL has several query forms other than SELECT, such as ASK, CONSTRUCT, and DESCRIBE. FILTER is a component of a query, not a query form, and ORDER BY is used for sorting results, not SORT.

Step-by-step explanation:

Besides the SELECT query form which is used to retrieve variables based on specified patterns, SPARQL offers several other query forms, which include:

  • ASK - Returns a boolean indicating whether the query pattern matches the data.
  • CONSTRUCT - Returns an RDF graph constructed as per the query patterns.
  • DESCRIBE - Returns an RDF graph that describes the resources found.

The options FILTER and SORT are not query forms but rather components of a SPARQL query. FILTER is used to restrict the results of a query based on given conditions, and although there is no 'SORT' keyword in SPARQL, the ORDER BY clause serves to arrange results in a specific order.

User Noam Almosnino
by
7.8k points