refs #7438
Change-Id: I14e45c9301ce46c72dfbc07c9bf2527181d3ea9c
public static Object getPropertyChildName(ReadGraph graph, Resource resource, Object context) throws DatabaseException {
if(context instanceof Variable) {
Variable variable = (Variable)context;
+ String label = variable.getParent(graph).getPossiblePropertyValue(graph, "HasLabel", Bindings.STRING);
+ if(label != null)
+ return label;
return variable.getParent(graph).getName(graph);
}
throw new DatabaseException("Unknown context " + context);