+ @Override
+ protected String getContextDescription(ReadGraph graph) throws DatabaseException {
+ Resource componentType = getComponentType(graph);
+ if(componentType != null) {
+ String uri = graph.getPossibleURI(componentType);
+ if(uri != null)
+ return uri;
+ }
+ // OK, no component type - report index root then
+ Resource indexRoot = getPossibleIndexRoot(graph);
+ if(indexRoot != null) {
+ String uri = graph.getPossibleURI(componentType);
+ if(uri != null)
+ return uri;
+ }
+ // OK, nothing - report default
+ return super.getContextDescription(graph);
+ }
+