Help:Type Text 1.0 - 1.7.1

From semantic-mediawiki.org
Jump to: navigation, search


This documentation page applies to all SMW versions from 1.0 to 1.7.1.
Other versions: ≥ 1.8       Other languages: dezh-hans

Help:Type Text en 1.0 1.7.1


Text
Holds text of arbitrary length which cannot be searched by value in semantic queries
Further Information
Provided by: Semantic MediaWiki
Added in version: 1.0
Removed in version: still in use
Table of Contents

The datatype text is used for texts of arbitrary length. Text is thus very similar to datatype String, but without the length restriction of the latter. The price for this additional freedom is that it is not possible to use specific values of Type:Text in semantic queries, or to sort query results by such values (the only exception is the interactive sorting of tables using the sort icon in the column header).

As an example: if on a page you set a Type:Text property Foo with text "Bar" ([[Foo::Bar]]) then you cannot find that precise page with {{#ask: [[Foo::Bar]]}}. What will happen is that the query returns every page that has property Foo on it. More precise: {{#ask: [[Foo::Bar]]}} behaves exactly the same as {{#ask: [[Foo::+]]}}.

Besides this, the same rules as for datatype String apply for Type:Text values as well.