That's good news. And it's great news about blank values not getting counted
as errors! That should help out a lot of people who store data in templates.

-Yaron


On Mon, Aug 3, 2009 at 8:14 AM, Markus Krötzsch <
mar...@semantic-mediawiki.org> wrote:

> By the way: however we call it, this property already has another nice side
> effect. Since SMW now keeps track of all pages where a property was used
> with
> an unsuitable value, SMW can automatically revisit these pages when the
> type
> of a property has changed. Example:
>
> * For storing street address information, you try to assign the value "21a"
> to
> the property "house number" on a page.
> * It turns out that "house number" [[has type::Number]], so the page you
> store
> shows an error.
> * You notice the error and go to the page Property:House_number to change
> it
> to say [[has type::String]] (which would be the best choice here).
> * Up to SMW 1.4.2, the page where you entered [[house number::21a]] would
> still miss the value until someone would edit it again. From SMW 1.4.3 on,
> this error will be corrected automatically using jobs (as usual, it can
> take
> some time if many pages need update).
>
> This new behaviour also prevents you from loosing any data when someone
> changes (accidentally or on purpose) the datatype of a property to become
> incompatible with most of the existing values: after correcting the type,
> all
> the old value will be coming back to you without having to edit all
> affected
> pages.
>
> -- Markus
>
> P.S. In any case, the page that you see, and the contents of the store may
> temporarily differ. After you change the property type, the page will still
> continue to display the error until its cache is cleared next time (this
> happens by itself or when somebody edits it). This time is unrelated to the
> time when SMW will fix its internal records of the page's values (both in
> SMW
> 1.4.2 and 1.4.3). So you may see an error on a page while its records are
> already fixed, or you may see a correctly looking page while its records
> are
> still waiting for repair.
>
>
> On Montag, 3. August 2009, Markus Krötzsch wrote:
> > On Sonntag, 2. August 2009, Markus Krötzsch wrote:
> >
> > ...
> >
> > > > I should note that I hope that properties with blank values don't get
> > > > included in this accounting. Speaking of which, let me note that I
> also
> > > > think it would be great if blank values stopped being viewed as
> errors
> > > > in general.
> > >
> > > The problem is that a value object can only have two states right now:
> > > either it represents some value, or it returns an error. But maybe one
> > > could ignore empty strings right during parsing to avoid getting any
> > > feedback at all. Feel free to file a request ...
> >
> > Do not file a request: it's done. Completely empty values (not even a
> > space) are now ignored in [[ :: ]]. No more errors.
> >
> > -- Markus
> >
> > > > -Yaron
> > > >
> > > >
> > > > On Sun, Aug 2, 2009 at 9:32 AM, Markus Krötzsch <
> > > >
> > > > mar...@semantic-mediawiki.org> wrote:
> > > > > The upcoming SMW release 1.4.3 will introduce a property that helps
> > > > > to find input errors: its value will be the page of the property
> that
> > > > > the wrong value
> > > > > was assigned to. For example, if you put
> > > > >
> > > > > [[my date property::not a date]]
> > > > >
> > > > > on page "Test1" (where the property would expect a valid date),
> then
> > > > > SMW will
> > > > > automatically store the value "Property:my date property" for
> > > > > "Test1".
> > > > >
> > > > > This is surely useful for maintenance. The question is how to call
> > > > > this new special property. Sufficiently descriptive names tend to
> be
> > > > > unwieldy, as for
> > > > > example "error for property" or "input error for". The point is
> that
> > > > > the property takes another property as its value, not an error
> > > > > message.
> > > > >
> > > > > User poll: How would you prefer this to be called?
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Markus Krötzsch
> > > > > Semantic MediaWiki    http://semantic-mediawiki.org
> > > > > http://korrekt.org    mar...@semantic-mediawiki.org
> > > > >
> > > > >
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > >-- -- ----- Let Crystal Reports handle the reporting - Free Crystal
> > > > > Reports 2008 30-Day trial. Simplify your report design, integration
> > > > > and deployment - and focus on
> > > > > what you do best, core application coding. Discover what's new with
> > > > > Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> > > > > _______________________________________________
> > > > > Semediawiki-devel mailing list
> > > > > Semediawiki-devel@lists.sourceforge.net
> > > > > https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
>
>
> --
> Markus Krötzsch
> Semantic MediaWiki    http://semantic-mediawiki.org
> http://korrekt.org    mar...@semantic-mediawiki.org
>
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to