SPARQL-2 Flashcards

(12 cards)

1
Q

What is the basic structure of a SPARQL SELECT query?

A

PREFIX declarations; SELECT ?vars WHERE { triple patterns }.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a triple pattern in SPARQL?

A

A graph pattern with subject, predicate, object (IRIs, literals, or variables) to match triples.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a SPARQL binding?

A

A mapping of query variables to RDF terms for each match solution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the FILTER clause do in SPARQL?

A

Restricts solution mappings by a boolean expression or regex applied to variable bindings.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the UNION clause do in SPARQL?

A

Performs a logical OR between two pattern groups, matching solutions satisfying either group.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the OPTIONAL clause do in SPARQL?

A

Left-outer-joins solutions with an optional pattern, returning bindings even when the optional part fails.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the SPARQL aggregation extension?

A

Adds aggregate functions (COUNT, SUM, MIN, MAX, AVG, GROUP_CONCAT) and GROUP BY to summarize results.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the SPARQL subqueries extension?

A

Allows nesting SELECT queries inside WHERE clauses to compute intermediate result sets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the SPARQL property paths extension?

A

Enables matching paths of arbitrary length or specific patterns using operators like |, /, *, +, ^.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the SPARQL UPDATE extension?

A

Provides operations for modifying RDF data (INSERT, DELETE, LOAD, CLEAR, CREATE, etc.).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the SPARQL federation extension?

A

Enables querying remote SPARQL endpoints within a query using the SERVICE keyword.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the SPARQL entailment regimes extension?

A

Defines inference regimes (RDF, RDFS, OWL) that add inferred triples during query evaluation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly