class RestfulGraphDatabase {

    @GET
    @Path( PATH_NAMED_NODE_INDEX )
    public Response getIndexedNodesByQuery( @PathParam( "indexName" ) String indexName,
                                            @QueryParam( "query" ) String query,
                                            @QueryParam( "order" ) String order )
    {
        try
        {
            return output.ok( actions.getIndexedNodesByQuery( indexName, query,
                    order ) );
        }
        catch ( NotFoundException nfe )
        {
            return output.notFound( nfe );
        }
        catch ( Exception e )
        {
            return output.serverError( e );
        }
    }

    public  RestfulGraphDatabase( @Context InputFormat input,
                                 @Context OutputFormat output,
                                 @Context DatabaseActions actions,
                                 @Context Configuration config );

}