List Info

Thread: ActiveRDF assignment / updating




ActiveRDF assignment / updating
user name
2007-11-01 08:45:42
On 11/1/07, Eyal Oren <eyal.orenderi.org> wrote:
> Aside from discussing the speed-up of querying in
ActiveRDF, I just wanted
> to say that I consider the development of this
AllegroGraph adapter great
> news, that I'm very glad to see it being open source,
and that I'm grateful
> to Franz Inc. for sponsoring your work!

Thank you! I'll pass your message along to the folks at
Franz.

> Also, I saw your comment in the test code, regarding
the way ActiveRDF
> supports the setting of attribute values
(smersh.foaf::member = tatiana).
> I'm also not happy with this. Suggestions for
improvement, anybody?

Well, in the spirit of throwing random ideas at the wall, we
might
want to take a look at ActiveRecord. As far as I know, it
uses the
"<<" operator in various clever ways:

 person.name = "foo"  # Replace current name.
 group.members = [susan, joe]  # Replace current group
members.
 group.members << mike  # Add Mike to existing group.

Essentially, the current "=" operator becomes the
new "<<" operator,
and the new "=" operator does a wildcard delete:

 <http://.../currentReso
urce> foaf::member *

...and then calls "<<".

This might not be exactly what you want, of course. Does
anybody else
have other ideas?

Thank you again for your kind words, and for taking your
time to help
us! It would be really cool to have excellent AllegroGraph
support in
ActiveRDF.

Cheers,
Eric
_______________________________________________
ActiveRDF mailing list
ActiveRDFlists.deri.org
http
://lists.deri.org/mailman/listinfo/activerdf

Re: ActiveRDF assignment / updating
user name
2007-11-08 12:42:53
Excerpts from Eric Kidd's message of Thu Nov 01 14:45:42
+0100 2007:
> Well, in the spirit of throwing random ideas at the
wall, we might
> want to take a look at ActiveRecord. As far as I know,
it uses the
> "<<" operator in various clever ways:
> 
>  person.name = "foo"  # Replace current
name.
>  group.members = [susan, joe]  # Replace current group
members.
>  group.members << mike  # Add Mike to existing
group.
It took me a little bit of thinking and Ruby hacking, but
rev.451 (bzr trunk) 
now implements exactly this behaviour. 

ATTENTION: this change is incompatible with the current
update semantics:
- person.name = 'foo' overwrites current attribute value(s)
- person.name << 'foo' adds 'foo' to current attribute
value(s)

Sorry to break this existing behaviour, but ActiveRDF was
simply confusing in 
this respect.  Since I'm not 100% confident of the quality
of this change, 
please test this if you can and notify me of any problems
encountered before we 
release this.

-- 
 -eyal
_______________________________________________
ActiveRDF mailing list
ActiveRDFlists.deri.org
http
://lists.deri.org/mailman/listinfo/activerdf

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )