patch for dynamically generate a list of all available resources when index is requested (and IndexResource is missing in the configuration)
added a dynamic list of all resources when index is requested (and In…
…dexResource is missing on the configuration)
added missing class
limiting index list to 1000 resources (probably needed on huge datasets)
Useful patch for us on some of our private deployments
Nice! This is much better than the current default behaviour when no index resource is set. A couple of points though:
ORDER BY ?s
removed unused stuff
removed custom RDF vocab, switched to the one already provided by Jena
documented the new feature
refactorized index generation
I pushed new commits solving the first three comments.
For the last one I'd need more time for diving deeper in the code, and find where/how should be the right way to add pagination only for the index resource without affect the main functionality and performance.
BTW, acknowledgement to the ADAPTA research project, partially funded by the INNPACTO 2011 programme (IPT-2011-0949-430000) of the Spanish Ministry of Science and Innovation and the European Regional Development Fund (FEDER).
Looks great @wikier! For pagination, the cleanest thing would probably be to add a separate IndexServlet that has the pagination, and forward from the RootServlet to the IndexServlet only if no conf:indexResource is set.
Right, maybe we should use to a separate servlet. The current implementation reuse the default rendering mechanism (both HTML and RDF) creating a fake resource resource/Index, which is of questionable accuracy.
I'll try to take a look on this issue during the week.