W3C home > Mailing lists > Public > public-ddwg@w3.org > February 2008

Re: New simple API version with aspect support

From: José Manuel Cantera Fonseca <jmcf@tid.es>
Date: Thu, 14 Feb 2008 15:41:28 +0100
To: Rodrigo Garcia Acevedo <rodrigo.garcia@fundacionctic.org>
Cc: public-ddwg@w3.org
Message-id: <47B45318.5020107@tid.es>

Rodrigo Garcia Acevedo escribió:
> Hi all.
>
> I support Jose's point about dropping the string methods to work with more specific types as it makes the API more robust and flexible (later on those classes could be easily extended through inheritance, etc). 
> I also like the idea of adding the factory methods like newPropertyName and newAspectName and the cataloguing functions. I don't think they are neither cumbersome nor difficult to use.
>
> Just two comments:
> - To be totally consistent throughout the API, the vocabularyIRI string should be wrapped in a specific type with its own factory method too, shouldn't it?
>   
Yes, even could be better and simpler  to have a listProperties() method 
without parameters, because you can always know the vocabulary using 
property.getVocabulary()
> - The listProperties(string vocabularyIRI) should throw a NameException too.
>
>   
Yes lathough if we finally go for something without paramters it won't 
be necessary :)

Thanks for your comments
> Best regards,
> Rodrigo.
>
> Btw, I uploaded the IDL for the current Simple API to the Morfeo's repository.
>
> svn: https://svn.morfeo-project.org/svn/ddr-ri/trunk/Simple/API/idl
> http: https://forge.morfeo-project.org/plugins/scmsvn/viewcvs.php/trunk/Simple/API/idl/?root=ddr-ri
>
> _________________________________________________________
> Rodrigo García Acevedo - rodrigo.garcia@fundacionctic.org
> Departamento I+D+i
> Fundación CTIC - www.fundacionctic.org
> Parque Científico Tecnológico de Gijón
> Edificio Centros Tecnológicos
> 33203 Cabueñes - Gijón - Asturias - Spain
> Phone:  +34 984 29 12 12
> Fax:    +34 984 39 06 12
> _________________________________________________________
>
> -----Mensaje original-----
> De: public-ddwg-request@w3.org [mailto:public-ddwg-request@w3.org] En nombre de José Manuel Cantera Fonseca
> Enviado el: lunes, 11 de febrero de 2008 18:07
> Para: José Manuel Cantera Fonseca
> CC: public-ddwg@w3.org
> Asunto: Re: New simple API version with aspect support
>
>
> The new version can be downloaded from SVN at
>
> https://svn.morfeo-project.org/svn/ddr-ri/trunk/Simple/API/java/DevInfo-Simple-API
>
> The code can be browsed in
>
> https://forge.morfeo-project.org/plugins/scmsvn/viewcvs.php/trunk/Simple/API/java/DevInfo-Simple-API/?root=ddr-ri
>
> Best Regards
>
> José Manuel Cantera Fonseca escribió:
>   
>> Hi all,
>>
>> As agreed I have just uploaded a new version of the Java simple API 
>> for DD. The new version includes aspect support and the cataloguing 
>> functions supported by Jo. Also it includes the new newProperty 
>> factory methods that avoid dealing directly with Strings in the 
>> getProperty methods.
>>
>> Please note that the getPropertyValue methods do not deal with Strings 
>> and I think this is part of the beauty of this API compared to WURFL's 
>> (btw Luca has just announced a new version of the WURFL API :) ).
>>
>> IMHO saying that something is String is saying nothing, but using 
>> something more specifically typed is good for our interface and for 
>> standardization purposes.
>>
>> That's all for now
>>
>> Best Regards
>>
>>
>>     
>
>
>
>
>
>   
Received on Thursday, 14 February 2008 15:39:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 12:13:52 GMT