Together, the sequence of links and property navigation creates a path expression. Each path expression denotes a set of objects (if it terminates with a link) or scalars (if it terminates with a property).
A path expression that terminates with a link may be surprising at first:
This is because all objects have an
id, which is the only
property displayed by default if we do not specify a shape
to return. Adding a shape to the query with one or more
properties will replace the default
id output with the
property or properties in the shape:
Note the difference between specifying a shape for an object and a path that simply terminates with a property.
In the query above the
title property is used to specify
a shape for a query on
Content objects (instead of just
id), while in the following query only a set of
title property — a set of
str scalars — is returned.