- From: David Peterson <david.seth.p@gmail.com>
- Date: Tue, 15 Jun 2010 16:23:57 +1000
- To: Ben Lavender <blavender@gmail.com>
- CC: public-rdf-ruby@w3.org
Thanks Ben. I have no idea how I missed some of those things, but I am grateful for you detailed email. Cheers. On 4/06/2010 3:29 AM, Ben Lavender wrote: > Thanks for the interest. > > Spira supports writing more or less as one might expect. The first > example in the README has a person.save! statement which will save the > person as triples. > > bob = RDF::URI("http://example.org/people/bob").as(Person) > bob.age = 15 > bob.name = "Bob Smith" > bob.save! > > There's also bob.destroy! and bob.destroy_resource!. bob.destroy! > deletes triples associated with the particular model class, and > bob.destroy_resource! deletes all triples with bob's URI as the > subject. > > The README has several examples of save!: > http://spira.rubyforge.org/ > > You can find detailed instance method info at: > http://spira.rubyforge.org/Spira/Resource/InstanceMethods.html > > Is that what you needed? > > Ben > > On Thu, Jun 3, 2010 at 4:25 AM, David Peterson<david.seth.p@gmail.com> wrote: > >> Spira looks fascinating! Great work! I have read the docs and they talk >> about reading triples from a backend, but nothing about saving back. Is this >> possible and what backends can I plug into. If I have totally missed some >> documentation I apologise and can you please point me (RTFM) to the correct >> web link. >> >> Cheers, >> >> David Peterson >> >> >> >>
Received on Tuesday, 15 June 2010 06:24:31 UTC