alphaville / ToxOtis

An HTTP client for consuming OpenTox predictive toxicology web services.
http://opentox.ntua.gr/wiki
6 stars 1 forks source link

Generalization in MetaInfo #17

Closed alphaville closed 13 years ago

alphaville commented 14 years ago

There are two possible extensions for MetaInfo that might be useful. First convert all single entries (now TypedValue objects) into lists of such since a resource might have multiple values for each property (e.g. multiple titles or multiple descriptions). Also convert setters into appenders (e.g. setTitle becomes addTitle(TypedValue title). Also, it would be better if ot:hasSource and owl:sameAs property values were Resource objects instead of TypedValue<?> ones, or at least find some way to denote the OntologicalClass that characterizes the assigned resource-value (e.g. ot:Feature, ot:Dataset etc). Furthermore, combine the current API with Locales for possible internationalization of the current API (just to be as generic as possible).

alphaville commented 14 years ago

Initial attempt for generalization accomplished allowing for multiple comment registration. As a next step we'll proceed with seeAlso and so on...

hampos commented 13 years ago

This is now a high-priority issue as it is essential for persistence. Have to create a new class for "ResourceValues" (can be called something like that). Use Sets of LiteralValue where possible [AnyValue must be replaced by LiteralValue which will support just literals. Resource-valued meta-information can be represented using the new class ResourceValue].

This is due for ToxOtis version 0.1.4 and soon we'll be version 0.2.

alphaville commented 13 years ago

Done