private void run(String[] args) {
String[] dallasCreds = args.length > 0 ? args : System.getenv("DALLAS").split(":");
ODataConsumer c = ODataConsumers.newBuilder(ODataEndpoints.DALLAS_CTP2_UNESCO_UIS)
.setClientBehaviors(OClientBehaviors.basicAuth("accountKey", dallasCreds[0]))
.build();
for (OEntity entity : c.getEntities("UNESCO/XGDP_FSGOV").execute()
.orderBy(OFuncs.entityPropertyValue("observationValue", Double.class)))
report("Public expenditure on education as pct of GDP: %s %s, %.4f",
entity.getProperty("referenceArea").getValue(),
entity.getProperty("timePeriod").getValue(),
entity.getProperty("observationValue").getValue());
for (OEntity entity : c.getEntities("UNESCO/C_F_220006").execute()
.orderBy(OFuncs.entityPropertyValue("observationValue", Double.class)))
report("Number of national feature films produced: %s %s, %.0f",
entity.getProperty("referenceArea").getValue(),
entity.getProperty("timePeriod").getValue(),
entity.getProperty("observationValue").getValue());
}