for(Resource r : graph.getObjects(varres, l0.HasName))\r
sb.append(graph.getValue(r));\r
sb.append(" : ");\r
- for(Resource t : graph.getObjects(varres, l0.InstanceOf))\r
+ Resource represents = graph.getPossibleObject(varres, l0.Represents);\r
+ if(represents == null) return sb.toString();\r
+ for(Resource t : graph.getObjects(represents, l0.InstanceOf))\r
for(Resource r : graph.getObjects(t, l0.HasName))\r
sb.append(graph.getValue(r));\r
return sb.toString();\r
for(Resource r : graph.getObjects(resource, l0.HasName))\r
sb.append(graph.getValue(r));\r
sb.append(" : ");\r
- for(Resource t : graph.getObjects(resource, l0.InstanceOf))\r
+ Resource represents = graph.getPossibleObject(resource, l0.Represents);\r
+ if(represents == null) return sb.toString();\r
+ for(Resource t : graph.getObjects(represents, l0.InstanceOf))\r
for(Resource r : graph.getObjects(t, l0.HasName))\r
sb.append(graph.getValue(r));\r
return sb.toString();\r
for(Resource r : graph.getObjects(varres, l0.HasName))\r
sb.append(graph.getValue(r));\r
sb.append(" : ");\r
- for(Resource t : graph.getObjects(varres, l0.InstanceOf))\r
+ Resource represents = graph.getPossibleObject(varres, l0.Represents);\r
+ if(represents == null) return sb.toString();\r
+ for(Resource t : graph.getObjects(represents, l0.InstanceOf))\r
for(Resource r : graph.getObjects(t, l0.HasName))\r
sb.append(graph.getValue(r));\r
return sb.toString();\r