
Query Languages 301
In the second part, we have taken a closer look at conjunctive queries for
OWL DL, and we have compared this formalism to SPARQL and to OWL-
compatible rule languages that were introduced in Chapter 6.
7.4 Exercises
Exercise 7. 1 Consider the following RDF document with information about
celestial bodies.
@prefix ex: <http://example.org/> .
ex:Sun ex:radius "1.392e6"^^xsd:double ;
ex:satellite ex:Mercury, ex:Venus, ex:Earth, ex:Mars .
ex:Mercury ex:radius "2439.7"^^xsd:double .
ex:Venus ex:radius "6051.9"^^xsd:double .
ex:Earth ex:radius "6372.8"^^xsd:double ;
ex:satellite ex:Moon .
ex:Mars ex:radius "3402.5"^^xsd:double ;
ex:satellite ...