Help:Type Text

The datatype Text is used to store strings of arbitrary length, i.e. text. Since this datatype depreciated  for data store   and replaced it entirely in. Thus it is now possible to use specific values in semantic queries, or to sort query results by such values. It has the following restriction:

If you want to store special character sequences like " ", you need to store them using the parser function, instead of using in-text annotation syntax " " notation. Thus you cannot embed "regular" semantic annotations inside a text property.

You can use some wiki markup inside a text property such as runs of ' for bold and italic, and the markup will change the appearance of the text.

Restricting values
Since you can use  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. Since special property  lets you restrict values according to patterns matching regular expressions. also added allowing to annotate a unique data value only once.

Starting with invalid data value annotations will be shown directly on the page together with a warning sign instead of just showing a warning sign as in previous versions.CiteRef::gh:smw:2348 See also the page on.

Searching within values
Since the first 40 characters (if more than 72 characters were stored as property value) or all 72 characters (if a maximum of 72 characters were stored as property value) are searchable as explained on the help page about selecting pages.CiteRef::mail:user:smw:tp5020618p5020801 Searching within property values was not possible in earlier versions of Semantic MediaWiki (≤ 1.7.1).

introduces full-text searchCiteRef::gh:smw:1481 which allows to search with in more than just the maximum of 72 characters as described before.

introduces with its option  CiteRef::gh:smw:2536 making it possible to extend the searchable length as described here to 300 charactersCiteRef::so:3489041 without relying on the full-text search feature.

Compatibility note
In only this datatype still had the old behaviour for data store   as explained on the help page for previous versions of Semantic MediaWiki. Starting with you will have to change datatype declarations with  from  to this datatype if you still have these on property pages since aliasing of "String" for "Text" may be removed in any later version of Semantic MediaWiki.