Help:Special property Has improper value for

From semantic-mediawiki.org
Jump to: navigation, search
Has improper value for
Alerts in case the assigned value to a property is invalid
Further Information
Provided by: Semantic MediaWiki
Added: 1.4.2
Removed: still in use
Alias: has no alias
Is optional: no
Label: not specified
In this wiki: Property:Has improper value for

The Has improper value for property is a special property in Semantic MediaWiki (SMW) with a built-in meaning: it helps to keep track of input errors in a wiki when values that are assigned to some property are invalid. These checks are made in accordance with datatype assigned to the property with the special property Has type.

The property connects a page where some invalid input was given to the property to which this value was assigned. Thus, it can also be used in inline queries or on special page "SearchByProperty" to find all pages where an error occurred for a particular property. Also note that even errors that appeared when using some SMW special property are recorded. As a simple example, we provide some erroneous input on this page:

Trying to assign "not a date" as value to property "News date" which requires a valid date: not a date
The date "not a date" was not understood.
The little warning icon alerts you of this improper value.

Has improper value for can be used for wiki gardening and maintenance, and it is also employed by SMW for automatically repairing its records after the datatype of some property was changed.

This special property should never be set manually, since SMW will take care of setting its value. Starting with Semantic MediaWiki 2.2.0 it is no longer possible to manually add values for this special property.1

Semantic MediaWiki 2.2.0 also introduced the "errorcount" parameter to the "SMWinfo" API module allowing to retrieve the number of improperly added values as well as showing them explicitly in a separate line in the "Semantic Statistics" section of the "Statistics" special page.2 Thus this creates better awareness of issues related to storing property values and helps in gardening wiki annotations.

See the property page Has improper value for to see which pages use this special property on this wiki.

Semantic Statistics on special page "Statistics" - improper annotations

Srceenshot showing the statistics for special property "Has improper value for" on special page "Statistics".

See also


This documentation page applies to all SMW versions from 1.4.2 to the most current version.
      Other languages: de

Help:Special property Has improper value for en 1.4.2