- Layer0 L0 = Layer0.getInstance(graph);
- List<Resource> entries = searchByQuery(graph, model, filter);
- List<Triple<Resource, Resource, String>> listOfTriples = new ArrayList<Triple<Resource,Resource,String>>();
- for (Resource entry : entries) {
- Resource type = graph.getPossibleObject(entry, L0.InstanceOf);
- String name = NameUtils.getSafeName(graph, entry);
- listOfTriples.add(new Triple<Resource, Resource, String>(entry, type, name));
- }
- return listOfTriples;