Hi folks, After using django for a number of more conventional projects, I'm toying around with trying to use it to drive a XUL application. Using django's template system to generate XUL views is easy enough, as is passing serialized objects around with AJAX. However, most of XUL's widgets use RDF data bindings, and I'm not finding a lot of resources for working with them.
Does anyone have experience translating django models into RDF graphs? My ideal views would look something like this:
> Does anyone have experience translating django models into RDF graphs? > My ideal views would look something like this:
Off the top of my head I don't know of anyone who's done this, but it would certainly be a useful thing to have available. Maybe we could work on developing an RDF serializer to go into Django's serialization framework..
-- "May the forces of evil become confused on the way to your house." -- George Carlin
> On 11/8/06, benj <boxf...@gmail.com> wrote: > > Does anyone have experience translating django models into RDF graphs? > > My ideal views would look something like this:
> Off the top of my head I don't know of anyone who's done this, but it > would certainly be a useful thing to have available. Maybe we could > work on developing an RDF serializer to go into Django's serialization > framework..
> 2006/11/9, James Bennett <ubernost...@gmail.com>:
> > On 11/8/06, benj <boxf...@gmail.com> wrote: > > > Does anyone have experience translating django models into RDF graphs? > > > My ideal views would look something like this:
> > Off the top of my head I don't know of anyone who's done this, but it > > would certainly be a useful thing to have available. Maybe we could > > work on developing an RDF serializer to go into Django's serialization > > framework..
benj wrote: > Hi folks, > After using django for a number of more conventional projects, I'm > toying around with trying to use it to drive a XUL application. Using > django's template system to generate XUL views is easy enough, as is > passing serialized objects around with AJAX. However, most of XUL's > widgets use RDF data bindings, and I'm not finding a lot of resources > for working with them.
> Does anyone have experience translating django models into RDF graphs? > My ideal views would look something like this:
The key thing is to get a consistent/generic url for each object, and a clean way to use rdf:resource to point at foreign keys, and things like attachments.
I would also consider the RSS framework as maybe being the shortest path to goal. If that can be extended to RSS1.0+ complete content dumping, you get RDF for free, plus you stay within Django's existing programming idioms.
I agree with David, this is a very interesting project. God, it's great to be back on this list.
> benj wrote: > > Hi folks, > > After using django for a number of more conventional projects, I'm > > toying around with trying to use it to drive a XUL application. Using > > django's template system to generate XUL views is easy enough, as is > > passing serialized objects around with AJAX. However, most of XUL's > > widgets use RDF data bindings, and I'm not finding a lot of resources > > for working with them.
> > Does anyone have experience translating django models into RDF graphs? > > My ideal views would look something like this:
> > def person_list_rdf(request, filter): > > pl = Person.objects.filter(lname__icontains=filter) # or whatever else > > I'm doing > > rdf_list = translate_to_rdf_graph(pl) > > return HTTPResponse(rdf_list)Yep ("Django, RDF & XUL" - what a title ;)
> The key thing is to get a consistent/generic url for each object, and a > clean way to use rdf:resource to point at foreign keys, and things like > attachments.
> I would also consider the RSS framework as maybe being the shortest path > to goal. If that can be extended to RSS1.0+ complete content dumping, > you get RDF for free, plus you stay within Django's existing programming > idioms.
> I agree with David, this is a very interesting project. God, it's great > to be back on this list.