- Layer0 l0 = Layer0.getInstance(graph);
- Statement stm = graph.getPossibleStatement(r, l0.HasLabel);
- if (stm != null) {
- String label = NameUtils.getSafeLabel(graph, r);
- if (!label.isEmpty())
- return label;
- //if (!stm.isAsserted(r))
- // return label;
- }
- return NameUtils.getSafeName(graph, r);