parent = parent.getParent(graph);
represents = parent.getPossibleRepresents(graph);
}
- Resource root = graph.syncRequest(new IndexRoot(property.getRepresents(graph)));
- return Pair.make(parent.getType(graph), root);
+ Resource componentType = parent.getType(graph);
+ Resource root = graph.syncRequest(new IndexRoot(parent.getRepresents(graph)));
+ return Pair.make(componentType, root);
}
public static List<TCon> getEffects(ReadGraph graph, Variable context) throws DatabaseException {
return Pair.make(type, root);
} else {
Resource doc = graph.syncRequest(new PossibleTypedParent(component, DocumentationResource.getInstance(graph).Document));
- Resource root = graph.syncRequest(new IndexRoot(component));
- return Pair.make(graph.getSingleType(doc), root);
+ Resource componentType = graph.getSingleType(doc);
+ Resource root = graph.syncRequest(new IndexRoot(doc));
+ return Pair.make(componentType, root);
}
}
throw new IllegalStateException();