Status: | obsolete |
Progress: | 100% |
Version: | 1.0 - 1.8.0 |
Help:Datatype "String"
String | |
---|---|
Holds character sequences up to 255 characters | |
Further information | |
Provided by: | Semantic MediaWiki |
Since version: | 1.0 |
Until version: | 1.7.1 |
Datatype ID: | _str |
In this wiki: | String |
Table of Contents | |
The datatype String is used for simple words and similar character sequences. It has the following restrictions:
- If you want to store special character sequences like "
::
", you need to store them using the parser function#set
, instead of with the more standard "[[Property::value]]
" notation. - Values cannot be longer than 255 characters (if you use non-Latin characters, this number might be smaller). For longer strings, use datatype "Text"Holds text of arbitrary length instead.
You can use some wiki markup inside a string property such as runs of ' for bold and italic, and the markup will change the appearance of the string. You cannot embed semantic annotations inside a string property.
Restricting values
You can use special property "Allows value"Lists one permissible value for a property to restrict a property to a particular set of values. For example you could limit a property like "Status" to values like "Active", "Pending", etc.
Compatibility note
Since Semantic MediaWiki 1.8.0Released on an unknown date unknown versions of MediaWiki this datatype is deprecated for SMWSQLStore3
and was removed entirely with Semantic MediaWiki 1.9.0Released on an unknown date unknown versions of MediaWiki where this datatype remains to be just an alias of datatype "Text"Holds text of arbitrary length.
References
- ^ gh:smw:1893