So you store information in a database on the server...
> The step after that will be to allow exhibit to speak with this
> data-aware webserver to decide whether to run the query remotely or
And provide a web service for your javascript client to fetch the
information it needs on the fly...
am I understanding correctly?
If that's what you are trying to do, I bet you will want your client
to send a query like "give me that part of the dataset", which means
you need some query language. Since you've probably heard about SQL
injection, you know sending SQL requests from the client to the server
is not your best option. Then SPARQL comes to mind...
... but wait, did I mention http://www.cubicweb.org ?
We usually run it on top of larger SQL databases like Postgresql for
better performance and larger datasets, but all the automated tests
are run with sqlite.
An example with Timeline would be sending a request like:
Any X WHERE X publication_date >= "2008/01/01",
X publication_date <= "2008/06/30"
and getting the result as JSON. Drag the focus in Timeline and you can
send a new request with a different date. MVC in Timeline, I think I
read it is almost there.
Or maybe with Exhibit:
Any X,T,D WHERE X name LIKE "a%", T tags X, X pub_date D
and getting the result as JSON, to display the X with names starting
with letter 'a' and using tags and dates as facets.
These examples are with the RQL query language. SPARQL will be
available within a couple months.
Licence is LGPL, book being written at http://www.cubicweb.org/doc/en/
If I understood correctly and that's the kind of thing you were
thinking of, please be our guest :)
--
Nicolas Chauvat
logilab.fr - services en informatique scientifique et gestion de connaissances
On Fri, Apr 03, 2009 at 01:02:55PM -0700, Edward Benson wrote:
> - On the server-side, allow people to maintain their files are
> "ordinary" raw data files (CSV, JSON, MS Excel, etc) but have a
> process that is baking these into an optimized database for you so
> that you get query across all the files & optimized access.
Sounds to me like a makefile that updates a database. Am I old fashioned? :)
> - On the client-side, create the ability to smartly know when to
> ...
> we've been toying with the idea of trying to stay as neutral on the
> issue as possible, possibly passing along an extra parameter
> specifying the langauge the query is in. This comes with some pros
> and cons, of course.
I would say go for the new standard and get started with SPARQL
without losing time by trying to be too generic, but that's MHO.
Good luck with your development as it sounds like a very useful thing
for SIMILE Widgets users.