Hi,

Yes, it's possible to get around this problem using #if statements, but that seems like an awful lot of work: an #if call for every field in every template.

And null values wouldn't have to be stored in the semantic-property tables, just like (I assume) they're not stored now, so there wouldn't have to be any extra precautions taken for such values - no show-stopping expected.

-Yaron

On Thu, Jul 24, 2008 at 11:44 AM, Temlakos <temlakos@gmail.com> wrote:
Yaron:

Are you sure that's necessary? Whenever I write a semantic template, I
use {{#if: statements to make sure that no annotation takes place unless
the relevant parameter exists. And a null number strikes me as a
show-stopper if we ever wanted to do arithmetic with those annotated
numbers. Which is something I've always wanted to do.

Temlakos

Yaron Koren wrote:
> Hi,
>
> Currently semantic properties all display a warning message when
> they're given a null value (e.g., [[Has country::]]). That makes sense
> if all properties are hand-coded, but if a site uses semantic
> templates, it could easily end up with many blank values. [1]  Each of
> those gets a little warning flag, which could make many people think
> that something horrible has happened. Of course, an administrator can
> choose to not have warnings displayed, but many don't know how to do
> that, and sometimes it's useful to see the real error messages. Can
> warnings for null values be removed? A null value for a number just
> doesn't strike me as invalid data in the same way that, say, a value
> of "abcd" would be; I believe most relational databases, for example,
> allow null values for any type by default.
>
> -Yaron
>
> [1] http://hackerspaces.org/wiki/HacDC
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Semediawiki-devel mailing list
> Semediawiki-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
>


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel