QuerySolution qs = results.next();
String categoryId = qs.getResource("c").toString();
String name = qs.getLiteral("cn").getString();
String scopeStr = qs.getResource("scope").getLocalName();
EvaluationScope scope = null;
if ("OBJECT".equals(scopeStr)) {
scope = EvaluationScope.OBJECT;
} else {
scope = EvaluationScope.ALTERNATIVE_ACTION;