W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > April 2011

Re: ISSUE-93: Should the RDF API support persistent storage?

From: Ivan Herman <ivan@w3.org>
Date: Fri, 22 Apr 2011 10:35:39 +0200
Cc: public-rdfa-wg@w3.org
Message-Id: <BAC2EA45-6110-4077-A541-0167CD5E5DFE@w3.org>
To: benjamin.adrian@dfki.de
The problem I have with this approach is that it becomes a bit muddy to define those things and then make it clear to implementers that thy are _not_ required to implement all those strategies. Because I do not think we should require that.

My apologies if not using the exact interfaces here, but I guess my approach would still get across if I use a pythonic style:-)

- By default, the underlying datastore for an RDF API implementation is an in-memory datastore
- The interface should allow to 'set' the datastore to another one, ie, I should be able to do some sort of a 'new instance'.

That is it. I can see some value if there is also an rdf.getPersistence() method that returns some information on the persistence strategy of the datastore. But not necessarily.

As I said, that is it as far as the RDF API definition is concerned. A specific implementation may provide all kinds of fancy data stores with persistence on my own machine, or on Mars, Jupiter or the Milky Way, and an application can then initialize it and then use the RDF API. 

Ivan


On Apr 21, 2011, at 22:39 , Benjamin Adrian wrote:

> What I propose, is just to provide the possibility to define
> the persistence strategy in our API explicitly.
> 
> e.g.,
> rdf.setPersistence(rdf.IN_MEMORY_PERSISTENCE)
> rdf.setPersistence(rdf.LOCAL_PERSISTENCE, file)
> rdf.setPersistence(rdf.REMOTE_PERSISTENCE, url)
> 
> rdf.getPersistence() // returns one of these three strategies
> 
> It does not mean, that implementers have to support all three strategies.
> But it would developers explicate how the RDF data is stored.
> 
> 
>> RDF Web Applications Working Group Issue Tracker wrote:
>>> ISSUE-93: Should the RDF API support persistent storage?
>>> 
>>> http://www.w3.org/2010/02/rdfa/track/issues/93
>> 
>> from the archives:
>> http://lists.w3.org/Archives/Public/public-rdfa-wg/2010Nov/0029.html
>> 
>> 
> 
> 
> 
> -----------------------------------------
> This email was sent using SquirrelMail.
>   "Webmail for nuts!"
> http://squirrelmail.org/
> 
> 


----
Ivan Herman, W3C Semantic Web Activity Lead
Home: http://www.w3.org/People/Ivan/
mobile: +31-641044153
PGP Key: http://www.ivan-herman.net/pgpkey.html
FOAF: http://www.ivan-herman.net/foaf.rdf
Received on Friday, 22 April 2011 08:34:52 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:19:51 UTC