public class ActionRouter
implements org.joseki.module.Loadable, org.joseki.Processor
Outer Joseki processor to route the request to the right handler.
Joseki comes packaged with its "SPARQL" processor to handle SPARQL queries
but this doesn't support insert, update, or delete. This class multiplexes
between "Loadable" implementors to accomplish these extra three functions, as
well as wrap around a custom QueryHandler that makes use of the indexer. It
also maintains the read and write locks.
Ideally, choosing between query and update would be handled in a
RESTful way and would use HTTP commands to convey the intended operation
(Sesame goes this route), but Joseki uses request parameters to convey the
desired action instead of the HTTP command. This class follows Joseki's
choice and uses request parameters to specify the desired action. The
BulkServlet by contrast is RESTful.
Bulk operations are handled by the BulkServlet, and include insert, export,
and flush. Delete, and Clear should be handled via SPARQL/Update.
sallen (4/23/2009) - Moved bulk operations to the BulkServlet. This class
now only handles SPARQL and SPARQL/Update queries.