[Xesam] Metadata API draft

Mikkel Kamstrup Erlandsen mikkel.kamstrup at gmail.com
Tue Oct 7 05:26:40 PDT 2008


2008/10/7 Urho Konttori <urho.konttori at nokia.com>

> ext Mikkel Kamstrup Erlandsen wrote:
>
>> Hi,
>>
>> A few of us made a more or less complete draft of a Xesam Metadata
>> API. I just brushed it up a bit. You can now find it here:
>> http://xesam.org/main/XesamMetadataAPI
>>
>> Please comment.
>>
>>
>>
> I'm really interested in why do we need to have the explicit create method?
> Shouldn't all objects/nodes anyway have some property to have the reason why
> they were/are created? If so, shouldn't we just use the set method and
> explicitly mention that if setting properties for an object that doesn't
> exist, the object will be created automatically? Engines will anyway need to
> lookup the objects from the database, so they might just as well trigger the
> creation of the object while they are at it.
>

Ok, I am really indifferent on this subject. We still need to define a way
to delete an object. Maybe if I want to delete daze://myNote I just call:

Metadata.Delete ("daze://myNote", ["xesam:url"])

Or something similar. Of course this implicitly means that all objects must
have a xesam:url which is not something I am all for...

Also, should we consider allowing xml based graph injection?


If we can avoid I would rather keep it all in the API. Historically metadata
representation languages has been a point of *a lot* of flames in the Xesam
community.



-- 
Cheers,
Mikkel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/xesam/attachments/20081007/748fb00c/attachment-0001.htm 


More information about the Xesam mailing list