Poniżej znajduje się zdefiniowane w konfiguracji query (opakowane w cache) wraz ze zdefiniowanym constraintem i funkcją, a także obiektem IQueryResult:
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://age.iisg.agh.edu.pl/AgE/2.3" xsi:schemaLocation="http://age.iisg.agh.edu.pl/AgE/2.3 http://age.iisg.agh.edu.pl/xsd/age-2.3.xsd"> <component name="queryResult" isSingleton="false" class="org.jage.query.QueryableQueryResult"/> <component name="range" isSingleton="true" class="org.jage.query.QueryStepCache"> <property name="query"> <reference target="rangeQuery"/> </property> <property name="refreshAge"> <value value="1" class="Long"/> </property> </component> <component name="rangeQuery" isSingleton="true" class="org.jage.query.AggregatingQuery"> <list name="constraintsList"> <component name="rangeEntry" isSingleton="true" class="org.jage.query.ConstraintEntry"> <property name="propertyName"> <value value="height" class="String"/> </property> <property name="constraint"> <reference target="rangeConstraint"/> </property> <component name="rangeConstraint" isSingleton="true" class="org.jage.query.RangeConstraint"> <property name="lowestValue"> <value value="3.0" class="Float"/> </property> <property name="highestValue"> <value value="4.0" class="Float"/> </property> </component> </component> <reference target="rangeEntry"/> </list> <property name="constraints"> <reference target="constraintsList"/> </property> <list name="functionsList"> <component name="queryFunction" isSingleton="true" class="org.jage.query.PlainQueryFunction"/> <reference target="queryFunction"/> </list> <property name="functions"> <reference target="functionsList"/> </property> <property name="resultClass"> <value value="queryResult" class="String"/> </property> </component> </configuration>